Trouble with 20.04

Forum for questions and support relating to the 1.34.x releases only.
Post Reply
sufstu
Posts: 7
Joined: Sun May 03, 2020 11:23 pm

Trouble with 20.04

Post by sufstu »

Hi, I upgraded to 20.04 and added the following focal packages link into sources.list

deb http://ppa.launchpad.net/iconnor/zoneminder-1.34/ubuntu focal main
deb-src http://ppa.launchpad.net/iconnor/zoneminder-1.34/ubuntu focal main

I had a working install of zoneminder on 18.04. But now I have no zoneminder and I can not install zoneminder - any help would be appreciated

sudo apt install zoneminder....

The following packages have unmet dependencies.
zoneminder : Depends: libavcodec58 (>= 7:4.2) but it is not installable
Depends: libavformat58 (>= 7:4.2) but it is not installable
Depends: libavutil56 (>= 7:4.0) but it is not installable
Depends: libswresample3 (>= 7:4.0) but it is not installable
Depends: libswscale5 (>= 7:4.0) but it is not installable
Depends: libvlc5 (>= 2.1.0) but it is not installable
Depends: libx264-155 but it is not installable
Depends: libjs-mootools (>= 1.4.5~debian1) but it is not installable
Depends: libdbd-mysql-perl but it is not installable
Depends: libphp-serialization-perl but it is not installable
Depends: libnet-sftp-foreign-perl but it is not installable
Depends: libdevice-serialport-perl but it is not installable
Depends: libimage-info-perl but it is not installable
Depends: libsys-mmap-perl but it is not installable
Depends: liburi-encode-perl but it is not installable
Depends: libdatetime-perl but it is not installable
Depends: libclass-std-fast-perl but it is not installable
Depends: libsoap-wsdl-perl but it is not installable
Depends: libio-socket-multicast-perl but it is not installable
Depends: libsys-cpu-perl but it is not installable
Depends: libsys-meminfo-perl but it is not installable
Depends: libdata-uuid-perl but it is not installable
Depends: libnumber-bytes-human-perl but it is not installable
Depends: libfile-slurp-perl but it is not installable
Depends: php5-apcu but it is not installable or
php-apcu but it is not installable
Depends: php-apc but it is not installable or
php-apcu-bc but it is not installable
Depends: libcrypt-eksblowfish-perl but it is not installable
Depends: libdata-entropy-perl but it is not installable
Recommends: zoneminder-doc (>= 1.34.11-focal1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

P.s. I don't mind too much if I loose my zoneminder config etc.

thanks

Stu
bbunge
Posts: 2934
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: Trouble with 20.04

Post by bbunge »

So far I have been successful upgrading fro 18.04 to 20.04.

What may work:
Remove the PPA
Purge zoneminder (you will get a notice that the database remains and the events directory remails and that is OK - don't delete them)
Reinstall Zoneminder manually or with the script from the ZM WIKI.

Or
Save your database (and events if you want to) then wipe everything and start with a fresh 20.04.

If I have time tonight or tomorrow I'll try this and report back. Am awfully busy during this stay at home ...;-)
sufstu
Posts: 7
Joined: Sun May 03, 2020 11:23 pm

Re: Trouble with 20.04

Post by sufstu »

Thank you! So I have purged Zoneminder with the following results:

sudo apt purge zoneminder
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED
zoneminder*
0 to upgrade, 0 to newly install, 1 to remove and 0 not to upgrade.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 187440 files and directories currently installed.)
Purging configuration files for zoneminder (1.34.11-bionic1) ...

Reminder: to completely remove "zoneminder" it may be necessary
* to delete database using the following sample command:
sudo mysqladmin --defaults-file=/etc/mysql/debian.cnf -f drop zm
* to delete remaining data files in /var/cache/zoneminder.

apache2_invoke postrm: Purging configuration zoneminder
apache2_reload: Your configuration is broken. Not reloading Apache 2
apache2_reload: apache2: Syntax error on line 146 of /etc/apache2/apache2.conf: Syntax error on line 3 of /etc/apache2/mods-enabled/php7.2.load: Cannot load /usr/lib/apache2/modules/libphp7.2.so into server: /usr/lib/apache2/modules/libphp7.2.so: cannot open shared object file: No such file or directory
dpkg: warning: while removing zoneminder, directory '/var/log/zm' not empty so not removed
dpkg: warning: while removing zoneminder, directory '/var/cache/zoneminder/events' not empty so not removed
dpkg: warning: while removing zoneminder, directory '/var/cache/zoneminder/cache' not empty so not removed
sufstu
Posts: 7
Joined: Sun May 03, 2020 11:23 pm

Re: Trouble with 20.04

Post by sufstu »

After the above I still get the same broken depndencies problem as original post... darn.

Could it be that the install script is not working or that my system is confused as to whether it is 20.04 or 18.04?

Also maria db is 10.5

I could find anything relating to mysqld or mysql 8 on my system.

S
bbunge
Posts: 2934
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: Trouble with 20.04

Post by bbunge »

I have not been able to get the ugrade to work. A fresh install on 20.04 does work with the install script (but I have not tried it in a week). Wait, I did an install on my Pi with 20.04 and 1.34.10.
sufstu
Posts: 7
Joined: Sun May 03, 2020 11:23 pm

Re: Trouble with 20.04

Post by sufstu »

Finally got it working - I would say its tricky after upgrade from 18.04 to 20.04

had 2 problems...

to successfully install zoneminder i purged all mariadb packages and mysql packages by typing

sudo dpkg -l | grep mariadb

and then sudo apt-get --purge autoremove (all packages found with above command)

then I still had apache2 problems similar to the instructions i got from:

https://stackoverflow.com/questions/494 ... linux-mint

and now its working!
sufstu
Posts: 7
Joined: Sun May 03, 2020 11:23 pm

Re: Trouble with 20.04

Post by sufstu »

It would be great to know how easy it would be to get my config back now?

even if its just the camera settings or zone settings

I have a complete backup of my 18.04 disk if there is an easy method?

S
Post Reply