What is the proper way to upgrade Ubuntu chroot environment to a newer Ubuntu release? The chroot environment has been originally set up using debootstrap
.
The proper way to upgrade a Ubuntu server is to use do-release-upgrade
command.
Ubuntu is based on Debian. Debian can be upgraded by replacing the release name in /etc/apt/sources.list
with the new release name and running apt-get update
, apt-get upgrade
and apt-get dist-upgrade
.
Which one is the proper way to upgrade a Ubuntu chroot environment? What does do-release-upgrade
do differently from the Debian way?