ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Upgrading Debian 9 to 10

    IT Discussion
    debian debian 9 debian 10 upgrade
    3
    12
    1.1k
    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.
    • JaredBuschJ
      JaredBusch
      last edited by

      I realized a few days ago that I never upgraded my UniFi and UNMS servers from Debian 9 to 10 last year.

      For anyone curious, here is my process for that.

      1. FFS, make a damned snaphot or backup.

      2. Upgrade the system to current first.

      sudo apt update
      sudo apt upgrade -y
      sudo apt autoremove -y
      
      1. Reboot
      sudo reboot
      
      1. Update the apt source lists to look at the new repository
      sudo sed -i 's/stretch/buster/g' /etc/apt/sources.list
      sudo sed -i 's/stretch/buster/g' /etc/apt/sources.list.d/*
      
      1. Update the package list
      sudo apt update
      
      1. Upgrade the packages
      sudo apt upgrade -y
      
      1. You will be asked about restarting services in a TUI window. Answer Yes.
        sorry, didn't think to get a screenshot

      2. You may or may not get warnings about conf files being change. you can review the diff and then choose which version to keep. I received this warning about lvm. After review, I just took the new version.
        e27fe13e-a72b-446c-9db9-ce848f1512b5-image.png

      3. Now do the full upgrade to finish it up.

      sudo apt full-upgrade
      
      1. Reboot again
      sudo reboot
      
      1. Cleanup the old stuff.
      sudo apt --purge autoremove
      

      Of note, between Debian 9 and 10, they apparently switched to using the new system UUID string for DHCP. If you use a system the respects the modern DHCP standards (Windows 2012 R2 or newer), you will likely get a new IP address from DHCP. If you use reservations you will need to update it.
      Or you can add this line to your /etc/dhcp/dhclient.conf

      send dhcp-client-identifier = hardware;
      
      1 Reply Last reply Reply Quote 7
      • 1
        1337
        last edited by 1337

        Debian 10 upgrade might throw a curve ball.

        If that is the case you could have a look at Debian's official upgrade docs as well:
        https://www.debian.org/releases/buster/i386/release-notes/ch-upgrading.en.html

        JaredBuschJ 1 Reply Last reply Reply Quote 1
        • JaredBuschJ
          JaredBusch @1337
          last edited by JaredBusch

          @Pete-S said in Upgrading Debian 9 to 10:

          Debian 10 upgrade might throw a curve ball.

          If that is the case you could have a look at Debian's official upgrade docs as well:
          https://www.debian.org/releases/buster/i386/release-notes/ch-upgrading.en.html

          They are virtual machines.. I shut them down and make a snapshot before this level of upgrade. So I never really care about things like that. Unless of course something fails.. then I look it up, fix if easy, or revert if not.

          1 Reply Last reply Reply Quote 2
          • FATeknollogeeF
            FATeknollogee
            last edited by

            Just tried to update UNMS (running Debian 10 thx to @JaredBusch guide) from 1.14 to 1.15
            The update failed.
            It gets "stuck" at a point where it's checking if ports 80 & 443 are free.

            It was late last night & I did not further investigate.

            JaredBuschJ 1 Reply Last reply Reply Quote 0
            • JaredBuschJ
              JaredBusch @FATeknollogee
              last edited by

              @FATeknollogee said in Upgrading Debian 9 to 10:

              Just tried to update UNMS (running Debian 10 thx to @JaredBusch guide) from 1.14 to 1.15
              The update failed.
              It gets "stuck" at a point where it's checking if ports 80 & 443 are free.

              It was late last night & I did not further investigate.

              I've not had a UNMS upgrade fail because of the OS. I've had UNMS fail because of something with the docker setup.

              FATeknollogeeF 1 Reply Last reply Reply Quote 0
              • FATeknollogeeF
                FATeknollogee @JaredBusch
                last edited by

                @JaredBusch It definitely wasn't because of the OS.
                My previous upgrade to 1.14 (I was on Deb 10) was ok.

                JaredBuschJ 1 Reply Last reply Reply Quote 0
                • JaredBuschJ
                  JaredBusch @FATeknollogee
                  last edited by

                  @FATeknollogee said in Upgrading Debian 9 to 10:

                  @JaredBusch It definitely wasn't because of the OS.
                  My previous upgrade to 1.14 (I was on Deb 10) was ok.

                  Well, I'll see what happens to mine now.
                  71844310-b67e-4f34-bf9c-b228efa91914-image.png

                  FATeknollogeeF 1 Reply Last reply Reply Quote 1
                  • FATeknollogeeF
                    FATeknollogee @JaredBusch
                    last edited by FATeknollogee

                    @JaredBusch Updating via GUI or CLI?
                    Mine was attempted via CLI.

                    JaredBuschJ 1 Reply Last reply Reply Quote 0
                    • JaredBuschJ
                      JaredBusch @FATeknollogee
                      last edited by

                      @FATeknollogee said in Upgrading Debian 9 to 10:

                      @JaredBusch Updating via GUI or CLI?
                      Mine was attempted via CLI.

                      I did it in the GUI. Normally do unless that fails.

                      No issues.
                      34d80f80-56bf-42e9-9339-64354e9c8d18-image.png

                      FATeknollogeeF 1 Reply Last reply Reply Quote 0
                      • FATeknollogeeF
                        FATeknollogee @JaredBusch
                        last edited by

                        @JaredBusch said in Upgrading Debian 9 to 10:

                        @FATeknollogee said in Upgrading Debian 9 to 10:

                        @JaredBusch Updating via GUI or CLI?
                        Mine was attempted via CLI.

                        I did it in the GUI. Normally do unless that fails.

                        No issues.
                        34d80f80-56bf-42e9-9339-64354e9c8d18-image.png

                        Thanks for the info.
                        Ok, let me go try from the GUI.

                        1 Reply Last reply Reply Quote 0
                        • FATeknollogeeF
                          FATeknollogee
                          last edited by

                          1st attempt via GUI failed, I'll try again in a few minutes

                          Last update attempt had failed.
                          Timestamp: Today at 9:05
                          Error: Failed to pull docker images. Please, try again later.
                          1 Reply Last reply Reply Quote 0
                          • FATeknollogeeF
                            FATeknollogee
                            last edited by

                            2nd attempt worked!

                            1 Reply Last reply Reply Quote 0
                            • 1 / 1
                            • First post
                              Last post