Ubuntu 24.04 upgrade

From Bitpost wiki
Revision as of 16:04, 19 September 2024 by M (talk | contribs)

GUI systems

  • Upgrading gnome can be troublesome shit from command line. Do this:
    • exit i3, boot into Gnome
    • hit Alt, type Software Updater, go through options to upgrade
  • Or to try from the command line anyway:
sudo apt install update-manager
sudo update-manager &

Non-GUI systems

mh-update-ubuntu
# (ensure all repos are working)
# reboot
# connect via direct proxmox shell (not ssh)
sudo do-release-upgrade
# mail server: none

NOTES

General

  • FFS You must use 24.04.1, any older version is NOT OFFICIALLY SUPPORTED and there will not be a direct path from 22.04.x. Idiots were supposed to have it ready 2024/08/15 but bugs pushed that to 2024/08/29.
  • Ensure all repos are available

Fucking google key needs bump:

curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key --keyring /usr/share/keyrings/cloud.google.gpg add -

I had to hunt and kill the old albert key too, what a fucking pita..

  • Officially upgrade via Canonical tooling

It supports 22.04.1 > 24.04.1.

OLD Notes from 22.04, for review...

  • these were replaced (i put old ones in ~/backup/) and need review:
/etc/systemd/networkd.conf
/etc/sudoers
/etc/ssh/sshd_config
/etc/i3/config
/etc/i3/config.keycodes

After fixing networkd.conf, you should restart the service, but that isn't enough, you need to disconnect from wired and reconnect to wired before changes are applied.

/etc/i3/config.keycodes has some newer foo that I need to vet against my i3 config. Esp this:

# Start XDG autostart .desktop files using dex. See also
# https://wiki.archlinux.org/index.php/XDG_Autostart
exec --no-startup-id dex --autostart --environment i3

matryoshka

  • gitlab key is causing failure, upgrade it
curl -JLO "https://packages.gitlab.com/runner/gitlab-runner/gpgkey/runner-gitlab-runner-49F16C5CC3A0F81F.pub.gpg"
gpg --import runner-gitlab-runner-49F16C5CC3A0F81F.pub.gpg

not enough - kill fucking apt repo, readd it

curl -L "https://packages.gitlab.com/install/repositories/runner/gitlab-runner/script.deb.sh" | sudo bash

then the usual

mh-update-ubuntu