apt-get parece ignorar as versões do pacote especificadas

2

Acabei de adicionar um PPA (para o Compiz) com números de versão inferiores e criei um arquivo apt_preferences:

Package: *
Pin: release o=LP-PPA-townsend-compiz-nvidia-refresh-test
Pin-Priority: 600

Com certeza, as políticas mudaram, mas eu tenho que "rebaixar" os pacotes manualmente (aqui eu já fiz isso para compiz ):

$ apt-cache policy libcompizconfig0 compiz{,-core,-gnome,config-settings-manager,-plugins{,-default}}  
libcompizconfig0:
  Installed: 1:0.9.11.1+14.04.20140623-0ubuntu1
  Candidate: 1:0.9.11.1+14.04.20140623-0ubuntu1
  Version table:
 *** 1:0.9.11.1+14.04.20140623-0ubuntu1 0
        500 http://archive.ubuntu.com/ubuntu/ trusty-proposed/main amd64 Packages
        100 /var/lib/dpkg/status
     1:0.9.11+14.04.20140423-0ubuntu1ppa2 0
        600 http://ppa.launchpad.net/townsend/compiz-nvidia-refresh-test/ubuntu/ trusty/main amd64 Packages
     1:0.9.11+14.04.20140423-0ubuntu1 0
        500 http://archive.ubuntu.com/ubuntu/ trusty-updates/main amd64 Packages
     1:0.9.11+14.04.20140409-0ubuntu1 0
        500 http://archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
compiz:
  Installed: 1:0.9.11+14.04.20140423-0ubuntu1ppa2
  Candidate: 1:0.9.11+14.04.20140423-0ubuntu1ppa2
  Version table:
     1:0.9.11.1+14.04.20140623-0ubuntu1 0
        500 http://archive.ubuntu.com/ubuntu/ trusty-proposed/main amd64 Packages
 *** 1:0.9.11+14.04.20140423-0ubuntu1ppa2 0
        600 http://ppa.launchpad.net/townsend/compiz-nvidia-refresh-test/ubuntu/ trusty/main amd64 Packages
        100 /var/lib/dpkg/status
     1:0.9.11+14.04.20140423-0ubuntu1 0
        500 http://archive.ubuntu.com/ubuntu/ trusty-updates/main amd64 Packages
     1:0.9.11+14.04.20140409-0ubuntu1 0
        500 http://archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
compiz-core:
  Installed: 1:0.9.11.1+14.04.20140623-0ubuntu1
  Candidate: 1:0.9.11.1+14.04.20140623-0ubuntu1
  Version table:
 *** 1:0.9.11.1+14.04.20140623-0ubuntu1 0
        500 http://archive.ubuntu.com/ubuntu/ trusty-proposed/main amd64 Packages
        100 /var/lib/dpkg/status
     1:0.9.11+14.04.20140423-0ubuntu1ppa2 0
        600 http://ppa.launchpad.net/townsend/compiz-nvidia-refresh-test/ubuntu/ trusty/main amd64 Packages
     1:0.9.11+14.04.20140423-0ubuntu1 0
        500 http://archive.ubuntu.com/ubuntu/ trusty-updates/main amd64 Packages
     1:0.9.11+14.04.20140409-0ubuntu1 0
        500 http://archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
compiz-gnome:
  Installed: 1:0.9.11.1+14.04.20140623-0ubuntu1
  Candidate: 1:0.9.11.1+14.04.20140623-0ubuntu1
  Version table:
 *** 1:0.9.11.1+14.04.20140623-0ubuntu1 0
        500 http://archive.ubuntu.com/ubuntu/ trusty-proposed/main amd64 Packages
        100 /var/lib/dpkg/status
     1:0.9.11+14.04.20140423-0ubuntu1ppa2 0
        600 http://ppa.launchpad.net/townsend/compiz-nvidia-refresh-test/ubuntu/ trusty/main amd64 Packages
     1:0.9.11+14.04.20140423-0ubuntu1 0
        500 http://archive.ubuntu.com/ubuntu/ trusty-updates/main amd64 Packages
     1:0.9.11+14.04.20140409-0ubuntu1 0
        500 http://archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
compizconfig-settings-manager:
  Installed: 1:0.9.11.1+14.04.20140623-0ubuntu1
  Candidate: 1:0.9.11.1+14.04.20140623-0ubuntu1
  Version table:
 *** 1:0.9.11.1+14.04.20140623-0ubuntu1 0
        500 http://archive.ubuntu.com/ubuntu/ trusty-proposed/universe amd64 Packages
        100 /var/lib/dpkg/status
     1:0.9.11+14.04.20140423-0ubuntu1ppa2 0
        600 http://ppa.launchpad.net/townsend/compiz-nvidia-refresh-test/ubuntu/ trusty/main amd64 Packages
     1:0.9.11+14.04.20140423-0ubuntu1 0
        500 http://archive.ubuntu.com/ubuntu/ trusty-updates/universe amd64 Packages
     1:0.9.11+14.04.20140409-0ubuntu1 0
        500 http://archive.ubuntu.com/ubuntu/ trusty/universe amd64 Packages
