IOpenCV на Raspberry PI: невозможно установить libavcodec58 или libavformat58Linux

Ответить
Anonymous
 IOpenCV на Raspberry PI: невозможно установить libavcodec58 или libavformat58

Сообщение Anonymous »

Я не могу установить 2 необходимых пакета в свою ОС Raspberry Pi 2, чтобы запустить opencv:

Код: Выделить всё

sudo apt install libavcodec58 libavformat58 libavutil56 libswscale5 ffmpeg -y
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
libavutil56 is already the newest version (8:4.3.6-0+deb11u1+rpt5).
libavutil56 set to manually installed.
libswscale5 is already the newest version (8:4.3.6-0+deb11u1+rpt5).
ffmpeg is already the newest version (8:5.1.6-0+deb12u1+rpt1).
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:
libavcodec58 : Depends: libaom0 (>= 1.0.0) but it is not installable
Depends: libcodec2-0.9 (>= 0.9.2) but it is not installable
Depends: libdav1d4 (>= 0.2.1) but it is not installable
Depends: libvpx6 (>= 1.6.0) but it is not installable
Depends: libwebp6 (>= 0.5.1) but it is not installable
Depends: libx264-160 (>= 2:0.160.3011+gitcde9a93) but it is not installable
Depends: libx265-192 (>= 3.2) but it is not installable
libavformat58 : Depends: libsrt1.4-gnutls (>= 1.4.2) but it is not installable
E: Unable to correct problems, you have held broken packages.
Мой sudo nano /etc/apt/sources.list.d/raspi.list:

Код: Выделить всё

deb http://archive.raspberrypi.com/debian/ bookworm main
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
deb-src http://archive.raspberrypi.com/debian/ bookworm main
и sudo nano /etc/apt/sources.list

Код: Выделить всё

deb [ arch=armhf ] http://raspbian.raspberrypi.com/raspbian/ bookworm main contrib non-free rpi
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
#deb-src http://raspbian.raspberrypi.com/raspbian/ bookworm main contrib non-free rpi
Может ли кто-нибудь подсказать мне, что я здесь делаю неправильно?
для справки, мое число «пи»

Код: Выделить всё

Linux raspberrypi 6.6.58-v7+ #1809 SMP Wed Oct 23 11:51:11 BST 2024 armv7l GNU/Linux


Подробнее здесь: https://stackoverflow.com/questions/791 ... avformat58
Ответить

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

Вернуться в «Linux»