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:
sudo sed -i 's/yakkety/bionic/g' /etc/apt/sources.list
I then did the standard commands to upgrade:
sudo apt update sudo apt upgrade sudo apt dist-upgrade
However I got this following error after “apt upgrade”:
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:
sudo dpkg --configure -a sudo apt-get -f install
Then did the upgrade again:
sudo apt update sudo apt upgrade sudo apt dist-upgrade
Success !
sudo lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 18.04.3 LTS Release: 18.04 Codename: bionic
Avoiding Browser Plugins with KeePassXC KeePassXC is a popular free open source password manager. As…
If you've had a Gmail account for years, like I have, at some point you…
Here's a little trick I use to back up my Raspberry Pi without having to…
I try to keep my email inbox fairly clean but I do subscribe to some…
I was recently faced with the dreaded prospect of re-installing Windows 10. While the standard…
Pi-Hole and Upstream DNS Providers Pi-hole is an excellent whole-home, self-hosted ad blocker and DNS…
View Comments
Thank you ! Your post was very helpful and worked perfectly for me.
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?