LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-11-2017, 01:48 PM   #1
Aeterna
Member
 
Registered: Aug 2017
Location: Terra Mater
Distribution: VM Host: Slackware-current, VM Guests: Artix, CRUX, FreeBSD, Funtoo, HardenedBSD, OpenIndiana
Posts: 62

Rep: Reputation: Disabled
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:

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

If you continue you may corrupt packages database.
Check or retry later

I did install llvm and gcc-go with
slackpkg install
but the problem persists and I am not able to run
slackpkg upgrade-all

thank you for help
 
Old 08-11-2017, 02:21 PM   #2
bassmadrigal
Senior Member
 
Registered: Nov 2003
Location: Newport News, VA
Distribution: Slackware
Posts: 4,419

Rep: Reputation: 2364Reputation: 2364Reputation: 2364Reputation: 2364Reputation: 2364Reputation: 2364Reputation: 2364Reputation: 2364Reputation: 2364Reputation: 2364Reputation: 2364
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.
 
3 members found this post helpful.
Old 08-11-2017, 03:00 PM   #3
Aeterna
Member
 
Registered: Aug 2017
Location: Terra Mater
Distribution: VM Host: Slackware-current, VM Guests: Artix, CRUX, FreeBSD, Funtoo, HardenedBSD, OpenIndiana
Posts: 62

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by bassmadrigal View Post
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.

Thank you again.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
MariaDB database is broken or not working correctly? corrupted maybe? cyberdome Linux - Newbie 3 04-07-2014 12:04 PM
Synaptic Package manager database corrupted mohit052 Linux - Software 5 08-17-2009 11:55 PM
where is the slackpkg database stored? rabbit2345 Slackware 10 04-28-2009 10:37 PM
rpm database corrupted? h725 Red Hat 3 07-11-2008 11:18 AM
How to fix corrupted RPM database? Cygnus78 Linux - General 2 05-19-2004 08:26 PM

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

All times are GMT -5. The time now is 02:52 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration