Como resolvo uma dependência de pacote mais nova, quando a antiga está em uma origem de prioridade mais alta?

4

Ao tentar atualizar o pacote "unity" (e alguns outros pacotes relacionados, incluindo unity-2d e libunity-2d-private0 ), apt-get me diz que não posso, pois a dependência exigida é libxi6 > 2:1.6.99.1 , mas a real versão instalada é 2:1.6.0-0ubuntu2.1 .

Eu executei apt-cache policy libxi6 e posso ver que a versão 2:1.7.1.901-1ubuntu1~precise1 está disponível na origem "updates", mas minha versão instalada vem da fonte "security". Infelizmente, minha fonte de segurança tem uma prioridade mais alta (990) do que minha fonte de atualizações (900), e assim parece que o apt-get não pode resolver o problema de dependência.

Não vejo nenhum problema no Launchpad em relação a essa falha de dependência, pois esperaria que a versão da unidade em atualizações precisas exigiria um libxi6 disponível em segurança ou haveria um pacote unitário em termos precisos. segurança que tinha as dependências corretas.

Conteúdo do /etc/apt/preferences.d / *:

    Package: *
    Pin: release a=precise-security
    Pin-Priority: 990

    Package: *
    Pin: release a=precise-updates
    Pin-Priority: 900

    Package: *
    Pin: release a=precise-proposed
    Pin-Priority: 400

