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

Current Development version likely to have breaking changes
Post Reply
odror
Posts: 14
Joined: Sat Feb 15, 2014 8:53 pm

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

Post 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.
Last edited by odror on Fri May 23, 2025 11:14 pm, edited 1 time in total.
dougmccrary
Posts: 1373
Joined: Sat Aug 31, 2019 7:35 am
Location: San Diego

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

Post 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.
User avatar
iconnor
Posts: 3351
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

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

Post 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.
odror
Posts: 14
Joined: Sat Feb 15, 2014 8:53 pm

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

Post 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.
Post Reply