não consigo instalar o libvirt personalizado

0

Eu simplesmente não consigo instalar uma versão customizada do libvirt no Ubuntu Server 14.04. Estou usando o este PPA e usei o método de colar manualmente nas linhas a seguir na parte inferior do meu arquivo sources.list :

deb http://ppa.launchpad.net/zulcss/esx/ubuntu trusty main 
deb-src http://ppa.launchpad.net/zulcss/esx/ubuntu trusty main

Eu também criei o seguinte arquivo / etc / apt / preferences :

Package: libvirt-bin
Pin: origin ppa.launchpad.net
Pin-Priority: 610

Package: libvirt-bin
Pin: origin us.archive.ubuntu.com
Pin-Priority: 600

Package: libvirt-bin
Pin: origin security.ubuntu.com
Pin-Priority: 590

Aqui está a saída da política do apt-cache libvirt-bin

libvirt-bin:
  Installed: (none)
  Candidate: 1.2.2-0ubuntu9
  Package pin: 1.2.2-0ubuntu9
  Version table:
     1.2.2-0ubuntu13.1.14 610
        500 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main amd64 Packages
        100 /var/lib/dpkg/status
     1.2.2-0ubuntu13.1.7 610
        500 http://security.ubuntu.com/ubuntu/ trusty-security/main amd64 Packages
     1.2.2-0ubuntu13 610
        500 http://us.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
     1.2.2-0ubuntu9 610
        500 http://ppa.launchpad.net/zulcss/esx/ubuntu/ trusty/main amd64 Packages

Aqui está o que acontece quando eu realmente tento e instalo:

root@ubuntu:/etc/apt/sources.list.d# apt-get install libvirt-bin
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:
 libvirt-bin : Depends: libvirt0 (= 1.2.2-0ubuntu9) but 1.2.2-0ubuntu13.1.14 is to be installed
E: Unable to correct problems, you have held broken packages.
root@ubuntu:/etc/apt/sources.list.d#

Alguém pode pensar em uma maneira de resolver isso sem compilar manualmente?

    
por Daniel 10.11.2015 / 21:08

2 respostas

0

Atribua uma prioridade mais alta a todos os pacotes do PPA:

Package: *
Pin: origin ppa.launchpad.net
Pin-Priority: 610

Se você atribuir uma prioridade somente para libvirt-bin , os pacotes de dependência como libvirt0 não serão afetados, então apt-get escolherá a versão mais alta disponível para esses, que seria a do Ubuntu. O PPA fornece estes pacotes:

libvirt-bin
libvirt-dev
libvirt-doc
libvirt0
libvirt0-dbg

Você também pode atribuir uma prioridade para apenas libvirt-bin e libvirt0 :

Package: libvirt-bin libvirt0
Pin: origin ppa.launchpad.net
Pin-Priority: 610
    
por muru 10.11.2015 / 21:16
0

Crie uma configuração

sudo nano /etc/apt/preferences.d/zulcss-esx-ppa-pin

com o conteúdo

Package: *
Pin: release o=LP-PPA-zulcss-esx
Pin-Priority: 1001

para favorecer todos os pacotes neste PPA.

Eu também uso uma configuração semelhante para o meu PPA .

    
por A.B. 10.11.2015 / 21:35