Ubuntu 20.04.6 LTS apt problems - how to upgrade f/w?

Nils Kassube kassube at gmx.net
Wed Nov 27 16:21:09 UTC 2024


On 27.11.24 Bo Berglund wrote:
> On Wed, 27 Nov 2024 12:47:08 +0100, Nils Kassube via ubuntu-users
> <ubuntu-users at lists.ubuntu.com> wrote:
>
> >On 27.11.24 Bo Berglund wrote:
> >> menuentry 'Ubuntu 20.04.3 LTS (20.04) (on /dev/nvme0n1p5)'
> >
> >So you also have an older Ubuntu version on the system.
>
> It seems like there is, I remember that when I started this Linux device a
> number of years back it was migrated from an older machine that also had a
> desktop version on the side, which I only used a few times.

> >Could it be that you actually boot from the grub menu of 20.04.3?
> >I would suggest to mount /dev/nvme0n1p5 and check if there is a grub
> >entry for your current kernel there.
>
> I have mounted the partition now and it sure looks like a linux system.
> If I go into it I find:
>
> $ ll boot/grub/grub.cfg
> -r--r--r-- 1 root root 15508 2021-10-31 11:24 boot/grub/grub.cfg
>
> $ ll etc/default/grub
> -rw-r--r-- 1 root root 1210 2021-10-29 11:23 etc/default/grub
>
> The dates show when this was last used, I guess, so 3 years ago...

Right, it is quite long ago since you updated that partition. I mean "20.04.3" indicates the same.

> Looking on the grub of that not running machine:
>
> $ grep "menuentry " boot/grub/grub.cfg

> menuentry 'Ubuntu, with Linux 5.4.0-89-generic (on /dev/nvme0n1p6)' <== HERE

> So the kernel I cannot get away from is *not* part of the "other" linux since it
> is listad as coming from /dev/nvme0n1p6 (my active machine) while the partition
> for the other Ubuntu is /dev/nvme0n1p5....

I think you can still boot the current kernel from the boot menu of the old system because you have a menuentry there. It doesn't matter that the actually used partition is nvme0n1p6 and not nvme0n1p5. Please check the line like

   set default="0"

near the top of the grub.cfg file on nvme0n1p5. If the number is "8" (if I counted right) you are very likely booting with grub from the other partition.


Nils






More information about the ubuntu-users mailing list