LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   I stopped a slackpkg upgrade-all in midstream and now I cannot slackpkg upgrade-all (https://www.linuxquestions.org/questions/slackware-14/i-stopped-a-slackpkg-upgrade-all-in-midstream-and-now-i-cannot-slackpkg-upgrade-all-4175707903/)

jkh2cpu 02-12-2022 07:38 AM

I stopped a slackpkg upgrade-all in midstream and now I cannot slackpkg upgrade-all
 
Here it is.

root@jkh-box:/etc/slackpkg# slackpkg upgrade binutils-2.38-x86_64-1

FATAL! There is some problem in packages database
or maybe an installation or upgrade in progress:

binutils-2.37-x86_64-1-upgraded-2022-02-11,19:13:10

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

Slackpkg search says that I have binutils-2.38 but it is not installed. How do I fix this?

TIA. John.

marav 02-12-2022 07:45 AM

Have you tried : reinstall ?

jkh2cpu 02-12-2022 07:48 AM

What I did was to search /var/log/packages for the offending lines, removed the old package data, and I was good to go.

Reinstall would really be a heavy lift for this.

frankbell 02-12-2022 08:03 PM

It's a shot in the dark, but maybe try

Code:

slackpkg clean-system
I had a problem with yum on CentOS that was sort of like this and yum clean all cleared it.

jkh2cpu 02-12-2022 08:09 PM

I found this when I did a grep for binutils: binutils-2.37-x86_64-1-upgraded-2022-02-11,19:13:10. Slackpkg would not upgrade or remove, but removepkg binutils-2.37 worked like a charm, and slackpkg was again ready to slackpkg upgrade-all without missing a beat.

Petri Kaukasoina 02-13-2022 03:05 AM

Quote:

Originally Posted by jkh2cpu (Post 6328887)
I found this when I did a grep for binutils: binutils-2.37-x86_64-1-upgraded-2022-02-11,19:13:10. Slackpkg would not upgrade or remove, but removepkg binutils-2.37 worked like a charm, and slackpkg was again ready to slackpkg upgrade-all without missing a beat.

Depending on when exactly the upgrade was killed, the new binutils-2.38 may now be installed ok, only partly, or not at all. If it's not in /var/log/packages, 'slackpkg install binutils'. Or if it is there, 'slackpkg reinstall binutils'.


All times are GMT -5. The time now is 11:46 PM.