Upgrading Debian 9 to 10
-
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.
-
FFS, make a damned snaphot or backup.
-
Upgrade the system to current first.
sudo apt update sudo apt upgrade -y sudo apt autoremove -y
- Reboot
sudo reboot
- 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/*
- Update the package list
sudo apt update
- Upgrade the packages
sudo apt upgrade -y
-
You will be asked about restarting services in a TUI window. Answer Yes.
sorry, didn't think to get a screenshot
-
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 aboutlvm
. After review, I just took the new version.
-
Now do the full upgrade to finish it up.
sudo apt full-upgrade
- Reboot again
sudo reboot
- 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;
-
-
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 -
@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.htmlThey 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.
-
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.
-
@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.
-
@JaredBusch It definitely wasn't because of the OS.
My previous upgrade to 1.14 (I was on Deb 10) was ok. -
@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.
-
@JaredBusch Updating via GUI or CLI?
Mine was attempted via CLI. -
@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.
-
@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.
Thanks for the info.
Ok, let me go try from the GUI. -
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.
-
2nd attempt worked!