web-dev-qa-db-fra.com

Ubuntu 14.04, problème lors de l’installation de gstreamer1.0-libav, dépendances non satisfaites

Soudainement, mon Ubuntu a cessé de jouer à la vidéo. Lorsque j'ouvre une vidéo, le lecteur me suggère d'installer gstreamer1.0-libav. Cependant, l'installation échoue.

J'ai essayé de l'installer manuellement, voici le message d'erreur:

$ 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.
11
Sergey

OMG.

$ 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

Maintenant ça marche ... Je ne sais pas pourquoi ... Mais je suis heureux.

12
Sergey

Je pense que c'est un problème connu lorsqu'il s'agit de Multi-Architecture gestion des paquets. apt-get propose la solution recommandée pour conserver Arch of installé sur les mêmes packages, ce qui n'est pas ce que vous voulez dans certains cas.

Dans ce cas, la meilleure solution consistait à remplacer les :i386 (libavcodec54 ou libavcodec-extra-54, libavformat54, .. autres packages de l'arbre de dépendance) par les packages :AMD64 correspondants.

Autant que je sache, la solution la plus simple est l’utilisation aptitude, qui fournit toutes les autres solutions possibles et vous permet de choisir ce que vous préférez.

Testé sur une VirtualBox (Ubuntu 14.04). J'ai installé:

Sudo apt-get install gstreamer1.0-libav:i386 libavcodec54:i386 libavformat54:i386 \
libopus0:i386

Essayer d'installer gstreamer1.0-libav déclenche le même message d'erreur:

# 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.

Instructions pour résoudre ce cas:

  1. Installer aptitude:

    Sudo apt-get install aptitude
    
  2. Exécuter:

    Sudo aptitude
    
  3. Presse / et recherchez gstreamer1.0-libav puis Enter

    Vérifiez que ce n'est pas gstreamer1.0-libav:i368, utilisez n rechercher le suivant.

  4. Puis appuyez + pour le marquer pour l'installation

  5. Dans ce cas, il y a deux solutions, voir le message rouge en bas. Utilisation . ou , choisir Suggère 4 suppressions qui sont celles que nous recherchons.

    Aptitude: Suggests 4 keepsAptitude: Suggests 4 removals

  6. Pour confirmer que c'est la bonne solution, appuyez sur e il va donc examiner et montrer ce qu'il va faire.

    Aptitude: Examine solution

  7. Si tout va bien, appuyez sur ! appliquer cette solution alors g pour démarrer le processus d'installation.

    (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.
    
5
user.dz

Je recevais toujours le même message mais j'ai légèrement changé les étapes @Sergey et j'ai travaillé pour moi.

  1. Commencez par désinstaller manuellement les packages suivants:

    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
    
  2. Maintenant, installez:

    Sudo apt-get install libopus0
    Sudo apt-get install gstreamer1.0-libav
    
3
Ramesh