Upgrading from Ubuntu 22.04 to 23.04 failed, and can't retry

Asked by Peter Stodder

I'm using ubuntu 22.04 with Nvidia drivers. I tried upgrading to ubuntu 23.04 from 22.04 using the GUI, first I made sure I was up to date, then changed the settings to allow new ubuntu updates. Then pressed "upgrade" when prompted from the upgrade GUI. First all was well, then it warned me about some error from wine-builds package not being able to install. Then I get a second error that Lunar has crashed and can't upgrade to 23.04.
Now when I try and click "upgrade" again, the gui simply disappears. If I try and run through the terminal, it tells me to make sure I'm updated first before upgrading the OS. If I run sudo apt upgrade, there are 5 upgradable packages that are held and won't upgrade. Also, under "other software" in software in updates, it is already pointing to the new lunar packages.
Unfortunately I hadn't thought to uninstall my Nvidia drivers first, so I did that now, but still can't get it to upgrade.
Any thoughts? I would really like to upgrade without needing a clean install. Thanks!

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Manfred Hampl
Solved:
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#1

For diagnostic purposes please provide the output that you receive for the following commands (to be executed in a terminal window):

uname -a
lsb_release -crid
sudo apt update
sudo dpkg --audit
apt --simulate full-upgrade

Revision history for this message
Peter Stodder (freddycatking) said :
#2

Ok thanks, another piece of information is that I am currently using a custom version of 6.6.0 kernel. I was told I would have to rebuild it for the new OS, and I haven't disabled it yet, maybe that would help my problem. apt also installed the 6.2.0 kernel for ubuntu 23.04 but then autoremoved it later.

Here is my console output:

uname -a
Linux peter-MS-7821 6.6.0-rc3-tkg-bore #1 SMP PREEMPT_DYNAMIC TKG Fri Sep 29 09:18:43 CDT 2023 x86_64 x86_64 x86_64 GNU/Linux

lsb_release -crid
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.3 LTS
Release: 22.04
Codename: jammy

sudo apt update
Hit:1 http://us.archive.ubuntu.com/ubuntu lunar InRelease
Hit:2 http://us.archive.ubuntu.com/ubuntu lunar-updates InRelease
Hit:3 http://us.archive.ubuntu.com/ubuntu lunar-backports InRelease
Hit:4 http://security.ubuntu.com/ubuntu lunar-security InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
9 packages can be upgraded. Run 'apt list --upgradable' to see them.

running "sudo dpkg --audit" provides no output

apt --simulate full-upgrade
NOTE: This is only a simulation!
      apt needs root privileges for real execution.
      Keep also 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... Done
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  dkms libnvidia-decode-535:i386 libnvidia-encode-535:i386
  libnvidia-fbc1-535:i386 screen-resolution-extra
Use 'apt autoremove' to remove them.
Get more security updates through Ubuntu Pro with 'esm-apps' enabled:
  libavdevice58 libpostproc55 libavcodec58 libavutil56 libswscale5
  libswresample3 libavformat58 libavfilter7
Learn more about Ubuntu Pro at https://ubuntu.com/pro
The following packages have been kept back:
  alsa-ucm-conf
The following packages will be upgraded:
  base-files grub-efi-amd64-bin grub-efi-amd64-signed libfreerdp-client2-2
  libfreerdp-server2-2 libfreerdp2-2 libwinpr2-2 shim-signed
