Sunday, April 28, 2024
 Popular · Latest · Hot · Upcoming
6
rated 0 times [  6] [ 0]  / answers: 1 / hits: 7087  / 2 Years ago, tue, march 29, 2022, 7:45:50

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?


More From » upgrade

 Answers
2

For the most part, do-release-upgrade is a wrapper around dist-upgrade with some additional functionality. As noted, it is the recommended official way to upgrade Ubuntu minimal/server installations. Unofficially, dist-upgrade after changing your sources.list often works just as well.



The difference is: using do-release-upgrade is recommended because it has the ability to handle system configuration changes sometimes needed between releases.



For an Ubuntu chroot, I suggest you stick with do-release-upgrade unless it keeps failing for some reason.


[#36886] Thursday, March 31, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
onbean

Total Points: 29
Total Questions: 102
Total Answers: 115

Location: Benin
Member since Fri, Mar 24, 2023
1 Year ago
onbean questions
Fri, Mar 18, 22, 19:49, 2 Years ago
Tue, Dec 6, 22, 11:51, 1 Year ago
Mon, Jun 7, 21, 17:21, 3 Years ago
Mon, Jan 16, 23, 04:48, 1 Year ago
Mon, Oct 17, 22, 14:51, 2 Years ago
;