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

Keyboard Browser Navigation Nirvana – Must Have Tools for Keyboard Ninjas

Keyboard Shortcuts Recently I've been coding quite a bit (working on a dart command line…

12 hours ago

Using pfSense on VirtualBox for Windows using only One Virtual Machine

pfSense on VirtualBox I've been experimenting with pfSense (firewall software you can use for DIY…

1 month ago

Firefox – Where did my pinned tabs go ?

Firefox Pinned Tabs Firefox provides the ability to "pin" a tab, so it stays in…

2 months ago

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…

5 months ago

Simplest Wireguard Setup Ever

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

6 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…

9 months ago