Page 1 of 1

[solved] Failed upgrade of Ubuntu 22.04 to 24.04 with zoneminder.

Posted: Wed May 21, 2025 9:52 pm
by odror
Hi

When upgrading ubuntu 22.04 to 24.04 with zoneminder. The upgrade removes zonemider, mariadb-server and apache2. this is clearly not what I want.

Using the the RELEASE_UPGRADER_ALLOW_THIRD_PARTY=1 flag does not help. It is still removing zoneminder.
doing apt-mark hold to zoneminder and mariadb-server aborts the update.

Any ideas how to perform the update without removing zoneminder and its dependent packages.

Re: Failed upgrade of Ubuntu 22.04 to 24.04 with zoneminder.

Posted: Thu May 22, 2025 6:48 am
by dougmccrary
I don't think you can on a release.
But it won't mess with the DB, so a reinstall and restore (of the monitors) should get to where you left off.

Re: Failed upgrade of Ubuntu 22.04 to 24.04 with zoneminder.

Posted: Thu May 22, 2025 1:15 pm
by iconnor
Please note that it shouldn't do a purge, so the db contents and any config rules should remain in place and all you need to do is re-enable the ppa and re-install mysql and zoneminder.

That being said, make sure you have a db backup. That is the crucial data and if you have that you can restore.

I don't know about that flag, but do-release-upgrade --help
lists... --allow-third-party so.. not an ENV var, just a command line parameter.

Re: Failed upgrade of Ubuntu 22.04 to 24.04 with zoneminder.

Posted: Fri May 23, 2025 11:14 pm
by odror
I was able to do it.

Before the upgrade I had to specifically install (reinstall) apache2 and mariadb-server. By doing that I ensured that if zonemeder is removed its dependencies (apache2 and mariadb-server) will not.

After the upgrade php was changed to 8.3. All I needed to do was to add my timezone to the php.ini

Zonemider was not removed, but it was marked for removal. I reinstalled it after fixing the ppa to reflect 24.04. The same version 1.37 was reinstalled with the old config file.

All the apache2 config files and mariadb-server config files did not change.