0

I did an upgrade of 18.04LTS -> 22.04LTS using the software updater. After rebooting the system does not boot proper. Below the output (manual re-entered from the other machine, so maybe a type)

Call Trace:
<TASK>
show_stack+0x52/0x5c
dump_stack_lvl+0x4a/=x63
dump_stack+0x10/0x16
panic+0x149/0x321
mount_block_root+0x144/0x1dd
mount_root0x10c/=x11c
prepare_namespace+0x13f/0x191
kernel_init_freeable+0x18c/0x1b5
? rest_init+0x100/+x100
kernel_init+0x1b/0x150
?rest_init+0x100/0x100
ret_from_fork+0x22/0x30
</TASK>
Kernel Offset: 0x1da00000 from 0xffffffff81000000 (relocation range: 0xffffffff81000000-0xffffffffbfffffff)
---[ end Kernel panic - not syyncing: VFS: Unable to mount root fs on unknown-block(0.0) ]---

I've an (old) Lenovo W540, 8core, 2.7GHz, 32Gb RAM

I tried to salvage with a boot from USB (Linux 22.04 Desktop), but since I did not see the original files I decided against installing

Anyone suggestions? As long as I get my data off it's all fine by me (so using the OS from USB, but with access to the data under )

Thanks,

Andreas

1 Answers1

5

I don't know the steps the OP followed but to anyone trying to update from 18.04 to 22.04 these steps worked for me on two systems (Intel 4790 and Ryzen 2400G):

You need to do a release upgrade from 18.04 to 20.04 and then from 20.04 to 22.04

Step by step:

  1. Append the following lines to /etc/apt/sources.list (this is an important step which fixes OP's question. Without this you cannot upgrade packages, and dist-upgrade, and without that you cannot do the release upgrade):

deb http://archive.ubuntu.com/ubuntu bionic main restricted
deb http://archive.ubuntu.com/ubuntu bionic-updates main restricted
deb http://archive.ubuntu.com/ubuntu bionic-security main restricted
  1. Now on the following steps you need to answer with OK and y on a few questions, so be sure to check the display periodically. A few restarts will be necessary, and it takes anywhere from 1/2 hour to 1-2 hours. Update the package list:

    sudo apt update

now upgrade packages:

sudo apt upgrade

followed by dist upgrade

sudo apt dist-upgrade

Then remove all packages from your system by entering the following command (this is optional):

sudo apt autoremove

Install the update-manager-core package by running the following command (in case update-manager-core isn't already installed):

sudo apt install update-manager-core

Next run the release upgrade utility via:

sudo do-release-upgrade

Now you have 20.04 (check with lsb_release -a), and run one more time:

sudo do-release-upgrade

One this is ready you should be at 22.04.