batman_rising
Posts: 5
Joined: Thu Jan 26, 2017 9:43 pm

FFmpeg/Libav installation error on Pi 3

Wed Feb 01, 2017 6:47 pm

Hi folks, I was trying to install FFMPEG on my Pi 3.

Initially I was trying to do it with "apt-get install ffmpeg" command which is given on the Wiki of Debian. But I got this (error) message for that command.

E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied) E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?

When I was searching for the solution, I came to know that I have to put "sudo" before "apt-get install ffmpeg". So I tried with the same but then I found this.

Reading package lists... Done Building dependency tree Reading state information... Done Package ffmpeg is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source

E: Package 'ffmpeg' has no installation candidate

Is there any solution for this thing ? I need your guidance. Thanks a lot.

User avatar
rpdom
Posts: 17275
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: FFmpeg/Libav installation error on Pi 3

Wed Feb 01, 2017 6:54 pm

In Raspbian Jessie, a version of ffmpeg is provided in the libav-tools package.

fruitoftheloom
Posts: 23548
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: FFmpeg/Libav installation error on Pi 3

Wed Feb 01, 2017 7:12 pm

batman_rising wrote:Hi folks, I was trying to install FFMPEG on my Pi 3.

Initially I was trying to do it with "apt-get install ffmpeg" command which is given on the Wiki of Debian. But I got this (error) message for that command.

E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied) E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?

When I was searching for the solution, I came to know that I have to put "sudo" before "apt-get install ffmpeg". So I tried with the same but then I found this.

Reading package lists... Done Building dependency tree Reading state information... Done Package ffmpeg is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source

E: Package 'ffmpeg' has no installation candidate

Is there any solution for this thing ? I need your guidance. Thanks a lot.
In Raspbian Jessie as above stated it is the libav-tools package you require, also see:

https://wiki.debian.org/ffmpeg
Rather than negativity think outside the box !
RPi 4B 4GB (SSD Boot) RaspiOS64 ARM64
Asus ChromeBox 3 Celeron is my other computer...

Return to “Troubleshooting”