AGibanelBtactic-Ubuntu-Upgrade-Example
Back to template page
Ubuntu Upgrade (based on third-party) - Template
Ubuntu Upgrade Example
- From: Zimbra ZCS 10.1.4 on Ubuntu 20.04
- To: Zimbra ZCS 10.1.4 on Ubuntu 22.04
Introduction
Certified page regarding Ubuntu upgrade has not been useful for ages (Even in 2024).
This is the easiest way to upgrade from one Ubuntu version to the next one in-place.
About the upgrade
The upgrade must be with the same exact version but just changing the Ubuntu version. This is aimed at Zimbra 8.8.15 or higher versions.
Procedure
Upgrade to latest Ubuntu packages
Make sure to run on the last version of Ubuntu packages
sudo apt-get update sudo apt-get dist-upgrade
Reboot your system
Allow Third party package repos
Create: /etc/update-manager/release-upgrades.d/allow-thirdparty.cfg file with the following content:
[Sources] AllowThirdParty=yes
Upgrade to newer Ubuntu version
sudo apt-get update sudo do-release-upgrade
This will finally reboot your system
Packages version check (Optional)
After booting into your upgraded system Zimbra seems to work as expected but not everything is ok. Unfortunately due to Zimbra not handling their own meta packages dependencies properly (I should perhaps open a bug, I'm not sure) now you still get 20.04 packages:
sudo dpkg -l | grep zimbra | grep -E '20.04|20.64' | awk '{print $1 " " $2 " " $3 " " $4 " " $5 " " $6 " " $7 " " $8 " " $9}'
ii zimbra-apache 10.1.4.GA.1854.UBUNTU20.64 amd64 Best email money can buy ii zimbra-core 10.1.4.GA.1854.UBUNTU20.64 amd64 Best email money can buy ii zimbra-ldap 10.1.4.GA.1854.UBUNTU20.64 amd64 Best email money can buy ii zimbra-logger 10.1.4.GA.1854.UBUNTU20.64 amd64 Best email money can buy ii zimbra-mta 10.1.4.GA.1854.UBUNTU20.64 amd64 Best email money can buy ii zimbra-proxy 10.1.4.GA.1854.UBUNTU20.64 amd64 Best email money can buy ii zimbra-snmp 10.1.4.GA.1854.UBUNTU20.64 amd64 Best email money can buy ii zimbra-spell 10.1.4.GA.1854.UBUNTU20.64 amd64 Best email money can buy ii zimbra-store 10.1.4.GA.1854.UBUNTU20.64 amd64 Best email money can buy
Upgrade to same installed version
Upgrade from ZCS-10.1.4-22.04 to ZCS-10.1.4-22.04
That's right, you are upgrading to the same installed version.
cd zcs-* ./install.sh
Make sure to tell the installation you want to upgrade and not to install
We are upgraded
Now we should have the same packages as a pristine ZCS-10.1.4-22.04 installation and a working Zimbra installation.