8 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
6 standard LTS security updates
Inst grub-efi-amd64-signed [1.187.4~22.04.1+2.06-2ubuntu14.2] (1.193.2+2.06-2ubuntu17.2 Ubuntu:23.04/lunar-updates, Ubuntu:23.04/lunar-security [amd64]) []
Inst grub-efi-amd64-bin [2.06-2ubuntu14.2] (2.06-2ubuntu17.2 Ubuntu:23.04/lunar-updates, Ubuntu:23.04/lunar-security [amd64])
Inst shim-signed [1.51.3+15.7-0ubuntu1] (1.54+15.7-0ubuntu1 Ubuntu:23.04/lunar [amd64])
Inst base-files [12ubuntu4.4] (12.3ubuntu2 Ubuntu:23.04/lunar [amd64])
Conf base-files (12.3ubuntu2 Ubuntu:23.04/lunar [amd64])
Inst libfreerdp-server2-2 [2.10.0+dfsg1-1] (2.10.0+dfsg1-1ubuntu0.2 Ubuntu:23.04/lunar-updates, Ubuntu:23.04/lunar-security [amd64]) []
Inst libfreerdp-client2-2 [2.10.0+dfsg1-1] (2.10.0+dfsg1-1ubuntu0.2 Ubuntu:23.04/lunar-updates, Ubuntu:23.04/lunar-security [amd64]) []
Inst libfreerdp2-2 [2.10.0+dfsg1-1] (2.10.0+dfsg1-1ubuntu0.2 Ubuntu:23.04/lunar-updates, Ubuntu:23.04/lunar-security [amd64]) []
Inst libwinpr2-2 [2.10.0+dfsg1-1] (2.10.0+dfsg1-1ubuntu0.2 Ubuntu:23.04/lunar-updates, Ubuntu:23.04/lunar-security [amd64])
Conf grub-efi-amd64-signed (1.193.2+2.06-2ubuntu17.2 Ubuntu:23.04/lunar-updates, Ubuntu:23.04/lunar-security [amd64])
Conf grub-efi-amd64-bin (2.06-2ubuntu17.2 Ubuntu:23.04/lunar-updates, Ubuntu:23.04/lunar-security [amd64])
Conf shim-signed (1.54+15.7-0ubuntu1 Ubuntu:23.04/lunar [amd64])
Conf libfreerdp-server2-2 (2.10.0+dfsg1-1ubuntu0.2 Ubuntu:23.04/lunar-updates, Ubuntu:23.04/lunar-security [amd64])
Conf libfreerdp-client2-2 (2.10.0+dfsg1-1ubuntu0.2 Ubuntu:23.04/lunar-updates, Ubuntu:23.04/lunar-security [amd64])
Conf libfreerdp2-2 (2.10.0+dfsg1-1ubuntu0.2 Ubuntu:23.04/lunar-updates, Ubuntu:23.04/lunar-security [amd64])
Conf libwinpr2-2 (2.10.0+dfsg1-1ubuntu0.2 Ubuntu:23.04/lunar-updates, Ubuntu:23.04/lunar-security [amd64])

Revision history for this message
Bernard Stafford (bernard010) said :
#3

Ubuntu 23.04 End of Life is January 2024. [4 more months]
Ubuntu 22.04 LTS End of Standard Support April 2027, End of Life is April 2032.

Revision history for this message
Peter Stodder (freddycatking) said :
#4

I'm aware of this, I play some modern games and I wanted some of the more cutting edge features that 23.04 has, including MESA version 23.1+. I know that newer versions of mesa can be installed on any OS but I figured it would be easier for me to upgrade to the beta ubuntu, and I was prepared to upgrade again next week when ubuntu 23.10 will apparently be released.
In any case I was wrong, but now I'm stuck on an improperly configured OS that thinks it's halfway done upgrading. I either need to revert properly to 22.04 or preferably, upgrade to 23.04 and continue to upgrade next time there's a release, instead of doing a clean install.

Revision history for this message
Manfred Hampl (m-hampl) said :
#5

The output shows that your system is in a somewhat hybrid status between jammy and lunar, but it seems that only the last few bits are missing.

Just run the commands

sudo apt full-upgrade
lsb_release -crid

and copy/paste the output that we can see the results.

Revision history for this message
Peter Stodder (freddycatking) said :
#6

That seemed to work! Is there anything else I should do to check for hidden problems?

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  dkms libnvidia-decode-535:i386 libnvidia-encode-535:i386
  libnvidia-fbc1-535:i386 screen-resolution-extra
Use 'sudo apt autoremove' to remove them.
Get more security updates through Ubuntu Pro with 'esm-apps' enabled:
  libavdevice58 libpostproc55 libavcodec58 libavutil56 libswscale5
  libswresample3 libavformat58 libavfilter7
Learn more about Ubuntu Pro at https://ubuntu.com/pro
The following packages have been kept back:
  alsa-ucm-conf
The following packages will be upgraded:
  base-files grub-efi-amd64-bin grub-efi-amd64-signed libfreerdp-client2-2
  libfreerdp-server2-2 libfreerdp2-2 libwinpr2-2 shim-signed
8 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
6 standard LTS security updates
Need to get 5,027 kB of archives.
After this operation, 62.5 kB disk space will be freed.
Do you want to continue? [Y/n] y
Get:1 http://us.archive.ubuntu.com/ubuntu lunar-updates/main amd64 grub-efi-amd64-signed amd64 1.193.2+2.06-2ubuntu17.2 [1,378 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu lunar-updates/main amd64 grub-efi-amd64-bin amd64 2.06-2ubuntu17.2 [1,611 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu lunar/main amd64 shim-signed amd64 1.54+15.7-0ubuntu1 [667 kB]
Get:4 http://us.archive.ubuntu.com/ubuntu lunar/main amd64 base-files amd64 12.3ubuntu2 [76.0 kB]
Get:5 http://us.archive.ubuntu.com/ubuntu lunar-updates/main amd64 libfreerdp-server2-2 amd64 2.10.0+dfsg1-1ubuntu0.2 [108 kB]
Get:6 http://us.archive.ubuntu.com/ubuntu lunar-updates/main amd64 libfreerdp-client2-2 amd64 2.10.0+dfsg1-1ubuntu0.2 [273 kB]
Get:7 http://us.archive.ubuntu.com/ubuntu lunar-updates/main amd64 libfreerdp2-2 amd64 2.10.0+dfsg1-1ubuntu0.2 [566 kB]
Get:8 http://us.archive.ubuntu.com/ubuntu lunar-updates/main amd64 libwinpr2-2 amd64 2.10.0+dfsg1-1ubuntu0.2 [348 kB]
Fetched 5,027 kB in 1s (7,211 kB/s)
Preconfiguring packages ...
(Reading database ... 271337 files and directories currently installed.)
Preparing to unpack .../grub-efi-amd64-signed_1.193.2+2.06-2ubuntu17.2_amd64.deb
 ...