Saída de apt-cache policy :

 100 /var/lib/dpkg/status
     release a=now
 500 https://private-ppa.launchpad.net/commercial-ppa-uploaders/steam/ubuntu/ precise/main i386 Packages
     release v=12.04,o=LP-PPA-commercial-ppa-uploaders-steam,a=precise,n=precise,l=Steam,c=main
     origin private-ppa.launchpad.net
 500 https://private-ppa.launchpad.net/commercial-ppa-uploaders/steam/ubuntu/ precise/main amd64 Packages
     release v=12.04,o=LP-PPA-commercial-ppa-uploaders-steam,a=precise,n=precise,l=Steam,c=main
     origin private-ppa.launchpad.net
 500 http://dl.google.com/linux/talkplugin/deb/ stable/main i386 Packages
     release v=1.0,o=Google, Inc.,a=stable,n=stable,l=Google,c=main
     origin dl.google.com
 500 http://dl.google.com/linux/talkplugin/deb/ stable/main amd64 Packages
     release v=1.0,o=Google, Inc.,a=stable,n=stable,l=Google,c=main
     origin dl.google.com
 500 http://repository.spotify.com/ stable/non-free i386 Packages
     release c=non-free
     origin repository.spotify.com
 500 http://repository.spotify.com/ stable/non-free amd64 Packages
     release c=non-free
     origin repository.spotify.com
 500 http://gb.archive.ubuntu.com/ubuntu/ precise-proposed/universe Translation-en_GB
 500 http://gb.archive.ubuntu.com/ubuntu/ precise-proposed/universe Translation-en
 500 http://gb.archive.ubuntu.com/ubuntu/ precise-proposed/restricted Translation-en_GB
 500 http://gb.archive.ubuntu.com/ubuntu/ precise-proposed/restricted Translation-en
 500 http://gb.archive.ubuntu.com/ubuntu/ precise-proposed/multiverse Translation-en_GB
 500 http://gb.archive.ubuntu.com/ubuntu/ precise-proposed/multiverse Translation-en
 500 http://gb.archive.ubuntu.com/ubuntu/ precise-proposed/main Translation-en_GB
 500 http://gb.archive.ubuntu.com/ubuntu/ precise-proposed/main Translation-en
 400 http://gb.archive.ubuntu.com/ubuntu/ precise-proposed/universe i386 Packages
     release v=12.04,o=Ubuntu,a=precise-proposed,n=precise,l=Ubuntu,c=universe
     origin gb.archive.ubuntu.com
 400 http://gb.archive.ubuntu.com/ubuntu/ precise-proposed/multiverse i386 Packages
     release v=12.04,o=Ubuntu,a=precise-proposed,n=precise,l=Ubuntu,c=multiverse
     origin gb.archive.ubuntu.com
 400 http://gb.archive.ubuntu.com/ubuntu/ precise-proposed/main i386 Packages
     release v=12.04,o=Ubuntu,a=precise-proposed,n=precise,l=Ubuntu,c=main
     origin gb.archive.ubuntu.com
 400 http://gb.archive.ubuntu.com/ubuntu/ precise-proposed/restricted i386 Packages
     release v=12.04,o=Ubuntu,a=precise-proposed,n=precise,l=Ubuntu,c=restricted
     origin gb.archive.ubuntu.com
 400 http://gb.archive.ubuntu.com/ubuntu/ precise-proposed/universe amd64 Packages
     release v=12.04,o=Ubuntu,a=precise-proposed,n=precise,l=Ubuntu,c=universe
     origin gb.archive.ubuntu.com
 400 http://gb.archive.ubuntu.com/ubuntu/ precise-proposed/multiverse amd64 Packages
     release v=12.04,o=Ubuntu,a=precise-proposed,n=precise,l=Ubuntu,c=multiverse
     origin gb.archive.ubuntu.com
 400 http://gb.archive.ubuntu.com/ubuntu/ precise-proposed/main amd64 Packages
     release v=12.04,o=Ubuntu,a=precise-proposed,n=precise,l=Ubuntu,c=main
     origin gb.archive.ubuntu.com
 400 http://gb.archive.ubuntu.com/ubuntu/ precise-proposed/restricted amd64 Packages
     release v=12.04,o=Ubuntu,a=precise-proposed,n=precise,l=Ubuntu,c=restricted
     origin gb.archive.ubuntu.com
 500 http://archive.canonical.com/ precise/partner i386 Packages
     release v=12.04,o=Canonical,a=precise,n=precise,l=Partner archive,c=partner
     origin archive.canonical.com
 500 http://archive.canonical.com/ precise/partner amd64 Packages
     release v=12.04,o=Canonical,a=precise,n=precise,l=Partner archive,c=partner
     origin archive.canonical.com
 500 http://extras.ubuntu.com/ubuntu/ precise/main i386 Packages
     release v=12.04,o=LP-PPA-app-review-board,a=precise,n=precise,l=Application Review Board PPA,c=main
     origin extras.ubuntu.com
 500 http://extras.ubuntu.com/ubuntu/ precise/main amd64 Packages
     release v=12.04,o=LP-PPA-app-review-board,a=precise,n=precise,l=Application Review Board PPA,c=main
     origin extras.ubuntu.com
 500 http://security.ubuntu.com/ubuntu/ precise-security/universe Translation-en
 500 http://security.ubuntu.com/ubuntu/ precise-security/restricted Translation-en
 500 http://security.ubuntu.com/ubuntu/ precise-security/multiverse Translation-en
 500 http://security.ubuntu.com/ubuntu/ precise-security/main Translation-en
 990 http://security.ubuntu.com/ubuntu/ precise-security/multiverse i386 Packages
     release v=12.04,o=Ubuntu,a=precise-security,n=precise,l=Ubuntu,c=multiverse
     origin security.ubuntu.com
 990 http://security.ubuntu.com/ubuntu/ precise-security/universe i386 Packages
     release v=12.04,o=Ubuntu,a=precise-security,n=precise,l=Ubuntu,c=universe
     origin security.ubuntu.com
 990 http://security.ubuntu.com/ubuntu/ precise-security/restricted i386 Packages
     release v=12.04,o=Ubuntu,a=precise-security,n=precise,l=Ubuntu,c=restricted
     origin security.ubuntu.com
 990 http://security.ubuntu.com/ubuntu/ precise-security/main i386 Packages
     release v=12.04,o=Ubuntu,a=precise-security,n=precise,l=Ubuntu,c=main
     origin security.ubuntu.com
 990 http://security.ubuntu.com/ubuntu/ precise-security/multiverse amd64 Packages
     release v=12.04,o=Ubuntu,a=precise-security,n=precise,l=Ubuntu,c=multiverse
     origin security.ubuntu.com
 990 http://security.ubuntu.com/ubuntu/ precise-security/universe amd64 Packages
     release v=12.04,o=Ubuntu,a=precise-security,n=precise,l=Ubuntu,c=universe
     origin security.ubuntu.com
 990 http://security.ubuntu.com/ubuntu/ precise-security/restricted amd64 Packages
     release v=12.04,o=Ubuntu,a=precise-security,n=precise,l=Ubuntu,c=restricted
     origin security.ubuntu.com
 990 http://security.ubuntu.com/ubuntu/ precise-security/main amd64 Packages
     release v=12.04,o=Ubuntu,a=precise-security,n=precise,l=Ubuntu,c=main
     origin security.ubuntu.com
 500 http://gb.archive.ubuntu.com/ubuntu/ precise-backports/universe Translation-en
 500 http://gb.archive.ubuntu.com/ubuntu/ precise-backports/restricted Translation-en
 500 http://gb.archive.ubuntu.com/ubuntu/ precise-backports/multiverse Translation-en
 500 http://gb.archive.ubuntu.com/ubuntu/ precise-backports/main Translation-en
 100 http://gb.archive.ubuntu.com/ubuntu/ precise-backports/multiverse i386 Packages
     release v=12.04,o=Ubuntu,a=precise-backports,n=precise,l=Ubuntu,c=multiverse
     origin gb.archive.ubuntu.com
 100 http://gb.archive.ubuntu.com/ubuntu/ precise-backports/universe i386 Packages
     release v=12.04,o=Ubuntu,a=precise-backports,n=precise,l=Ubuntu,c=universe
     origin gb.archive.ubuntu.com
 100 http://gb.archive.ubuntu.com/ubuntu/ precise-backports/restricted i386 Packages
     release v=12.04,o=Ubuntu,a=precise-backports,n=precise,l=Ubuntu,c=restricted
     origin gb.archive.ubuntu.com
 100 http://gb.archive.ubuntu.com/ubuntu/ precise-backports/main i386 Packages
     release v=12.04,o=Ubuntu,a=precise-backports,n=precise,l=Ubuntu,c=main
     origin gb.archive.ubuntu.com
 100 http://gb.archive.ubuntu.com/ubuntu/ precise-backports/multiverse amd64 Packages
     release v=12.04,o=Ubuntu,a=precise-backports,n=precise,l=Ubuntu,c=multiverse
     origin gb.archive.ubuntu.com
 100 http://gb.archive.ubuntu.com/ubuntu/ precise-backports/universe amd64 Packages
     release v=12.04,o=Ubuntu,a=precise-backports,n=precise,l=Ubuntu,c=universe
     origin gb.archive.ubuntu.com
 100 http://gb.archive.ubuntu.com/ubuntu/ precise-backports/restricted amd64 Packages
     release v=12.04,o=Ubuntu,a=precise-backports,n=precise,l=Ubuntu,c=restricted
     origin gb.archive.ubuntu.com
 100 http://gb.archive.ubuntu.com/ubuntu/ precise-backports/main amd64 Packages
     release v=12.04,o=Ubuntu,a=precise-backports,n=precise,l=Ubuntu,c=main
     origin gb.archive.ubuntu.com
 500 http://gb.archive.ubuntu.com/ubuntu/ precise-updates/universe Translation-en_GB
 500 http://gb.archive.ubuntu.com/ubuntu/ precise-updates/universe Translation-en
 500 http://gb.archive.ubuntu.com/ubuntu/ precise-updates/restricted Translation-en_GB
 500 http://gb.archive.ubuntu.com/ubuntu/ precise-updates/restricted Translation-en
 500 http://gb.archive.ubuntu.com/ubuntu/ precise-updates/multiverse Translation-en_GB
 500 http://gb.archive.ubuntu.com/ubuntu/ precise-updates/multiverse Translation-en
 500 http://gb.archive.ubuntu.com/ubuntu/ precise-updates/main Translation-en_GB
 500 http://gb.archive.ubuntu.com/ubuntu/ precise-updates/main Translation-en
 900 http://gb.archive.ubuntu.com/ubuntu/ precise-updates/multiverse i386 Packages
     release v=12.04,o=Ubuntu,a=precise-updates,n=precise,l=Ubuntu,c=multiverse
     origin gb.archive.ubuntu.com
 900 http://gb.archive.ubuntu.com/ubuntu/ precise-updates/universe i386 Packages
     release v=12.04,o=Ubuntu,a=precise-updates,n=precise,l=Ubuntu,c=universe
     origin gb.archive.ubuntu.com
 900 http://gb.archive.ubuntu.com/ubuntu/ precise-updates/restricted i386 Packages
     release v=12.04,o=Ubuntu,a=precise-updates,n=precise,l=Ubuntu,c=restricted
     origin gb.archive.ubuntu.com
 900 http://gb.archive.ubuntu.com/ubuntu/ precise-updates/main i386 Packages
     release v=12.04,o=Ubuntu,a=precise-updates,n=precise,l=Ubuntu,c=main
     origin gb.archive.ubuntu.com
 900 http://gb.archive.ubuntu.com/ubuntu/ precise-updates/multiverse amd64 Packages
     release v=12.04,o=Ubuntu,a=precise-updates,n=precise,l=Ubuntu,c=multiverse
     origin gb.archive.ubuntu.com
 900 http://gb.archive.ubuntu.com/ubuntu/ precise-updates/universe amd64 Packages
     release v=12.04,o=Ubuntu,a=precise-updates,n=precise,l=Ubuntu,c=universe
     origin gb.archive.ubuntu.com
 900 http://gb.archive.ubuntu.com/ubuntu/ precise-updates/restricted amd64 Packages
     release v=12.04,o=Ubuntu,a=precise-updates,n=precise,l=Ubuntu,c=restricted
     origin gb.archive.ubuntu.com
 900 http://gb.archive.ubuntu.com/ubuntu/ precise-updates/main amd64 Packages
     release v=12.04,o=Ubuntu,a=precise-updates,n=precise,l=Ubuntu,c=main
     origin gb.archive.ubuntu.com
 500 http://gb.archive.ubuntu.com/ubuntu/ precise/universe Translation-en_GB
 500 http://gb.archive.ubuntu.com/ubuntu/ precise/universe Translation-en
 500 http://gb.archive.ubuntu.com/ubuntu/ precise/restricted Translation-en_GB
 500 http://gb.archive.ubuntu.com/ubuntu/ precise/restricted Translation-en
 500 http://gb.archive.ubuntu.com/ubuntu/ precise/multiverse Translation-en_GB
 500 http://gb.archive.ubuntu.com/ubuntu/ precise/multiverse Translation-en
 500 http://gb.archive.ubuntu.com/ubuntu/ precise/main Translation-en_GB
 500 http://gb.archive.ubuntu.com/ubuntu/ precise/main Translation-en
 500 http://gb.archive.ubuntu.com/ubuntu/ precise/multiverse i386 Packages
     release v=12.04,o=Ubuntu,a=precise,n=precise,l=Ubuntu,c=multiverse
     origin gb.archive.ubuntu.com
 500 http://gb.archive.ubuntu.com/ubuntu/ precise/universe i386 Packages
     release v=12.04,o=Ubuntu,a=precise,n=precise,l=Ubuntu,c=universe
     origin gb.archive.ubuntu.com
 500 http://gb.archive.ubuntu.com/ubuntu/ precise/restricted i386 Packages
     release v=12.04,o=Ubuntu,a=precise,n=precise,l=Ubuntu,c=restricted
     origin gb.archive.ubuntu.com
 500 http://gb.archive.ubuntu.com/ubuntu/ precise/main i386 Packages
     release v=12.04,o=Ubuntu,a=precise,n=precise,l=Ubuntu,c=main
     origin gb.archive.ubuntu.com
 500 http://gb.archive.ubuntu.com/ubuntu/ precise/multiverse amd64 Packages
     release v=12.04,o=Ubuntu,a=precise,n=precise,l=Ubuntu,c=multiverse
     origin gb.archive.ubuntu.com
 500 http://gb.archive.ubuntu.com/ubuntu/ precise/universe amd64 Packages
     release v=12.04,o=Ubuntu,a=precise,n=precise,l=Ubuntu,c=universe
     origin gb.archive.ubuntu.com
 500 http://gb.archive.ubuntu.com/ubuntu/ precise/restricted amd64 Packages
     release v=12.04,o=Ubuntu,a=precise,n=precise,l=Ubuntu,c=restricted
     origin gb.archive.ubuntu.com
 500 http://gb.archive.ubuntu.com/ubuntu/ precise/main amd64 Packages
     release v=12.04,o=Ubuntu,a=precise,n=precise,l=Ubuntu,c=main
     origin gb.archive.ubuntu.com
    
