June 2026 promo! Join our Discord free of charge.

Slick­Stack
Lightning-fast WordPress on Nginx

“do-release-upgrade” vs. installing new Ubuntu LTS from scratch

  • This topic is empty.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #24991
    Emily
    Guest

    THanks for SlickStack!

    Do you recommend using “do-release-upgrade” to get on Ubuntu 24.04 from 22.04 or should I just launch a new server from scratch and migrate my files.

    #24993
    Sharon
    Guest

    I hate using do-release-upgrade

    Very janky script and I have seen it fail many times in the past. At best, you’re left with a messy filesystem where lots of leftover cruft remains from your old LTS version and lots of random warning messages or things like that.

    Definitely avoid using it if possible. It’s not difficult to spin up a new machine with the latest LTS version and your filesystem will much A LOT cleaner too 😬

    #24994
    Emily
    Guest

    *your filesystem will be A LOT cleaner too 😬

    #24997
    Ethan
    Guest

    https://askubuntu.com/questions/409555/what-does-do-release-upgrade-really-do

    I list here the actions mentioned there and checked if they are actually implemented:

    repository related
    switch to new sources.list entries
    remove unknown 3rd party repositories
    possibly swap mirror (not implemented)
    package related
    check there are no broken packages before upgrading
    update current release before upgrading (apt-get update only)
    remove and install specific packages
    check if {ubuntu,kubuntu,edubuntu}-desktop is installed
    get rid of old kernels
    have a removal-blacklist and -whitelist
    remove or replace obsolete packages which existed in earlier releases
    configuration related (possible in quirks: see below)
    adding the default user to new groups (not done for the versions I checked)
    check some config files

    way too many tasks imo

    #25052
    Amy
    Guest

    takes only 5 min to install a new cloud server and slickstack….

    #25067
    Walter
    Guest

    I never knew do-release-upgrade was risky, thanks. I always thought it was normal to run that but probably I will just spin a new server in the future

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: “do-release-upgrade” vs. installing new Ubuntu LTS from scratch

Thanks to our generous sponsors for their support!