1

Today I tried to upgrade my Ubuntu version from 17.04 to 18.04 following this tutorial, but this didn't work:

$ sudo apt-get update
Ign.:1 http://pl.archive.ubuntu.com/ubuntu bonic InRelease
Ign.:2 http://pl.archive.ubuntu.com/ubuntu bonic-updates InRelease
Ign.:3 http://pl.archive.ubuntu.com/ubuntu bonic-backports InRelease
Ign.:4 http://pl.archive.ubuntu.com/ubuntu bonic Release
Ign.:5 http://security.ubuntu.com/ubuntu bonic-security InRelease
Ign.:6 http://pl.archive.ubuntu.com/ubuntu bonic-updates Release
...

I followed all steps, but sudo apt-get update gives me these errors. How can I revert these changes to first update to Artful and then Bionic?

karel
  • 122,292
  • 133
  • 301
  • 332

1 Answers1

1

At first undo what ever you have done before such as

You spelled bionic as bonic so:

undo

sudo sed -i 's/<whatever>/bonic/g' /etc/apt/sources.list

by running

sudo sed -i 's/bonic/<whatever>/g' /etc/apt/sources.list

Then

sudo apt update
sudo apt upgrade

and

sudo apt dist-upgrade

Open the Software & Updates settings in System Settings.

or

Press Alt+F2 and type

software-properties-gtk

Select the Updates tab

Set it to For long-term support versions if you are using 17.10.

Press Alt+F2 and type

update-manager -c

Update Manager should open up and tell you that Ubuntu 18.04 LTS is now available.

Zanna
  • 72,312
Vijay
  • 8,556