Notes on updating Ubuntu from the command line (16.04 → 18.04, 18.04 → 20.04 both)

Basically, if you execute the following command, you can update (it takes a lot of time)

sudo apt-get -y update; sudo apt-get -y upgrade;
do-release-upgrade 

If you are asked to have a dialogue on the way, basically enter "y"

Would you like to remove a package that is no longer supported (or does not exist in the repository)?
186 packages will be removed.
It may take several hours to remove the package.
continue[yN]Details[d]

After completion, you can confirm the update completion from the following

$ cat /etc/os-release 
NAME="Ubuntu"
VERSION="20.04.1 LTS (Focal Fossa)"
…

Error Please install all available updates for your release before upgrading.

$ do-release-upgrade 
Checking for a new Ubuntu release
Please install all available updates for your release before upgrading.

Resolved by apt-get -y update and sudo apt-get -y upgrade

sudo apt-get -y update; sudo apt-get -y upgrade;

Error You have not rebooted after updating a package which requires a reboot. Please reboot before upgrading.

$ do-release-upgrade
Checking for a new Ubuntu release
You have not rebooted after updating a package which requires a reboot. Please reboot before upgrading.

Reboot to solve

reboot

Error Package version cannot be upgraded

It may be good to uninstall the corresponding package

#(Example) When uninstalling ros kinetic
sudo apt-get remove ros-*

reference

Please install all available updates for your release before upgrading|Ubuntu

Recommended Posts

Notes on updating Ubuntu from the command line (16.04 → 18.04, 18.04 → 20.04 both)
How to run a GIF file from the Linux command line (Ubuntu)
Compile and run Java on the command line
How to apply C code format from the command line
How to make Ubuntu a fixed IP address on the command line (explained as carefully as possible)
Build the latest Samba 4 on Ubuntu 20.04
How to run a Kotlin Coroutine sample from the command line
Install lsb_release from the command line when lsb_release fails in docker environment
Notes on migrating from CircleCI 1.0 to 2.0
Instructions for installing and using the AWS command line (awscli) on CentOS
Kick ShellScript on the server from Java
Install OpenJDK (Java) on the latest Ubuntu
How to change the timezone on Ubuntu
A memo of what I did from a blank state to searching for characters using the "grep command" on "Ubuntu"
Notes on getting Callback from Android text-to-speech function TextToSpeech
Migration from Eclipse to IntelliJ (on the way)
Display the System Monitor applet on the Ubuntu 20.04 taskbar
Install the latest version of Jenkins on Ubuntu 16
JDBC operation check from xampp installation on Ubuntu
Solved the problem that the test could not be executed from the command line with spring-boot-starter-test