Update Ubuntu

Jun 19, 2021 at 15:59

I was trying to update my Ubuntu distro from 20 to 21, and it wasn’t happy.

After setting:

Prompt=normal

in /etc/update-manager/release-upgrades and attempting to run the upgrade:

Checking for a new Ubuntu release
Please install all available updates for your release before upgrading.

It turns out that this benign message was the reason:

❯ sudo apt dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
  libc++1
0 to upgrade, 0 to newly install, 0 to remove and 1 not to upgrade.

This fixes it:

sudo apt-get install -y libc++1

Then:

sudo apt-get update && sudo apt-get dist-upgrade

and finally:

sudo do-release-upgrade -m desktop