LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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-11-2017, 12:48 PM   #1
Aeterna
Senior Member
 
Registered: Aug 2017
Location: Terra Mater
Distribution: VM Host: Slackware-current, VM Guests: Artix, Venom, antiX, Gentoo, FreeBSD, OpenBSD, OpenIndiana
Posts: 1,008

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, 01:21 PM   #2
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
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.
 
4 members found this post helpful.
Old 08-11-2017, 02:00 PM   #3
Aeterna
Senior Member
 
Registered: Aug 2017
Location: Terra Mater
Distribution: VM Host: Slackware-current, VM Guests: Artix, Venom, antiX, Gentoo, FreeBSD, OpenBSD, OpenIndiana
Posts: 1,008

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.
 
1 members found this post helpful.
  


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

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

All times are GMT -5. The time now is 02:43 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