Software updater won't upgrade to 22.04.5 LTS
Hi, the updater says "Ubuntu 22.04.5 LTS is now available (you have 20.04)" but when I click Upgrade... nothing happens.
Any help would be greatly appreciated.
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Robert James
- Solved:
- Last query:
- Last reply:
Revision history for this message
|
#1 |
What is the output of:
sudo apt update
sudo apt full-upgrade
lsb_release -a
uname -a
Thanks
Revision history for this message
|
#2 |
marythemoose@
Hit:1 http://
Hit:2 http://
Hit:3 http://
Hit:4 http://
Hit:5 http://
Hit:6 https:/
Reading package lists... Done
Building dependency tree
Reading state information... Done
1 package can be upgraded. Run 'apt list --upgradable' to see it.
marythemoose@
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following package was automatically installed and is no longer required:
libaribb24-0
Use 'sudo apt autoremove' to remove it.
Get more security updates through Ubuntu Pro with 'esm-apps' enabled:
libavformat58 libavfilter7 libmagickcore-
libswresample3 libswresample3 libgegl-0.4-0 libzmq5 libmagickwand-
libgegl-common libzbar0 libexo-2-0 libpostproc55 ntpdate imagemagick-6.q16
libavcodec-extra libavcodec58 libavcodec58 libexo-common
python-
libsdl2-2.0-0 libsdl2-2.0-0 libmysofa1 libmagickcore-
libde265-0 libexo-helpers imagemagick-
Learn more about Ubuntu Pro at https:/
The following packages have been kept back:
libavcodec-extra
0 to upgrade, 0 to newly install, 0 to remove and 1 not to upgrade.
marythemoose@
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.6 LTS
Release: 20.04
Codename: focal
marythemoose@
Linux marythemoose-
Revision history for this message
|
#3 |
If you want to do the release upgrade from Ubuntu 20.04 to 22.04, you can to that by opening a command terminal window and issuing the command
sudo do-release-upgrade
Revision history for this message
|
#4 |
This is the output I get when issue that command:
marythemoose@
[sudo] password for marythemoose:
Checking for a new Ubuntu release
Please install all available updates for your release before upgrading.
Revision history for this message
|
#5 |
I tried to get the updates, but it says the same thing:
marythemoose@
Hit:1 http://
Hit:2 http://
Hit:3 http://
Hit:4 https:/
Hit:5 http://
Hit:6 http://
Reading package lists... Done
marythemoose@
Checking for a new Ubuntu release
Please install all available updates for your release before upgrading.
Revision history for this message
|
#6 |
"The following packages have been kept back:
libavcodec-extra"
What output do you receive for the commands
apt policy libavcodec-extra
apt --simulate install libavcodec-extra
Revision history for this message
|
#7 |
marythemoose@
libavcodec-extra:
Installed: 7:3.4.8-0ubuntu0.2
Candidate: 7:4.2.7-0ubuntu0.1
Version table:
7:
500 http://
500 http://
7:
500 http://
*** 7:3.4.8-0ubuntu0.2 100
100 /var/lib/
marythemoose@
NOTE: This is only a simulation!
apt needs root privileges for real execution.
Also, keep in mind that locking is deactivated,
so don't depend on the relevance to the real current situation!
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies.
libavcodec-extra : Depends: libavcodec-extra58 (= 7:4.2.7-0ubuntu0.1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Revision history for this message
|
#8 |
What output do you get for
apt --simulate install libavcodec-extra libavcodec-extra58
Revision history for this message
|
#9 |
marythemoose@
NOTE: This is only a simulation!
apt needs root privileges for real execution.
Also, keep in mind that locking is deactivated,
so don't depend on the relevance to the real current situation!
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
i965-
libavcodec-
libcodec2-
libgdk-
libigdgmm11:i386 libmp3lame0:i386 libnuma1:i386 libopenjp2-7:i386
libpango-
librsvg2-2:i386 librsvg2-
libsoxr0:i386 libspeex1:i386 libstb0:i386 libswresample2 libswresample3:i386
libthai0:i386 libtwolame0:i386 libva-drm2:i386 libva-x11-2:i386 libva2:i386
libvdpau1:i386 libvpx5 libvpx6:i386 libwavpack1:i386 libwebpmux3:i386
libx264-152 libx264-155:i386 libx265-146 libx265-179:i386 libxvidcore4:i386
libzvbi0:i386 mesa-va-
va-driver-
Use 'apt autoremove' to remove them.
The following packages will be REMOVED
libavcodec58 libavcodec58:i386 libfaudio0:i386
The following NEW packages will be installed
libavcodec-
The following packages will be upgraded:
libavcodec-extra
1 to upgrade, 1 to newly install, 3 to remove and 0 not to upgrade.
Remv libfaudio0:i386 [20.04-2]
Remv libavcodec58:i386 [7:4.2.
Remv libavcodec58 [7:4.2.
Inst libavcodec-extra58 (7:4.2.7-0ubuntu0.1 Ubuntu:
Inst libavcodec-extra [7:3.4.
Conf libavcodec-extra58 (7:4.2.7-0ubuntu0.1 Ubuntu:
Conf libavcodec-extra (7:4.2.7-0ubuntu0.1 Ubuntu:
Revision history for this message
|
#10 |
That should work.
sudo apt install libavcodec-extra libavcodec-extra58
Revision history for this message
|
#11 |
Yes! It worked. Thank you so much.
Revision history for this message
|
#12 |
Sorry, this has gone from bad to worse now.
There wasn't enought space in the boot partition for the upgrade, so I removed kernel to make room, but the upgrade failed and aborted, the system restarted, and now it won't run because the kernel is missing.
I've tried every option I can see to boot from what remains but nothing works.
I've downloaded ubuntu onto a usb stick to try to get in that way, but I don't understand how to do this. I've read online about needing to mount systems, chroot into it and install kernels, but I don't understand what any of that means.
I don't even know if I'm booting into the USB drive correctly.
Sorry about this, any help woud be greatly appreciated.
Revision history for this message
|
#13 |
When you boot the system from the hard disk, what exactly happens?
Are you able to force showing the grub menu (by repeatedly hitting the left shift key early during booting)?
Revision history for this message
|
#14 |
If I boot the system and don't hit any keys, it displays a screen of code ends with this line:
[ 2.136022] ---[ end Kernal panic - not syncing: VFS : Unable to mount root fs on unkown-block(0,0) ]---
If I go to the grub menu, it gives me Ubuntu, Advaced options, and memory tests.
The advanced options are Ubuntu, with Linux 5.15.0-130-generic, or the same with recovery mode.
If I try recovery mode, it produces more code but it ends with the same line.
Revision history for this message
|
#15 |
Boot into Ubuntu live USB / CD desktop and run a full fsck on all internal file systems (with them unmounted)
Revision history for this message
|
#16 |
"run a full fsck on all internal file systems (with them unmounted)"
Could you explain how to do this please.
Revision history for this message
|
#17 |
Google is your friend.
Here is an example of pages you'd find
https:/
Revision history for this message
|
#18 |
Turns out my friend is ChatGPT - this is the output in the terminal, hope this is helpful:
ubuntu@ubuntu:~$ sudo fsck /dev/sdb1
fsck from util-linux 2.39.3
fsck.fat 4.2 (2021-01-31)
/dev/sdb1: 1218 files, 1514409/1961724 clusters
Revision history for this message
|
#19 |
Is there only /dev/sda1? I'm guessing the other is swap space.
Also run:
sudo fsck -f /dev/sda1
To check the file system as well
Revision history for this message
|
#20 |
ubuntu@ubuntu:~$ sudo fsck -f /dev/sda1
fsck from util-linux 2.39.3
e2fsck 1.47.0 (5-Feb-2023)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/dev/sda1: 324/62248 files (15.4% non-contiguous), 104215/248832 blocks
Revision history for this message
|
#21 |
OK. If you reboot to the installed OS as normal, does it boot OK?
Revision history for this message
|
#22 |
no, same problem as before.
I'll try to take a picture of the text, get it transcribed and post it here...
Revision history for this message
|
#23 |
wn-block(0,0)
2.127383] CPU:0 PID: 1 Conn: swapper /0 Not tainted 5.15.0-130-generic #140 -Ubuntu
2.1274451 Hardware name: Gigabyte Technology Co., Ltd. H61M-DS2/H61M-DS2, B IOS F1 07/22/2011
2.1275071 Call Trace:
2.1275621 < TASK>
2.1276171 show_stack+0x52 0x5c
2.127678] dunp_stack_
2.1277361 dump_stack+
2.127793] panic+0x15c/0x33b
2.1278531 mount_block_
2.1279121 mount root +0x10c^0x11c
2.127968] prepare_
2.1280261 kerne l_init_freeab le+0x18c/0x1b5
2.1280831 ? rest_init+
2.128142] kernel_init+0x1b 0x150
2.1282001 7 rest_init+0x100 0x100
2.1282571 ret _fron_fork+
2.1283181 </TASK> 2.128402] Kernel Offset: 0x22400000 fron 0xffffffff81000000 (relocat ion ra" ge : 0xffffffff80000
2.128466] ---/ end Kernel panic - not syncing: UFS: Unable to nount root fs on unknown-block(0,0) ]---
Revision history for this message
|
#24 |
Possibly this. Bit of a chroot from live USB desktop
Revision history for this message
|
#25 |
Sorted it. Thanks very much for all your help!