compiz-plugins:
  Installed: 1:0.9.11.1+14.04.20140623-0ubuntu1
  Candidate: 1:0.9.11.1+14.04.20140623-0ubuntu1
  Version table:
 *** 1:0.9.11.1+14.04.20140623-0ubuntu1 0
        500 http://archive.ubuntu.com/ubuntu/ trusty-proposed/universe amd64 Packages
        100 /var/lib/dpkg/status
     1:0.9.11+14.04.20140423-0ubuntu1ppa2 0
        600 http://ppa.launchpad.net/townsend/compiz-nvidia-refresh-test/ubuntu/ trusty/main amd64 Packages
     1:0.9.11+14.04.20140423-0ubuntu1 0
        500 http://archive.ubuntu.com/ubuntu/ trusty-updates/universe amd64 Packages
     1:0.9.11+14.04.20140409-0ubuntu1 0
        500 http://archive.ubuntu.com/ubuntu/ trusty/universe amd64 Packages
compiz-plugins-default:
  Installed: 1:0.9.11.1+14.04.20140623-0ubuntu1
  Candidate: 1:0.9.11.1+14.04.20140623-0ubuntu1
  Version table:
 *** 1:0.9.11.1+14.04.20140623-0ubuntu1 0
        500 http://archive.ubuntu.com/ubuntu/ trusty-proposed/main amd64 Packages
        100 /var/lib/dpkg/status
     1:0.9.11+14.04.20140423-0ubuntu1ppa2 0
        600 http://ppa.launchpad.net/townsend/compiz-nvidia-refresh-test/ubuntu/ trusty/main amd64 Packages
     1:0.9.11+14.04.20140423-0ubuntu1 0
        500 http://archive.ubuntu.com/ubuntu/ trusty-updates/main amd64 Packages
     1:0.9.11+14.04.20140409-0ubuntu1 0
        500 http://archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages

Veja o que acontece quando tento substituir as versões do PPA de uma só vez:

$ sudo apt-get install  {libcompizconfig0,compiz{,-core,-gnome,config-settings-manager,-plugins{,-default}}}=1:0.9.11+14.04.20140423-0ubuntu1ppa2
Reading package lists... Done
Building dependency tree       
Reading state information... Done
compiz is already the newest version.
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:
 compiz-plugins : Depends: compiz-core (= 1:0.9.11.1+14.04.20140623-0ubuntu1) but 1:0.9.11+14.04.20140423-0ubuntu1ppa2 is to be installed
 compiz-plugins-default : Depends: compiz-core (= 1:0.9.11.1+14.04.20140623-0ubuntu1) but 1:0.9.11+14.04.20140423-0ubuntu1ppa2 is to be installed
E: Unable to correct problems, you have held broken packages.

O que é isso sobre exigir 1:0.9.11.1+14.04.20140623-0ubuntu1 ? Eu especifiquei versões compatíveis para todos os pacotes.

Vamos tentar algo mais conservador:

$ sudo apt-get install  compiz-core=1:0.9.11+14.04.20140423-0ubuntu1ppa2
Reading package lists... Done
Building dependency tree   
Reading state information... Done
The following packages will be REMOVED:
  compiz compiz-gnome compiz-plugins compiz-plugins-default
  compizconfig-settings-manager libcompizconfig0 python-compizconfig
  ubuntu-desktop unity unity-tweak-tool
The following packages will be DOWNGRADED:
  compiz-core
0 upgraded, 0 newly installed, 1 downgraded, 10 to remove and 1 not upgraded.
Need to get 710 kB of archives.
After this operation, 24.7 MB disk space will be freed.
Do you want to continue? [Y/n] n
Abort.

Ok, isso não vai funcionar. Aparentemente, tentar "fazer downgrade" de qualquer combinação dos pacotes relevantes resultará no mesmo erro "hold broken packages".

Neste ponto, estou sem ideias.

    
por arielCo 01.07.2014 / 07:23

1 resposta

1

Não importa, estava faltando um pacote que estava forçando tudo para a versão candidata libdecoration0 (= 1:0.9.11+14.04.20140423-0ubuntu1ppa2) . Obrigado aptitude !

    
por arielCo 06.07.2014 / 04:01