Não é possível instalar o VLC no Ubuntu 15.10

2

Eu fiz o upgrade para 15.10 de 14 meses atrás e acabei perdendo o VLC no processo.

Agora, quando tento instalar o VLC

$ sudo apt-get install vlc
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 resolve the situation:

The following packages have unmet dependencies:
 vlc : Depends: libgles1-mesa (>= 7.8.1) but it is not going to be installed or
                libgles1
E: Unable to correct problems, you have held broken packages.

Para descobrir porque o libgles1 não pode ser instalado, tentei instalá-lo

$ sudo apt-get install libgles1
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'libgles1-mesa' instead of 'libgles1'
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 resolve the situation:

The following packages have unmet dependencies:
 libgles1-mesa : Depends: libglapi-mesa (= 11.0.2-1ubuntu4)
E: Unable to correct problems, you have held broken packages.

Mais uma vez tentei instalar a dependência

$ sudo apt-get install libglapi-mesa
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libglapi-mesa is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Como já estava instalado, verifiquei a versão

$ sudo apt-cache policy libglapi-mesa
libglapi-mesa:
  Installed: 11.0.4~git20151026+11.0.ec14e6f8-0ubuntu0ricotz~trusty
  Candidate: 11.0.4~git20151026+11.0.ec14e6f8-0ubuntu0ricotz~trusty
  Version table:
 *** 11.0.4~git20151026+11.0.ec14e6f8-0ubuntu0ricotz~trusty 0
        100 /var/lib/dpkg/status
     11.0.2-1ubuntu4 0
        500 http://ca.archive.ubuntu.com/ubuntu/ wily/main amd64 Packages

Acontece que eu tenho uma versão mais nova do libglapi-mesa do que a desejada pelo libgles1.

O que posso fazer aqui? Eu não tenho certeza do que significa a saída da política do apt-cache, mas parece sugerir que existe uma versão 11.0.2 conhecida por aí. Devo olhar para reverter isso?

Atualização:

O motivo pelo qual eu tinha uma versão mais nova do libglapi-mesa era porque há algum tempo eu tinha instalado o steam e ele precisava atualizar o libgl1-mesa-glx para o 11.0.4, o que dependia do libglapi-mesa 11.0.4. Desde então, removi o Steam, então decidi reverter os pacotes para as versões padrão.

$ sudo apt-get install libgl1-mesa-glx=11.0.2-1ubuntu4 libglapi-mesa=11.0.2-1ubuntu4
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libx11-xcb1:i386 libxcb-dri2-0:i386 libxcb-dri3-0:i386 libxcb-glx0:i386 libxcb-present0:i386 libxcb-sync1:i386
  libxshmfence1:i386 libxxf86vm1:i386
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
  libgl1-mesa-dev libgl1-mesa-glx:i386 libglapi-mesa:i386 libgles2-mesa libglu1-mesa-dev libqt4-opengl-dev
The following packages will be DOWNGRADED:
  libgl1-mesa-glx libglapi-mesa
0 upgraded, 0 newly installed, 2 downgraded, 6 to remove and 3 not upgraded.
...

VLC agora instalado bem

$ sudo apt-get install vlc
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libdrm-dev libpthread-stubs0-dev libx11-dev libx11-doc libx11-xcb-dev libx11-xcb1:i386 libxau-dev
  libxcb-dri2-0:i386 libxcb-dri2-0-dev libxcb-dri3-0:i386 libxcb-dri3-dev libxcb-glx0:i386 libxcb-glx0-dev
  libxcb-present-dev libxcb-present0:i386 libxcb-randr0-dev libxcb-render0-dev libxcb-shape0-dev libxcb-sync-dev
  libxcb-sync1:i386 libxcb-xfixes0-dev libxcb1-dev libxdamage-dev libxdmcp-dev libxext-dev libxfixes-dev
  libxshmfence-dev libxshmfence1:i386 libxxf86vm-dev libxxf86vm1:i386 mesa-common-dev x11proto-core-dev
  x11proto-damage-dev x11proto-dri2-dev x11proto-fixes-dev x11proto-gl-dev x11proto-input-dev x11proto-kb-dev
  x11proto-xext-dev x11proto-xf86vidmode-dev xorg-sgml-doctools xtrans-dev
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  libgles1-mesa libgles2-mesa libqt5x11extras5 libva-drm1 libva-x11-1 libxcb-composite0 libxcb-xv0 vlc-plugin-notify
  vlc-plugin-samba
Suggested packages:
  videolan-doc
The following NEW packages will be installed:
  libgles1-mesa libgles2-mesa libqt5x11extras5 libva-drm1 libva-x11-1 libxcb-composite0 libxcb-xv0 vlc
  vlc-plugin-notify vlc-plugin-samba
0 upgraded, 10 newly installed, 0 to remove and 3 not upgraded.
Need to get 1,571 kB of archives.
Acho que o mais interessante é que antes de atualizar para o Wily, o VLC estava funcionando bem com as versões 11.0.4 do libglapi-mesa. Eu suspeito que agora que o VLC está instalado, se eu precisar deles novamente, eu poderia atualizar para o 11.0.4 sem quebrar o VLC.

    
por user276318 27.01.2016 / 23:26

0 respostas