LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   slackpkg error (https://www.linuxquestions.org/questions/slackware-14/slackpkg-error-4175588147/)

av2zeal 08-27-2016 10:44 PM

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.

phenixia2003 08-28-2016 03:49 AM

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

av2zeal 08-28-2016 10:25 AM

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++.

yustin 12-29-2017 07:09 AM

bypassing the error doesn't fix a bug ...
 
1 Attachment(s)
... so i'd like to offer another fix :)


All times are GMT -5. The time now is 10:04 PM.