por Charlie Halford 15.01.2014 / 10:42

1 resposta

0
Package: *
Pin: release a=precise-security
Pin-Priority: 990

Aqui, há um problema. Os pacotes de segurança sempre têm uma string de versão superior . Sempre. Você não precisa definir a fixação de pacotes para preferir esses pacotes. O APT sempre instalará a versão superior disponível, a menos que qualquer preferência do usuário restrinja esse comportamento, que é o que você está fazendo.

Eu não sei o que você quer alcançar com essas fixações de pacotes, mas elas causam dores de cabeça. O pinning de pacotes foi projetado para diferentes fontes de pacotes (ou seja, Ubuntu e algum tipo de PPA) e normalmente é preferível para manipular a prioridade da fonte não oficial. O repositório proposto sempre tem prioridade mais baixa, o repositório de segurança sempre tem upgrades automáticos diariamente.

Eu recomendo que você diminua a prioridade do PPA (se é isso que você quer controlar) ao invés de modificar os repositórios do Ubuntu.

Se você não quer mudar nada, você pode forçar o apt to bind to your wishes usando:

sudo apt-get install libxi6=2:1.7.1.901-1ubuntu1~precise1

ou

sudo apt-get install libxi6/precise-updates

Mas lembre-se de que os repositórios de atualizações sempre terão todas as alterações feitas pelos repositórios de segurança.

    
por Braiam 17.01.2014 / 16:02