3

I killed the do-release-upgrade before everything downloaded. I'm running ok, but for now I can only go forward with the release upgrade. I can't get any focal updates. I would like to wait a bit longer before release upgrade but still take focal security updates.

: uname -a
Linux rita 5.4.0-148-generic #165-Ubuntu SMP Tue Apr 18 08:53:12 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

: cat /etc/os-release | grep -i version VERSION="20.04.6 LTS (Focal Fossa)" VERSION_ID="20.04" VERSION_CODENAME=focal

: cat /etc/apt/sources.list|grep -v '^#'

deb http://us.archive.ubuntu.com/ubuntu/ jammy main restricted deb http://us.archive.ubuntu.com/ubuntu/ jammy universe deb http://us.archive.ubuntu.com/ubuntu/ jammy multiverse

I have a borg backup of my system 1 day before I started the update and then changed my mind a few minutes later.

Can I go back (without too much pain) or must I go forward?

Dan
  • 13,119

1 Answers1

5

Your best bet at this point would be to run the following command to change your sources list back to focal:

First, run the following command to test the edit (this will print an edited version of the file in the terminal):

sudo sed -e 's/jammy/focal/g' /etc/apt/sources.list

If everything looks good and all your sources say focal, then use the following command to apply the edit:

sudo sed -i 's/jammy/focal/g' /etc/apt/sources.list

Then, run

sudo apt clean
sudo apt update
sudo apt upgrade

and see what it says.

Unless you have some PPAs that also need to be edited, this should fix the issue.

If you run into problems with software version numbers and other errors, then you might need to proceed with the installation of the upgrade to Jammy or, alternatively, use your backup instead (using your backup would probably be ideal if my method fails).

As far as your backup is concerned, I'm not familiar with that type so you would need to be advised by someone else on that or possibly ask a separate question that focuses on restoring your backup instead.

mchid
  • 43,546
  • 8
  • 97
  • 150