LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux Mint (https://www.linuxquestions.org/questions/linux-mint-84/)
-   -   Mint up grade error missing file at boot (https://www.linuxquestions.org/questions/linux-mint-84/mint-up-grade-error-missing-file-at-boot-4175724561/)

Fairway 04-28-2023 12:16 PM

Mint up grade error missing file at boot
 
1 Attachment(s)
Hello - I did an upgrade to Mint Vanessa and after the upgrade at reboot I get error
error: '/boot/vmlinuz-5.4.0-146-generic' not found
error" you need load the kernel first

This is a multiboot system and I am able to boot to MX Linux

Any help is appreciated (limited knowledge here)

colorpurple21859 04-28-2023 12:58 PM

open a terminal in mxlinux run
Code:

sudo update-grub
reboot see if that fixes it. If not will need more information about the partitions/uuids of the systems.

Fairway 04-28-2023 01:12 PM

Ok - I ran it and thought maybe it was going to be fixed but...same think on reboot.

$ sudo update-grub
[sudo] password for MX64:
Generating grub configuration file ...
Found background image: /usr/share/images/desktop-base/desktop-grub.png
Found linux image: /boot/vmlinuz-4.19.0-14-amd64
Found initrd image: /boot/initrd.img-4.19.0-14-amd64
Found memtest86+ image: /boot/memtest86+.bin
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
/dev/sdc: open failed: No medium found
/dev/sdd: open failed: No medium found
/dev/sde: open failed: No medium found
/dev/sdf: open failed: No medium found
Found Linux Mint 21 Vanessa (21) on /dev/sda5
Found Microsoft Windows XP Professional on /dev/sdb1
done

colorpurple21859 04-28-2023 02:46 PM

At the boot menu, highlight mint press e for edit change /boot/vmlinuz-5.4.0-146-generic on the linux line to /boot/vmlinuz and the initrd line to /boot/initrd.img
ctrl-x to boot.
If that doesn’t work change to /vmliuz and /initrd.img
If it boots open a terminal and run "sudo update-grub

Fairway 04-28-2023 03:35 PM

OK when I - highlight mint press e for edit change /boot/vmlinuz-5.4.0-146-generic on the linux line to /boot/vmlinuz and the initrd line to /boot/initrd.img
ctrl-x to boot.

This worked except.... when i made the changes and hit cntrl-x it went back to the boot option screen and got same error.
When i made the changes and hit F10 it went ahead and booted into Mint but when i ran "sudo update-grub" i get the following...
mint@mint-System-Product-Name:~$ sudo update-grub
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/50_linuxmint.cfg'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
/etc/grub.d/bin/grubcfg_proxy: error while loading shared libraries: libcrypto.so.1.1: cannot open shared object file: No such file or directory
mint@mint-System-Product-Name:~$

Then when i reboot and select Mint the original error comes up
So... if hit "e" on Mint during boot and make the changes and hit F10 it will boot into Mint but it doesnt seem to save the changes nor does "sudo update-grub" seem to correct the issue.
It is a start though as I can at least get Mint to run.

colorpurple21859 04-28-2023 05:12 PM

try running
sudo apt update
sudo apt upgrade

Fairway 04-28-2023 08:12 PM

OK - ran those and error still pops up at boot.
Loads fine when i hit "e" to edit and remove the text as suggested.

colorpurple21859 04-28-2023 09:19 PM

This is the problem:
Quote:

error while loading shared libraries: libcrypto.so.1.1: cannot open shared object file
a little googling I came across on how to fix:
https://forums.linuxmint.com/viewtop...9126&p=2213515
https://forums.linuxmint.com/viewtop...18654#p2218654


To keep from having to edit the grub menu each time a temporary fix is to edit /boot/grub/grub.cg and make the /boot/vmlinuz and /boot/initrd.img edits to the first grub mint entry.

Fairway 04-29-2023 09:01 AM

Ok.... per the link you provided I....
Download the .deb file from the link below to your Downloads folder.
http://security.debian.org/debian-se...b9u6_amd64.deb

Then per the thread ran sudo update-grub

mint@mint-System-Product-Name:~$ sudo update-grub
[sudo] password for mint:
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/50_linuxmint.cfg'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.15.0-71-generic
Found initrd image: /boot/initrd.img-5.15.0-71-generic
Found MX 19.4 patito feo (19.4 ) on /dev/sda1
Found Microsoft Windows XP Professional on /dev/sdf1
Found linux image: /boot/vmlinuz-5.15.0-71-generic
Found initrd image: /boot/initrd.img-5.15.0-71-generic
Found MX 19.4 patito feo (19.4 ) on /dev/sda1
Found Microsoft Windows XP Professional on /dev/sdf1
done
mint@mint-System-Product-Name:~$

Now Im going to reboot and see what happens!

Fairway 04-29-2023 09:09 AM

Hmmm....well that didnt work. I still have to edit the two lines.
(perhaps I missed the actual fix in the link?)

colorpurple21859 04-29-2023 09:34 AM

post the contents of /etc/apt/sources.list

Fairway 04-29-2023 10:09 AM

Maybe...this?

root@mint-System-Product-Name:/etc# cat /etc/apt/sources.list
# deb cdrom:[Linux Mint 20.1 _Ulyssa_ - Release amd64 20210103]/ focal contrib main
# This system was installed using small removable media
# (e.g. netinst, live or single CD). The matching "deb cdrom"
# entries were disabled at the end of the installation process.
# For information about how to configure apt package sources,
# see the sources.list(5) manual.

root@mint-System-Product-Name:/etc#

colorpurple21859 04-29-2023 11:06 AM

what about the contents of /etc/apt/sources.list.d/official-package-repositories.list

Fairway 04-29-2023 12:08 PM

root@mint-System-Product-Name:/etc# cat /etc/apt/sources.list.d/official-package-repositories.list
deb https://mirror.cs.jmu.edu/pub/linuxmint/packages vanessa main upstream import backport
deb http://mirror.cs.jmu.edu/pub/ubuntu jammy main restricted universe multiverse
deb http://mirror.cs.jmu.edu/pub/ubuntu jammy-updates main restricted universe multiverse
deb http://mirror.cs.jmu.edu/pub/ubuntu jammy-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu/ jammy-security main restricted universe multiverse
# deb http://archive.canonical.com/ubuntu/ jammy partner

root@mint-System-Product-Name:/etc#

colorpurple21859 04-29-2023 04:56 PM

Quote:

Hmmm....well that didnt work. I still have to edit the two lines.
That's strange, there was no errors with update-grub and the file in sources.list.d looks correct. run
Code:

sudo apt dist-upgrade
sudo update-grub



All times are GMT -5. The time now is 12:28 PM.