Unpacking grub-efi-amd64-signed (1.193.2+2.06-2ubuntu17.2) over (1.187.4~22.04.1
+2.06-2ubuntu14.2) ...
Preparing to unpack .../grub-efi-amd64-bin_2.06-2ubuntu17.2_amd64.deb ...
Unpacking grub-efi-amd64-bin (2.06-2ubuntu17.2) over (2.06-2ubuntu14.2) ...
Preparing to unpack .../shim-signed_1.54+15.7-0ubuntu1_amd64.deb ...
Unpacking shim-signed (1.54+15.7-0ubuntu1) over (1.51.3+15.7-0ubuntu1) ...
Preparing to unpack .../base-files_12.3ubuntu2_amd64.deb ...
Unpacking base-files (12.3ubuntu2) over (12ubuntu4.4) ...
Setting up base-files (12.3ubuntu2) ...
Installing new version of config file /etc/issue ...
Installing new version of config file /etc/issue.net ...
Installing new version of config file /etc/lsb-release ...
motd-news.service is a disabled or a static unit not running, not starting it.
(Reading database ... 271349 files and directories currently installed.)
Preparing to unpack .../libfreerdp-server2-2_2.10.0+dfsg1-1ubuntu0.2_amd64.deb .
..
Unpacking libfreerdp-server2-2:amd64 (2.10.0+dfsg1-1ubuntu0.2) over (2.10.0+dfsg
1-1) ...
Preparing to unpack .../libfreerdp-client2-2_2.10.0+dfsg1-1ubuntu0.2_amd64.deb .
..
Unpacking libfreerdp-client2-2:amd64 (2.10.0+dfsg1-1ubuntu0.2) over (2.10.0+dfsg
1-1) ...
Preparing to unpack .../libfreerdp2-2_2.10.0+dfsg1-1ubuntu0.2_amd64.deb ...
Unpacking libfreerdp2-2:amd64 (2.10.0+dfsg1-1ubuntu0.2) over (2.10.0+dfsg1-1) ..
.
Preparing to unpack .../libwinpr2-2_2.10.0+dfsg1-1ubuntu0.2_amd64.deb ...
Unpacking libwinpr2-2:amd64 (2.10.0+dfsg1-1ubuntu0.2) over (2.10.0+dfsg1-1) ...
Setting up libwinpr2-2:amd64 (2.10.0+dfsg1-1ubuntu0.2) ...
Setting up grub-efi-amd64-bin (2.06-2ubuntu17.2) ...
Setting up grub-efi-amd64-signed (1.193.2+2.06-2ubuntu17.2) ...
Installing grub to /boot/efi.
Installing for x86_64-efi platform.
Installation finished. No error reported.
Setting up libfreerdp2-2:amd64 (2.10.0+dfsg1-1ubuntu0.2) ...
Setting up shim-signed (1.54+15.7-0ubuntu1) ...
Installing grub to /boot/efi.
Installing for x86_64-efi platform.
Installation finished. No error reported.
Setting up libfreerdp-server2-2:amd64 (2.10.0+dfsg1-1ubuntu0.2) ...
Setting up libfreerdp-client2-2:amd64 (2.10.0+dfsg1-1ubuntu0.2) ...
Processing triggers for man-db (2.11.2-1) ...
Processing triggers for cracklib-runtime (2.9.6-5build1) ...
Processing triggers for plymouth-theme-ubuntu-text (22.02.122-3ubuntu2) ...
update-initramfs: deferring update (trigger activated)
Processing triggers for install-info (6.8-6build2) ...
Processing triggers for libc-bin (2.37-0ubuntu2.1) ...
Processing triggers for initramfs-tools (0.142ubuntu2.2) ...
update-initramfs: Generating /boot/initrd.img-6.6.0-rc3-tkg-bore

peter@peter-MS-7821:~$ lsb_release -crid
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 23.04
Release: 23.04
Codename: lunar

Revision history for this message
Best Manfred Hampl (m-hampl) said :
#7

It seems to have worked.
I do not see any problem any more.

Revision history for this message
Peter Stodder (freddycatking) said :
#8

Thanks Manfred Hampl, that solved my question.