Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Solved Best way to update from Ubuntu 18.04 to 20.04?

    Support
    ubuntu ubuntu 20.04 update 18.04 upgrade
    5
    7
    260
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • jdaviescoates
      jdaviescoates last edited by

      I was just looking at:

      https://docs.cloudron.io/guides/upgrade-ubuntu-20/

      Which suggests actually updating my server.

      But I was kinda assuming the best way would be to just start with a fresh Ubuntu 20.04 server and restore a back-up there.

      Pros/ cons for each way?

      Thanks!

      I use Cloudron with Gandi & Hetzner

      BrutalBirdie 1 Reply Last reply Reply Quote 0
      • BrutalBirdie
        BrutalBirdie Staff @jdaviescoates last edited by

        @jdaviescoates
        I did both 😄

        The upgrade to Ubuntu 20 might be faster, depends on what you have to restore. (2TB of Movies?) 😬

        I would do a backup, start with the upgrade to 20 and if you don't like something, you can always just do a clean sweep and restore from backup 🤷

        Like my work? Consider donating a beer 🍻 Cheers!

        1 Reply Last reply Reply Quote 2
        • BrutalBirdie
          BrutalBirdie Staff @jdaviescoates last edited by

          @jdaviescoates
          I did both 😄

          The upgrade to Ubuntu 20 might be faster, depends on what you have to restore. (2TB of Movies?) 😬

          I would do a backup, start with the upgrade to 20 and if you don't like something, you can always just do a clean sweep and restore from backup 🤷

          Like my work? Consider donating a beer 🍻 Cheers!

          1 Reply Last reply Reply Quote 2
          • Topic has been marked as a question  girish girish 
          • Topic has been marked as solved  girish girish 
          • girish
            girish Staff last edited by girish

            Ubuntu 20 upgrade has worked via dist-upgrade works fairly well. Only thing is one has to baby sit the upgrade and keep pressing 'yes'.

            I would do what @BrutalBirdie said, make a backup and then try to upgrade ubuntu. If it doesn't work, restore from backup into new ubuntu.

            robi 1 Reply Last reply Reply Quote 2
            • robi
              robi @girish last edited by

              @girish said in Best way to update from Ubuntu 18.04 to 20.04?:

              Only thing is one has to baby sit the upgrade and keep pressing 'yes'.

              one can use the -y option for apt to 'assume yes' to all prompts.

              Life of Advanced Technology

              girish 1 Reply Last reply Reply Quote 1
              • scooke
                scooke last edited by

                Though it is possible, I've always gotten the impression that this type of upgrade is a risky thing to do. Fortunately, with Cloudron's easy backup, and easy restore to new server options, you can give it a try. But in all my years of fiddling with servers I've never once managed to upgrade the OS successfully. Back then all I ran were LAMP stacks so it wasn't a big deal to just start with a new VPS running the new OS and copy everything back. But once things like npm, node, ruby and rails, python, etc., started getting used for web stuff, forget it! Too many things break!

                Make that backup, try to upgrade, but do it when you have a window that gives you enough time to fallback on the "restore Cloudron from backup" option.

                A life lived in fear is a life half-lived

                jdaviescoates 1 Reply Last reply Reply Quote 2
                • jdaviescoates
                  jdaviescoates @scooke last edited by jdaviescoates

                  @scooke yeah, I definitely think I'm going to migrate to a fresh 20.04 VPS (or maybe even a dedicated server ) instead of just updating my existing 18.04 one.

                  Now I'm wondering how to do that with minimum downtime?

                  I use Cloudron with Gandi & Hetzner

                  1 Reply Last reply Reply Quote 0
                  • girish
                    girish Staff @robi last edited by

                    @robi said in Best way to update from Ubuntu 18.04 to 20.04?:

                    one can use the -y option for apt to 'assume yes' to all prompts.

                    this doesn't work with do-release-upgrade for whatever reason.

                    1 Reply Last reply Reply Quote 1
                    • First post
                      Last post
                    Powered by NodeBB