I had an old virtual machine that I wanted to upgrade from 16.10 to 18.04
Since Yakkety (16.10) is no longer supported I followed this guide and updated my source list:
1 |
1 2 3 4 5 |
sudo sed -i 's/yakkety/bionic/g' /etc/apt/sources.list |
I then did the standard commands to upgrade:
1 2 3 |
sudo apt update sudo apt upgrade sudo apt dist-upgrade |
However I got this following error after “apt upgrade”:
1 2 3 4 5 6 |
You might want to run 'apt-get -f install' to correct these. The following packages have unmet dependencies: openjdk-8-jre : Depends: openjdk-8-jre-headless (= 8u232-b09-0ubuntu1~18.04.1) but 8u131-b11-0ubuntu1.16.10.2 is installed Depends: libatk-wrapper-java-jni (>= 0.33.3-9~) but it is not installed xorg : Depends: xserver-xorg (>= 1:7.7+19ubuntu7.1) E: Unmet dependencies. Try using -f. |
To fix this I did the following:
1 2 |
sudo dpkg --configure -a sudo apt-get -f install |
Then did the upgrade again:
1 2 3 |
sudo apt update sudo apt upgrade sudo apt dist-upgrade |
Success !
1 2 3 4 5 6 |
sudo lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 18.04.3 LTS Release: 18.04 Codename: bionic |
Amod
Thank you ! Your post was very helpful and worked perfectly for me.
Peter
Hi, does this work without data loss? what and how must be backed up beforehand?Hi, does this work without data loss? what and how must be backed up beforehand?