LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-27-2016, 10:44 PM   #1
av2zeal
Member
 
Registered: Jul 2008
Distribution: Slackware64
Posts: 56

Rep: Reputation: 1
slackpkg error


Recently, I decided to upgrade my system following the directions at http://docs.slackware.com/howtos:sla...:systemupgrade. I couldn't get slackpkg to update my glibc packages until I un-blacklisted my compat32 packages. I forgot about re-blacklisting them when I got to the clean-system command for slackpkg. Needless to say, when I reboot my system, the removal of the the compat32 libraries broke numerous things for booting my system, including keyboard input. Deperate, I decided to boot off of a local usb I had made that had -current on it (2 weeks old). I booted it, and pointed the installer to the correct partitions and let it do a full package install. This solved the booting problem and the system seems to work as intended. Upon logging in as root and running "slackpkg update slackpkg" it throws an error about duplicate packages:

Code:
Checking local integrity... DONE
You have a broken /var/log/packages - with two versions of the same package.
The list of packages duplicated in your machine are shown below, but don't
worry about this list - when you select your action, slackpkg will show a
better list:

<list of packages>

You can (B)lacklist, (R)emove, or (I)gnore these packages.
Select your action (B/R/I):
<list of packages> was a list of duplicate packages. I did some googling and came to the conclusion that I had to "upgradepkg --reinstall" all of the packages on the list. So, I downloaded the slackware64 directory from a -current mirror and went to work re-installing each duplicate and thereby removing them from the list. However, it still throws the error, the list is empty and if I try to (R)emove, it throws a second error:

Code:
==============================================================================
WARNING!        WARNING!        WARNING!        WARNING!        WARNING!
==============================================================================
One or more errors occurred while slackpkg was running:                       

DIALOG ERROR:
-------------

Error: Expected at least 6 tokens for --checklist, have 4.
Use --help to list options.


-------------
If you want to continue using slackpkg, disable the DIALOG option in
/etc/slackpkg/slackpkg.conf and try again.

Help us to make slackpkg a better tool - report bugs to the slackpkg
developers

==============================================================================
How do I fix this? TIA.
 
Old 08-28-2016, 03:49 AM   #2
phenixia2003
Senior Member
 
Registered: May 2006
Location: France
Distribution: Slackware
Posts: 1,052

Rep: Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008
Hello,


Seems the same issue as this one. That's a slackpkg bug as stated in this post.

To fix this bug, download this patch (in /tmp for instance), then proceed as below :
Code:
$ su -
$ cd /usr/libexec/slackpkg
$ patch -p0< /tmp/slackpkg-2.82-14-duplicates-fix.diff.txt
patching file core-functions.sh
Hunk #1 succeeded at 1176 (offset 11 lines).
Hunk #2 succeeded at 1191 (offset 11 lines).
After that, slackpkg should give you the name of the duplicate package.


--
SeB
 
Old 08-28-2016, 10:25 AM   #3
av2zeal
Member
 
Registered: Jul 2008
Distribution: Slackware64
Posts: 56

Original Poster
Rep: Reputation: 1
That did the trick, thank you! Is there a reason Pat uses egrep instead of grep? It seems that in the case of duplicate packages, these c++ packages will always cause problems with egrep. For future reference, the culprit was libsigc++.
 
Old 12-29-2017, 07:09 AM   #4
yustin
LQ Newbie
 
Registered: Dec 2012
Distribution: Slackware
Posts: 7

Rep: Reputation: Disabled
bypassing the error doesn't fix a bug ...

... so i'd like to offer another fix
Attached Files
File Type: txt slackpkg-2.82.1_duplicates_realfix.diff.txt (541 Bytes, 45 views)

Last edited by yustin; 12-29-2017 at 07:10 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Slackpkg, Slackpkg Plus, Slackware 14.1 x86_64 install.log delay or slow to write bamunds Slackware 7 04-22-2014 11:12 AM
[SOLVED] slackpkg error? WhiteHotLoveTiger Slackware 1 11-29-2013 09:16 PM
[SOLVED] typos in latest /etc/slackpkg/mirrors(.new) [slackpkg-2.82.0-noarch-8.tgz] wailingwailer Slackware 4 09-22-2012 04:04 AM
[SOLVED] slackpkg update error cola Slackware 3 09-15-2009 10:34 AM
error when using slackpkg to upgrade-all vdemuth Slackware 4 04-28-2009 05:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:05 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration