[Solved] Ubuntu 18.04 upgrade sequence?

Ask questions about your setup or get help installing ZCS server (ZD section below).
bulletxt
Advanced member
Advanced member
Posts: 81
Joined: Sat Sep 13, 2014 1:08 am

Re: Ubuntu 18.04 upgrade sequence?

Post by bulletxt »

adrian.gibanel.btactic wrote:
StefanPalm wrote:Adrian's instructions (post #4) worked well for me, just a small addition.
After the upgrade Ubuntu 16->18 I had to disable "systemd-resolved" (systemctl stop systemd-resolved && systemctl disable systemd-resolved) and recreate a usable "resolv.conf" before running "install.sh".
I guess the new systemd-resolved was a problem because of an split DNS setup that needed to be kept in place. Then, yes, either learn how to use systemd-resolved or just stop and disable the systemd-resolved daemon as you did.
Thanks so much. I was able to correctly update to Ubuntu 18.04 without issues.
User avatar
wentum
Advanced member
Advanced member
Posts: 53
Joined: Fri Apr 04, 2014 10:49 am
Location: Pforzheim (Germany)
ZCS/ZD Version: Release 9.0.0.GA.3924 _P30
Contact:

Re: Ubuntu 18.04 upgrade sequence?

Post by wentum »

adrian.gibanel.btactic wrote:I have not tested these instructions but I'm pretty sure they should work. Feedback is welcome.
I recycle and update them from: Bug 107436 -- do-release-upgrade breaks zimbra installation for the Ubuntu 16.04 to Ubuntu 18.04 upgrade.

Upgrade from ZCS-8.8.15-16.04 to ZCS-8.8.15-18.04

0.A) If needed make sure proxy and memcached are enabled:
https://wiki.zimbra.com/wiki/Enabling_Z ... _memcached
Note: You can skip the proxy and memcached check on ZCS 8.8.X and newer Zimbra versions.

0.B) Make sure to have ZCS-8.8.15 on 16.04 prior to upgrade. Trying to upgrade from ZCS-8.7.X-16.04 to ZCS-8.8.15-18.04 will probably fail to some missing packages.


1) Make sure to run on the last version of Ubuntu packages

Code: Select all

sudo apt-get update
sudo apt-get dist-upgrade
# Reboot your system

2) Allow Third party package repos

Create:

Code: Select all

/etc/update-manager/release-upgrades.d/allow-thirdparty.cfg
file with the following content:

Code: Select all

[Sources]
AllowThirdParty=yes
3) Upgrade from Ubuntu 16.04 to Ubuntu 18.04

Code: Select all

sudo apt-get update
sudo do-release-upgrade
# This will finally reboot your system

4) Optional packages version check

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 16.04 packages:

Code: Select all

sudo dpkg -l | grep zimbra | grep -E '16.04|16.64' | awk '{print $1 " " $2 " " $3 " " $4 " " $5 " " $6 " " $7 " " $8 " " $9}'

Code: Select all

ii zimbra-apache 8.8.15.GA.1854.UBUNTU16.64 amd64 Best email money can buy
ii zimbra-core 8.8.15.GA.1854.UBUNTU16.64 amd64 Best email money can buy
ii zimbra-ldap 8.8.15.GA.1854.UBUNTU16.64 amd64 Best email money can buy
ii zimbra-logger 8.8.15.GA.1854.UBUNTU16.64 amd64 Best email money can buy
ii zimbra-mta 8.8.15.GA.1854.UBUNTU16.64 amd64 Best email money can buy
ii zimbra-proxy 8.8.15.GA.1854.UBUNTU16.64 amd64 Best email money can buy
ii zimbra-snmp 8.8.15.GA.1854.UBUNTU16.64 amd64 Best email money can buy
ii zimbra-spell 8.8.15.GA.1854.UBUNTU16.64 amd64 Best email money can buy
ii zimbra-store 8.8.15.GA.1854.UBUNTU16.64 amd64 Best email money can buy
5) Upgrade from ZCS-8.8.15-18.04 to ZCS-8.8.15-18.04

# That's right, you are upgrading to the same installed version

Code: Select all

cd zcs-*
./install.sh
# Make sure to tell the installation you want to upgrade and not to install

6) Now we should have the same packages as a pristine ZCS-8.8.15-18.04 installation and a working Zimbra installation.
Congrats adrian.gibanel.btactic!

This one is really cool and working like a charm!
I just updated from 14.04 LTS to 16.04 LTS (Zimbra 9.00) and can confirm this is working for these OSs, too.

And you are damned right those dependencies will only be ok after an update installation using the target zimbra packets!

Regards
Joerg
nuffon
Posts: 1
Joined: Wed Mar 30, 2022 8:31 pm

Re: [Solved] Ubuntu 18.04 upgrade sequence?

Post by nuffon »

I'm sorry for posting into solved topic, but steps above are the same for upgrade to Ubuntu Focal 20.04 from Ubuntu Bionic 18.04.
(I'm sorry for my english too)
bulletxt
Advanced member
Advanced member
Posts: 81
Joined: Sat Sep 13, 2014 1:08 am

Re: [Solved] Ubuntu 18.04 upgrade sequence?

Post by bulletxt »

nuffon wrote:I'm sorry for posting into solved topic, but steps above are the same for upgrade to Ubuntu Focal 20.04 from Ubuntu Bionic 18.04.
(I'm sorry for my english too)
Is that a question? Or you are saying: yes, same steps do work when upgrading from 18.04 to 20.4
Post Reply