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 04-27-2024, 01:05 PM   #1
lupe
Member
 
Registered: Dec 2008
Distribution: Slackware, FreeBSD, NetBSD, Haiku
Posts: 64

Rep: Reputation: 2
Current upgrade borked at initrd


Hi,

I made a mistake and restarted the window manager when slackpkg upgrade-all was running.
My system has an (almost) full disk encryption setup and a volume group inside of it.

I already chrooted to the disk from other OS, but couldn't still solve the issue.

At the boot, initrd complains
LUKS device /dev/nvme0n1p2 unavailable for unlocking!

then consequent mount error:
mounting /dev/cryptvg/root on /mnt failed: no such file or directory.

At the the prompt, when running cryptsetup:

/lib64/libcrypto.so.3: version OPENSSL_3.2.0 not found (required by /usr/lib64/libcryptsetup.so.12).

Probably, it's still necessary to upgrade some packages, but slackpkg upgrade-all doesn't seem to find any to upgrade.
I've already deleted the contents of /var/log/packages.

What should I do?
 
Old 04-27-2024, 01:26 PM   #2
rizitis
Member
 
Registered: Mar 2009
Location: Greece,Crete
Distribution: Slackware64-current, Slint
Posts: 663

Rep: Reputation: 496Reputation: 496Reputation: 496Reputation: 496Reputation: 496
Since you can chroot internet connected , try these:
1. slackpkg reinstall slackpkg
2. slackpkg update
3. slackpkg reinstall openssl libcryptsetup
4. slackpkg reinstall kernel
5. slackpkg reinstall mkinitrd
6. mkinitrd -k $(uname -r) -r /dev/cryptvg/root -L
7. update bootloader
8. exit-reboot

good luck !!

Last edited by rizitis; 04-27-2024 at 01:27 PM.
 
Old 04-27-2024, 02:06 PM   #3
Windu
Member
 
Registered: Aug 2021
Distribution: Arch Linux, Debian, Slackware
Posts: 591

Rep: Reputation: Disabled
Sounds to me like your upgrade was successful, but then you aborted the process by killing your X session. Probably the only thing you need to do is generate a working initrd.
Use that other OS to chroot into your installation and then run "geninitrd" as root. That should give you a working initrd.

And for future reference: NEVER run an OS upgrade while you are inside an X or Wayland session! Always switch to runlevel 3 (or 1) before starting your upgrade.
 
1 members found this post helpful.
Old 04-27-2024, 02:10 PM   #4
rizitis
Member
 
Registered: Mar 2009
Location: Greece,Crete
Distribution: Slackware64-current, Slint
Posts: 663

Rep: Reputation: 496Reputation: 496Reputation: 496Reputation: 496Reputation: 496
Code:
At the the prompt, when running cryptsetup:

/lib64/libcrypto.so.3: version OPENSSL_3.2.0 not found (required by /usr/lib64/libcryptsetup.so.12).
cryptsetup error is an issue with the OpenSSL libraries, need reinstall.
 
Old 04-27-2024, 02:17 PM   #5
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,818

Rep: Reputation: 1494Reputation: 1494Reputation: 1494Reputation: 1494Reputation: 1494Reputation: 1494Reputation: 1494Reputation: 1494Reputation: 1494Reputation: 1494
Quote:
Originally Posted by lupe View Post
I've already deleted the contents of /var/log/packages.
It was the Slackware package database. Now pkgtools and slackpkg think you don't have any packages installed.
 
Old 04-27-2024, 04:31 PM   #6
lupe
Member
 
Registered: Dec 2008
Distribution: Slackware, FreeBSD, NetBSD, Haiku
Posts: 64

Original Poster
Rep: Reputation: 2
Thank you all!
I took the suggestions, generated the new initrd and the system can boot again.

/var/run/needs_restarting keeps saying that some installed or upgraded packages may need reboot:
openssl-solibs-3.3.0-x86_64-1
openssl-3.3.0-x86_64-1

This feature is something that I didn't know about in Slackware, is it a new thing?
How can it be cleared?
 
Old 04-27-2024, 04:33 PM   #7
lupe
Member
 
Registered: Dec 2008
Distribution: Slackware, FreeBSD, NetBSD, Haiku
Posts: 64

Original Poster
Rep: Reputation: 2
Quote:
Originally Posted by Petri Kaukasoina View Post
It was the Slackware package database. Now pkgtools and slackpkg think you don't have any packages installed.
Will it cause any problems for other system upgrades?
 
  


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
[SOLVED] Updating from current to 15 borked elilo/uefi boot with /dev/initramfs mount fail ThreadFerret Slackware 4 02-10-2022 07:57 PM
[64-current] keyboard is borked in VT, when same user is running X on another VT! GrapefruiTgirl Slackware 5 03-22-2010 12:55 PM
[SOLVED] Major update today on Slack-Current - system now borked BobNutfield Slackware 19 03-07-2010 04:38 PM
Upgrade Borked My System! Need Help! leiavoia Debian 19 02-26-2006 09:41 AM

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

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