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


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Support
  3. Best way to update from Ubuntu 18.04 to 20.04?

Best way to update from Ubuntu 18.04 to 20.04?

Scheduled Pinned Locked Moved Solved Support
ubuntuubuntu 20.04update18.04upgrade
7 Posts 5 Posters 1.2k Views
  • 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.
  • J Offline
    J Offline
    jdaviescoates
    wrote on Jun 17, 2022, 4:43 PM last edited by
    #1

    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

    B 1 Reply Last reply Jun 17, 2022, 5:01 PM
    0
    • J jdaviescoates
      Jun 17, 2022, 4:43 PM

      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!

      B Offline
      B Offline
      BrutalBirdie
      Partner
      wrote on Jun 17, 2022, 5:01 PM last edited by
      #2

      @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 drink. Cheers!

      1 Reply Last reply
      2
      • G girish marked this topic as a question on Jun 18, 2022, 4:05 PM
      • G girish has marked this topic as solved on Jun 18, 2022, 4:05 PM
      • G Offline
        G Offline
        girish
        Staff
        wrote on Jun 18, 2022, 4:05 PM last edited by girish Jun 18, 2022, 4:06 PM
        #3

        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.

        R 1 Reply Last reply Jun 18, 2022, 5:04 PM
        2
        • G girish
          Jun 18, 2022, 4:05 PM

          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.

          R Offline
          R Offline
          robi
          wrote on Jun 18, 2022, 5:04 PM last edited by
          #4

          @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.

          Conscious tech

          G 1 Reply Last reply Jun 20, 2022, 3:18 AM
          1
          • S Offline
            S Offline
            scooke
            wrote on Jun 18, 2022, 9:02 PM last edited by
            #5

            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

            J 1 Reply Last reply Jun 18, 2022, 10:38 PM
            2
            • S scooke
              Jun 18, 2022, 9:02 PM

              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.

              J Offline
              J Offline
              jdaviescoates
              wrote on Jun 18, 2022, 10:38 PM last edited by jdaviescoates Jun 18, 2022, 10:38 PM
              #6

              @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
              0
              • R robi
                Jun 18, 2022, 5:04 PM

                @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.

                G Offline
                G Offline
                girish
                Staff
                wrote on Jun 20, 2022, 3:18 AM last edited by
                #7

                @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
                1
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes

                7/7

                Jun 20, 2022, 3:18 AM


                • Login

                • Don't have an account? Register

                • Login or register to search.
                7 out of 7
                • First post
                  7/7
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Bookmarks
                • Search