Categories: Linux

Upgrading Ubuntu from Yakkety to Bionic

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

Charlie

View Comments

  • 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?

Recent Posts

KeePassXC Password Manager – Use Auto-Type Instead of the KeePassXC Plugin

Avoiding Browser Plugins with KeePassXC KeePassXC is a popular free open source password manager. As…

3 years ago

A Simple Step to Delete Thousands of Useless Gmail Messages and Free Up Space

If you've had a Gmail account for years, like I have, at some point you…

3 years ago

Back Up Your Raspberry Pi Virtually

Here's a little trick I use to back up my Raspberry Pi without having to…

4 years ago

Unclutter Your GMail Without Missing Out On Your Newsletters

I try to keep my email inbox fairly clean but I do subscribe to some…

4 years ago

Windows Reinstall: Use Secret Migration Tool to Restore All Settings Even If Option Disabled; Plus Tips to Restore Programs After a Clean Install

I was recently faced with the dreaded prospect of re-installing Windows 10. While the standard…

4 years ago

Pi-hole & Unlimited Whitelist for OpenDNS, Cleanbrowsing, Etc.

Pi-Hole and Upstream DNS Providers Pi-hole is an excellent whole-home, self-hosted ad blocker and DNS…

4 years ago