Upgrading Zoneminder in 8 Easy Steps

On November 5, 2013, in Technology, by Mike Waldron

Upgrading to the latest version of Zoneminder (currently 1.26) is a simple process of executing the following commands in the specified order:

sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
sudo apt-get install python-software-properties
sudo add-apt-repository ppa:iconnor/zoneminder
sudo apt-get update
sudo apt-get dist-upgrade

The last command above will prompt you several times for the ZoneMinder upgrade.  Answer in this order: Y,Y,Y, Enter, Enter, Y,Y
Ignore the warning about stopping Zoneminder as it will already be stopped.

If you’d like to see the Zoneminder upgrade process looks like and how I answered the interactive upgrade questions, click here.

Important: Sometimes Zoneminder upgrades will destroy your symlinks.  Perform the following commands to reestablish these symlinks:

sudo /etc/init.d/zoneminder stop
sudo ln -s /var/cache/zoneminder/events /usr/share/zoneminder/events
sudo ln -s /var/cache/zoneminder/images /usr/share/zoneminder/images
sudo /etc/init.d/zoneminder start

Lastly, after the upgrade there’s a chance your Zoneminder won’t automatically start.  To fix this:

sudo nano /etc/init.d/zoneminder

Add “sleep 15″ before the zmfix -a line as pictured below (see arrow) and reboot.


You can upgrade to future versions by simply typing the last command (sudo apt-get dist-upgrade) as you have already added the repository for ZoneMinder.  Just make sure to add the sleep command above when upgrading.

2 Responses to Upgrading Zoneminder in 8 Easy Steps

  1. Leroy23 says:

    The las command no update on Raspberry Pi 🙁

  2. Angelo says:

    1) None of the prompts came up during the last step

    2) zmfix is no longer there, so I put the sleep command above zoneminder start

    But now zmpkg.pl is not found, and it doesn’t appear to be in the directory defined as path in init.d

Leave a Reply

Your email address will not be published. Required fields are marked *

Web Hosting