It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In RegisterIt looks like you're new here. If you want to get involved, click one of these buttons!
Howdy, Stranger!
It looks like you've been lurking for a while.
If you register, we also will remember what you have read and notify you about new comments. You will also be able to participate in discussions.
So if you'd like to get involved, register for an account, it'll only take you a minute!
This guide is prepared for Container VPS services, that that comes with OpenVZ 7 virtualization. As these services come with 3.x kernel version, it is possible to upgrade the Ubuntu 16.04 version to Ubuntu 18.04. The recommendation is to make the upgrade on a fresh Ubuntu 16.04 OS installation, as the more customizations are done, the higher is the change for failure.
Warning:
Before making any changes, back up any required information from the VPS.
Check if your service has the required kernel version:
uname -r
The output should show Linux 3.x kernel version.
Update the current packages:
apt update && apt upgrade
Install update-manager-core tool:
apt install update-manager-core
Start the Upgrade:
do-release-upgrade
Agree with the first request of enabling alternate SSH ports. Afterward, proceed with the upgrade details based on your preferences. You will be requested to enter a network interface name for IPv6 usage. The interface is "venet0". If at the end of configuration you will not agree with automatic reboot, you will have to reboot on the first possibility.
After you have finished, check the version:
lsb_release -a
This should show the following output:
Distributor ID: Ubuntu
Description: Ubuntu 18.04.4 LTS
Release: 18.04
Codename: bionic
Comments
Why is file /etc/apt/sources.list still contains 'xenial' and not 'bionic' ?
It is possible that your upgrade was not fully completed or performed not on a Container VPS service. In general, you should be able to adjust the /etc/apt/sources.list file manually. Below you can see the contents of a file as it should be: