motioneye-project / motioneye

A web frontend for the motion daemon.
GNU General Public License v3.0
3.98k stars 653 forks source link

E: Unable to correct problems, you have held broken packages. #2526

Open kfir36 opened 2 years ago

kfir36 commented 2 years ago

I installed the dev motioneye by the dev wiki and when i got to the sudo motioneye_init I've got that error: image

os: Volumio device: Raspberry pi

coder0107git commented 2 years ago

Run sudo apt install libavcodec58 libavdevice58 libavfilter7 libavformat58 libswresample3 and then rerun sudo motioneye_init.

kfir36 commented 2 years ago

Run sudo apt install libavcodec58 libavdevice58 libavfilter7 libavformat58 libswresample3 and then rerun sudo motioneye_init.

I ran it and it gave me that error:

volumio@sus:~$ sudo motioneye_init
[sudo] password for volumio:
Hit:1 http://archive.raspberrypi.org/debian buster InRelease
Get:2 http://raspbian.raspberrypi.org/raspbian buster InRelease [15.0 kB]
Hit:3 https://deb.nodesource.com/node_14.x buster InRelease
Get:4 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages [13.0 MB]
Fetched 13.0 MB in 9s (1392 kB/s)
Reading package lists... Done
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  479k  100  479k    0     0   257k      0  0:00:01  0:00:01 --:--:--  405k

Reading package lists... Done

Building dependency tree
Reading state information... Done
Note, selecting 'motion' instead of './buster_motion_4.3.2-1_armhf.deb'
curl is already the newest version (7.74.0-1.2~bpo10+1).
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 ffmpeg : Depends: libavcodec58 (= 7:4.1.9-0+deb10u1+rpt1)
          Depends: libavdevice58 (= 7:4.1.9-0+deb10u1+rpt1) but it is not going to be installed
          Depends: libavfilter7 (= 7:4.1.9-0+deb10u1+rpt1)
          Depends: libavformat58 (= 7:4.1.9-0+deb10u1+rpt1) but it is not going to be installed
 motion : Depends: libavcodec58 (>= 7:4.0)
          Depends: libavdevice58 (>= 7:4.0) but it is not going to be installed
          Depends: libavformat58 (>= 7:4.1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.  
MichaIng commented 2 years ago

Hmm those packages should have been installed with ffmpeg already. What does the following say?

apt policy libavcodec58
dpkg -l | grep libavcodec

Probably volumio has another conflicting version of the ffmpeg libraries installed?

kfir36 commented 2 years ago
apt policy libavcodec58
dpkg -l | grep libavcodec
volumio@sus:~$ apt policy libavcodec58
dpkg -l | grep libavcodeclibavcodec58:
  Installed: (none)
  Candidate: 7:4.1.9-0+deb10u1+rpt1
  Version table:
     7:4.1.9-0+deb10u1+rpt1 500
        500 http://archive.raspberrypi.org/debian buster/main armhf Packages
     7:4.1.9-0+deb10u1 500
        500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages
volumio@sus:~$ dpkg -l | grep libavcodec
volumio@sus:~$