Debian Lenny Install

Forum for questions and support relating to the 1.24.x releases only.
Locked
LearningCurve
Posts: 2
Joined: Sun May 02, 2010 5:11 pm
Location: Bradwell, Norfolk, UK

Debian Lenny Install

Post by LearningCurve »

Hi, I am setting up a machine dedicated to running ZM
I have installed a fresh basic install of Lenny and am trying to install ZM onto it.
I got a long list of packages which were either not installed or insufficient versions.
When trying to install these packages, I get messages that they are no longer available, including from the debian website.
You say that ZM is available from the Debian repositories and when I run the Synaptic Package Manager sure enough there it is, but when I mark it for installation it errors saying that
"zoneminder has no available version, but exists in the database. This typically means that the package was mentioned in a dependancy but was never uploaded, has been obsoleted, or is not available with the contents of sources.list"
Can anyone tell me how to overcome this please.
Voltage54
Posts: 23
Joined: Sat Feb 21, 2009 1:35 am

Post by Voltage54 »

It could possibly be because it is from a restricted source?

You might need to modify your sources.list file to include testing and unstable.

I suggest googling 'apt pinning' and 'debian testing unstable', then once you've sorted out your sources, try an apt-get update && apt-get install zoneminder.

For example, I'm in Perth, Western Australia so I'm using the iiNet mirror:

vim /etc/apt/sources.list

Add the following line:

deb ftp://ftp.iinet.net.au/debian/debian sid main

(I've included the iinet mirror, for the complete list see http://packages.debian.org/sid/i386/zoneminder/download)

Now time to install zoneminder:

apt-get update && apt-get -t unstable install zoneminder
LearningCurve
Posts: 2
Joined: Sun May 02, 2010 5:11 pm
Location: Bradwell, Norfolk, UK

Post by LearningCurve »

Hi,

I have done that. It looked as if it was going to work but then errored due to avformat52 / avformat-extra-52 which I can't seem to get around.

I've chased around searching for them and avformat 52 seems to be only available for ubuntu. I've tried getting ffmpeg to get them that way but so far have just ended up with a fried brain trying.

There is almost certainly something simple that I'm missing here but I can't see it.
Voltage54
Posts: 23
Joined: Sat Feb 21, 2009 1:35 am

Post by Voltage54 »

If you want to install ffmpeg with xvid support in Debian you should consider using the debian-multimedia repository, which makes life a lot easier.

Append your sources.list as follows:

deb http://www.debian-multimedia.org lenny main
deb-src http://www.debian-multimedia.org lenny main

Then:

apt-get update
apt-get install debian-backports-keyring
apt-get install debian-multimedia-keyring

Then I follow the ubuntu guide for ffmpeg (with the debian-multimedia repository I find it works OK) which is located here:
http://ubuntuforums.org/showthread.php?t=786095

EDIT:

Also, if you are going down the path of using testing or unstable (sid) repositories, apt-pinning can save a lot of headaches with dependecies and corrupt installs. You can setup pinning to install from the 'unstable' only if the same package is not available in the stable repository. To do this:

Append your sources.list file as follows (use a local repository as per the link in my previous post):

deb http://ftp.iinet.net.au/debian/debian/ stable main non-free contrib
deb-src http://ftp.iinet.net.au/debian/debian/ stable main non-free contrib

deb http://ftp.iinet.net.au/debian/debian/ testing main non-free contrib
deb-src http://ftp.iinet.net.au/debian/debian/ testing main non-free contrib

deb http://ftp.iinet.net.au/debian/debian/ unstable main non-free contrib
deb-src http://ftp.iinet.net.au/debian/debian/ unstable main non-free contrib

Then create a file called preferences

vim /etc/apt/preferences

Append as follows:

Package: *
Pin: release a=stable
Pin-Priority: 700

Package: *
Pin: release a=testing
Pin-Priority: 650

Package: *
Pin: release a=unstable
Pin-Priority: 600


Good luck!
Locked