갑자기 우분투가 비디오 재생을 중단했습니다. 비디오를 열면 플레이어가 설치를 제안합니다 gstreamer1.0-libav
. 그러나 설치하지 못했습니다.
수동으로 설치를 시도했지만 오류 메시지는 다음과 같습니다.
$ sudo apt-get install gstreamer1.0-libav
Reading package lists... Done
Building dependency tree
Reading state information... Done
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:
gstreamer1.0-libav : Depends: libavcodec54 (>= 6:9.1-1) but it is not going to be installed or
libavcodec-extra-54 (>= 6:9.13) but it is not going to be installed
Depends: libavformat54 (>= 6:9.1-1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
답변
세상에
$ sudo apt-get install libopus0
Suggested packages:
opus-tools
The following packages will be REMOVED:
gstreamer1.0-libav:i386 libavcodec54:i386 libavformat54:i386 libopus0:i386
The following NEW packages will be installed:
libopus0
$ sudo apt-get install gstreamer1.0-libav
The following NEW packages will be installed:
gstreamer1.0-libav libavcodec54 libavformat54
0 upgraded, 3 newly installed, 0 to remove and 18 not upgraded
이제 작동합니다 … 이유를 모르겠습니다 …하지만 행복합니다.
답변
Multi-Architecture
패키지 관리를 다룰 때 이것이 알려진 문제라고 생각합니다 . apt-get
현재 설치된 동일한 패키지의 아치를 유지하는 기본 솔루션을 제공합니다.
이 경우 최상의 솔루션은 :i386
해당 :amd64
패키지 (libavcodec54 또는 libavcodec-extra-54, libavformat54, .. 종속성 트리의 다른 패키지)를 해당 패키지로 바꾸는 것 입니다.
가장 쉬운 솔루션 인 AFAIK는 aptitude
다른 모든 가능한 솔루션을 제공하고 원하는 것을 선택할 수 있도록하는 것입니다.
VirtualBox (Ubuntu 14.04)에서 테스트되었습니다. 나는 설치했다 :
sudo apt-get install gstreamer1.0-libav:i386 libavcodec54:i386 libavformat54:i386 \
libopus0:i386
gstreamer1.0-libav를 설치하려고하면 같은 오류 메시지가 나타납니다.
# apt-get install gstreamer1.0-libav
Reading package lists... Done
Building dependency tree
Reading state information... Done
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:
gstreamer1.0-libav : Depends: libavcodec54 (>= 6:9.1-1) but it is not going to be installed or
libavcodec-extra-54 (>= 6:9.13) but it is not going to be installed
Depends: libavformat54 (>= 6:9.1-1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
이러한 경우를 해결하기위한 지침 :
-
적성 설치 :
sudo apt-get install aptitude
-
그것을 실행 :
sudo aptitude
-
보도 /및 검색
gstreamer1.0-libav
후Enter이 아닌지 확인하고 다음을 검색
gstreamer1.0-libav:i368
하는 n데 사용 하십시오 . -
그런 다음을 눌러 +설치 플래그를 지정하십시오.
-
이 경우 두 가지 해결책이 있습니다. 하단의 빨간색 메시지를 참조하십시오. .또는 ,을 사용 하여 찾고있는 제거 제안 4 개 를 선택 하십시오 .
-
올바른 솔루션인지 확인하려면을 눌러 수행 e할 작업을 검사하고 표시하십시오.
-
문제가 없으면를 눌러 !해당 솔루션을 적용한 다음 g설치 프로세스를 시작하십시오.
(Reading database ... 58187 files and directories currently installed.) Removing gstreamer1.0-libav:i386 (1.2.4-1~ubuntu1) ... Removing libavformat54:i386 (6:9.16-0ubuntu0.14.04.1) ... Removing libavcodec54:i386 (6:9.16-0ubuntu0.14.04.1) ... Removing libavutil52:i386 (6:9.16-0ubuntu0.14.04.1) ... Removing libgstreamer-plugins-base1.0-0:i386 (1.2.4-1~ubuntu1) ... Removing libgstreamer1.0-0:i386 (1.2.4-0ubuntu1) ... Removing libglib2.0-0:i386 (2.40.2-0ubuntu1) ... Removing librtmp0:i386 (2.4+20121230.gitdf6c518-1) ... Removing libgnutls26:i386 (2.12.23-12ubuntu2.1) ... Removing libp11-kit0:i386 (0.20.2-2ubuntu2) ... Removing libffi6:i386 (3.1~rc1+r3.0.13-12) ... Removing libgcrypt11:i386 (1.5.3-2ubuntu4.1) ... Removing libgpg-error0:i386 (1.12-0.2ubuntu1) ... Removing libgsm1:i386 (1.0.13-4) ... Removing libmp3lame0:i386 (3.99.5+repack1-3ubuntu1) ... Removing libvorbisenc2:i386 (1.3.2-1.3ubuntu1) ... Removing libvorbis0a:i386 (1.3.2-1.3ubuntu1) ... Removing libtheora0:i386 (1.1.1+dfsg.1-3.2) ... Removing libogg0:i386 (1.3.1-1ubuntu1) ... Removing libopenjpeg2:i386 (1.3+dfsg-4.7ubuntu1) ... Removing libopus0 (1.1-0ubuntu1) ... Removing libschroedinger-1.0-0:i386 (1.0.11-2ubuntu1) ... Removing liborc-0.4-0:i386 (1:0.4.18-1ubuntu1) ... Removing libspeex1:i386 (1.2~rc1.1-1ubuntu1) ... Removing libtasn1-6:i386 (3.4-3ubuntu0.1) ... Removing libva1:i386 (1.3.0-2) ... Removing libvpx1:i386 (1.3.0-2) ... Removing libx264-142:i386 (2:0.142.2389+git956c8d8-2) ... Removing libxvidcore4:i386 (2:1.3.2-9ubuntu1) ... Processing triggers for libc-bin (2.19-0ubuntu6) ... Selecting previously unselected package libopus0. (Reading database ... 58038 files and directories currently installed.) Preparing to unpack .../libopus0_1.1-0ubuntu1_amd64.deb ... Unpacking libopus0 (1.1-0ubuntu1) ... Selecting previously unselected package libavcodec54:amd64. Preparing to unpack .../libavcodec54_6%3a9.16-0ubuntu0.14.04.1_amd64.deb ... Unpacking libavcodec54:amd64 (6:9.16-0ubuntu0.14.04.1) ... Selecting previously unselected package libavformat54:amd64. Preparing to unpack .../libavformat54_6%3a9.16-0ubuntu0.14.04.1_amd64.deb ... Unpacking libavformat54:amd64 (6:9.16-0ubuntu0.14.04.1) ... Selecting previously unselected package gstreamer1.0-libav:amd64. Preparing to unpack .../gstreamer1.0-libav_1.2.4-1~ubuntu1_amd64.deb ... Unpacking gstreamer1.0-libav:amd64 (1.2.4-1~ubuntu1) ... Setting up libopus0 (1.1-0ubuntu1) ... Setting up libavcodec54:amd64 (6:9.16-0ubuntu0.14.04.1) ... Setting up libavformat54:amd64 (6:9.16-0ubuntu0.14.04.1) ... Setting up gstreamer1.0-libav:amd64 (1.2.4-1~ubuntu1) ... Processing triggers for libc-bin (2.19-0ubuntu6) ... Press Return to continue.
답변
나는 여전히 같은 메시지를 받고 있었지만 @Sergey의 단계를 약간 변경하고 나를 위해 일했습니다.
-
먼저 다음 패키지를 수동으로 설치 제거하십시오.
sudo apt-get remove gstreamer1.0-libav:i386 sudo apt-get remove libavcodec54:i386 sudo apt-get remove libavformat54:i386 sudo apt-get remove libopus0:i386
-
이제 설치하십시오 :
sudo apt-get install libopus0 sudo apt-get install gstreamer1.0-libav