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

Creating a Shortcut to Windows Terminal (Or Any Other App That Doesn’t Show Shortcut Option)

Weirdly, Windows Terminal does not allow you to create a shortcut - there's no obvious…

3 months ago

Simplest Wireguard Setup Ever

Wireguard Wireguard is the newest way to setup a VPN for your home servers. What…

4 months ago

Fix Your Smart Home – Stop Tasmota Devices From Switching Randomly

While working on fixing my KuLED light switches from magically but unexpectedly switching on, I…

6 months ago

Using WP-CLI to Access MySQL Running in A LAMP Docker Container

WP-CLI is a great command line tool to help you manage Wordpress. I had trouble…

9 months ago

Dunzip – Download and Unzip in Linux With One Command

Tired of downloading zip or tar files, decompressing, and then having to delete the compressed…

10 months ago

Backing Up an SD Card or Hard Drive to A VHD File (Virtual Hard Disk)

  The Microsoft Virtual Hard Disk - An Ideal Backup Image Format Microsoft's Virtual Hard…

10 months ago