LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 12-22-2021, 02:47 PM   #1
apmount
Member
 
Registered: Mar 2009
Location: Athens
Distribution: Slackware
Posts: 98

Rep: Reputation: 16
Redo slackpkg upgrade-all after restart


Hello all, during the latest upgrade of -current I left the laptop unplugged and it got shutdown. So, I left with an unfinished upgrade. Luckily the status was in a point I could logon (after modifying lilo.conf and running lilo again) but when I tried again to do the upgrade I got

root@apost:~# slackpkg upgrade-all

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

kernel-source-5.15.10-noarch-1-upgraded-2021-12-22,22:24:21

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

Following an old thread here on linuxquestions
(https://www.linuxquestions.org/quest...ed-4175611777/)
I removed the package kernel-source-5.15.10-noarch-1-upgraded-2021-12-22,22:24:21 from /var/log/packages and restarted the upgrade again. It finished OK this time. But I am afraid if something left over, or something went fundamentally wrong with the upgrade. Was this action the correct one? (to delete the package listed above)

Please tell me there is a way out of this instead of doing a fresh installation all over again!

Regards, Apostolos.
 
Old 12-22-2021, 05:14 PM   #2
apmount
Member
 
Registered: Mar 2009
Location: Athens
Distribution: Slackware
Posts: 98

Original Poster
Rep: Reputation: 16
I noticed an error with virtualbox. It could not build the virtualbox kernel modules, so I tried to slackpkg reinstall every package on the changelog (the last one, from 22/12). After that the virtualbox kernel modules were successfully rebuilt. It seems that this last action brought the system to a better state. Hoping a new update will come soon.

Last edited by apmount; 12-23-2021 at 04:48 AM.
 
2 members found this post helpful.
Old 12-23-2021, 07:26 AM   #3
Tonus
Senior Member
 
Registered: Jan 2007
Location: Paris, France
Distribution: Slackware-15.0
Posts: 1,405
Blog Entries: 3

Rep: Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514
Your problem seems solved, isn't it ?

I keep for this kind of failure (and several other reasons) a mirror of the packages tree. Saved me a few times when system was really borked.

Nowadays I tend to have a liveslak with the mirror on it.
 
Old 12-23-2021, 12:27 PM   #4
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
Quote:
Originally Posted by apmount View Post
I noticed an error with virtualbox. It could not build the virtualbox kernel modules, so I tried to slackpkg reinstall every package on the changelog (the last one, from 22/12). After that the virtualbox kernel modules were successfully rebuilt. It seems that this last action brought the system to a better state. Hoping a new update will come soon.
It sounds like your computer shut down during the upgrade of the kernel-source package, which left it broken. Removing the file "kernel-source-5.15.10-noarch-1-upgraded-2021-12-22,22:24:21" just removed the package entry from the package database, but your problem likely wasn't fixed until you reinstalled the kernel-source package. Good job on getting it figured out!

Thanks for posting this. Hopefully others can find it if they run into issues and can see how you fixed it.
 
1 members found this post helpful.
Old 12-23-2021, 02:32 PM   #5
apmount
Member
 
Registered: Mar 2009
Location: Athens
Distribution: Slackware
Posts: 98

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by Tonus View Post
Your problem seems solved, isn't it ?
Yes, it seems so. I even did today's upgrade without problem. So probably I should mark this thread as solved.

@bassmadrigal: thanks for the explanation.
 
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
Weird slackpkg upgrade message during a slackpkg upgrade-all process. frtorres Slackware 8 02-13-2021 11:36 AM
SARPI on Pi3 - Ran slackpkg update & slackpkg upgrade-all and now won't boot, can't find init petejc Slackware - ARM 11 03-25-2020 04:30 AM
[SOLVED] Slackpkg upgrade-all returns 'no packages to upgrade' after slackpkg-update has downloaded files san2ban Slackware 8 11-01-2019 05:44 AM
[SOLVED] Can't boot into -current partition after slackpkg upgrade-all, after kernel upgraded gabytf Slackware 7 08-12-2012 10:42 AM
[SOLVED] After upgrade all using slackpkg upgrade, configuration is failed to read ethereal1m Linux - Newbie 3 04-28-2010 01:03 AM

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

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