Ubuntu 24.04 upgrade: Difference between revisions

From Bitpost wiki
(Created page with "* 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 - * 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 OLD Notes from 22.04, for review... * these were replaced (i put old ones in ~/backup/) and need review: /etc/syst...")
 
No edit summary
 
(18 intermediate revisions by the same user not shown)
Line 1: Line 1:
== 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:
mh-update-ubuntu
# (ensure all repos are working)
# reboot
Either:
sudo do-release-upgrade
Or:
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
# change sudoers? N (default)
# Keep local sshd_config
# remove local packages? Y
# restart? Y
== NOTES ==
=== Docker ===
[https://www.reddit.com/r/Ubuntu/comments/1f8d6ez/comment/llf629p/?utm_source=share&utm_medium=web3x&utm_name=web3xcss&utm_term=1&utm_content=share_button This] workaround hopefully gets docker going?  untested...
=== 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
* Ensure all repos are available


Fucking google key needs bump:
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 -
  curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key --keyring /usr/share/keyrings/cloud.google.gpg add -
* 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


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...
OLD Notes from 22.04, for review...
Line 23: Line 65:
  # https://wiki.archlinux.org/index.php/XDG_Autostart
  # https://wiki.archlinux.org/index.php/XDG_Autostart
  exec --no-startup-id dex --autostart --environment i3
  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
=== abtdev1 ===
The following repos were in use, and may need to be re-added after upgrade:
Hit https://download.docker.com/linux/ubuntu jammy InRelease                                                                                                                                                                                                                                                                                                                                                                         
Hit http://us.archive.ubuntu.com/ubuntu jammy InRelease                                                                                                                                                                                                                                                                                                                                                                             
Hit http://security.ubuntu.com/ubuntu jammy-security InRelease                                                                                                                                                                                                                                                                                                                                                                       
Hit https://brave-browser-apt-release.s3.brave.com stable InRelease                                                                                                                                                                                                                                                                                                                                                                 
Hit http://us.archive.ubuntu.com/ubuntu jammy-updates InRelease                                                                                                                                                                                                                                                                                                                                                                     
Hit http://dl.google.com/linux/chrome/deb stable InRelease                                                                                                                                                                                                                                                                                                                                                                           
Hit http://us.archive.ubuntu.com/ubuntu jammy-backports InRelease                                                                                                                                                                                                                                                                                                                                                                   
Get:1 http://download.opensuse.org/repositories/home:/manuelschneid3r/xUbuntu_22.04  InRelease [1,554 B]                                                                                                                                                                                                                                                                                                                             
Get:2 http://download.opensuse.org/repositories/home:/manuelschneid3r/xUbuntu_22.04  Packages [983 B]                                                                                                                                                                                                                                                                                                                               
Hit https://packages.microsoft.com/repos/vscode stable InRelease                                                                                                                                                                                                                                                                                                                                                                     
Hit https://ppa.launchpadcontent.net/serge-rider/dbeaver-ce/ubuntu jammy InRelease
During install, internet routing was trashed and browser stopped working, and the upgrade of thunderbird to a snap failed ("Cant reach snap store"), who cares, i skipped it...

Latest revision as of 20:40, 24 September 2024

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:
mh-update-ubuntu
# (ensure all repos are working)
# reboot

Either:

sudo do-release-upgrade

Or:

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
# change sudoers? N (default)
# Keep local sshd_config
# remove local packages? Y
# restart? Y

NOTES

Docker

This workaround hopefully gets docker going? untested...

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

abtdev1

The following repos were in use, and may need to be re-added after upgrade:

Hit https://download.docker.com/linux/ubuntu jammy InRelease                                                                                                                                                                                                                                                                                                                                                                          
Hit http://us.archive.ubuntu.com/ubuntu jammy InRelease                                                                                                                                                                                                                                                                                                                                                                               
Hit http://security.ubuntu.com/ubuntu jammy-security InRelease                                                                                                                                                                                                                                                                                                                                                                        
Hit https://brave-browser-apt-release.s3.brave.com stable InRelease                                                                                                                                                                                                                                                                                                                                                                   
Hit http://us.archive.ubuntu.com/ubuntu jammy-updates InRelease                                                                                                                                                                                                                                                                                                                                                                       
Hit http://dl.google.com/linux/chrome/deb stable InRelease                                                                                                                                                                                                                                                                                                                                                                            
Hit http://us.archive.ubuntu.com/ubuntu jammy-backports InRelease                                                                                                                                                                                                                                                                                                                                                                     
Get:1 http://download.opensuse.org/repositories/home:/manuelschneid3r/xUbuntu_22.04  InRelease [1,554 B]                                                                                                                                                                                                                                                                                                                              
Get:2 http://download.opensuse.org/repositories/home:/manuelschneid3r/xUbuntu_22.04  Packages [983 B]                                                                                                                                                                                                                                                                                                                                 
Hit https://packages.microsoft.com/repos/vscode stable InRelease                                                                                                                                                                                                                                                                                                                                                                      
Hit https://ppa.launchpadcontent.net/serge-rider/dbeaver-ce/ubuntu jammy InRelease

During install, internet routing was trashed and browser stopped working, and the upgrade of thunderbird to a snap failed ("Cant reach snap store"), who cares, i skipped it...