SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: VM Host: Slackware-current, VM Guests: Artix, Venom, antiX, Gentoo, FreeBSD, OpenBSD, OpenIndiana
Posts: 1,008
Rep:
slackpkg database corrupted
Hello,
I am running slackware-current (64-bit) and unfortunately I have corrupted slackpkg database during upgrade-all, llvm and gcc-go failed to upgrade.
after all other packages upgraded, I issued
slackpkg upgrade-all
however slackpkg generated the error:
FATAL! There is some problem in packages database
or maybe an installation or upgrade in progress:
slackpkg is just a frontend for the real Slackware package tools, mainly installpkg, upgradepkg, and removepkg. From the sounds of it, you might have two copies of gcc-go and llvm installed. Check under /var/log/packages to see if there's any duplicate packages in there. If there are, you'll want to use removepkg to remove them, and then reinstall the correct versions using installpkg. If you're curious on how to use these commands, check the man page for them.
Distribution: VM Host: Slackware-current, VM Guests: Artix, Venom, antiX, Gentoo, FreeBSD, OpenBSD, OpenIndiana
Posts: 1,008
Original Poster
Rep:
Quote:
Originally Posted by bassmadrigal
slackpkg is just a frontend for the real Slackware package tools, mainly installpkg, upgradepkg, and removepkg. From the sounds of it, you might have two copies of gcc-go and llvm installed. Check under /var/log/packages to see if there's any duplicate packages in there. If there are, you'll want to use removepkg to remove them, and then reinstall the correct versions using installpkg. If you're curious on how to use these commands, check the man page for them.
Thank you very much for your help.
I had to modify your procedure a bit.
Exactly following your suggestion did not fix the problem, however I noticed two extra files probably leftovers of corrupted installation of llvm and gcc-go:
gcc-go-7.1.0-x86_64-2-upgraded-2017-08-11,10:16:27
llvm-4.0.1-x86_64-1-upgraded-2017-08-11,10:17:20
After I removed these, everything is back in order.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.