preferences.d para o ununtu 14.04 não funciona, o que eu faço de errado?

1

Eu repo declarou aqui:

cat /etc/apt/sources.list.d/cloudera.list
# Packages for Cloudera's Distribution for Hadoop, Version 5, on Ubuntu 14.04 amd64
deb [arch=amd64] http://archive.cloudera.com/cdh5/ubuntu/trusty/amd64/cdh trusty-cdh5.3.3 contrib
deb-src http://archive.cloudera.com/cdh5/ubuntu/trusty/amd64/cdh trusty-cdh5.3.3 contrib

e preferências aqui:

cat /etc/apt/preferences.d/cloudera.pref
Package: *
Pin: release o=Cloudera, l=Cloudera
Pin-Priority: 501

Então eu tenho o pacote "problema". Deve ser retirado do repo "Cloudera". Essa é a razão para usar preferências. Descrito aqui: link

Quando eu pergunto ao apt para me mostrar o pacote Origin, eu vejo que ele foi retirado do repositório do Ubuntu, não do repo da Cloudera:

sudo apt-cache  show libzookeeper-java
Package: libzookeeper-java
Priority: optional
Section: universe/java
Installed-Size: 1335
Maintainer: Ubuntu Developers <[email protected]>
Original-Maintainer: Debian Java Maintainers <[email protected]>
Architecture: all
Source: zookeeper
Version: 3.4.5+dfsg-1
Depends: libjline-java, liblog4j1.2-java (>> 1.2.15-8), libnetty-java, libslf4j-java, libxerces2-java
Recommends: libzookeeper-java-doc
Filename: pool/universe/z/zookeeper/libzookeeper-java_3.4.5+dfsg-1_all.deb
Size: 1237412
MD5sum: 2d2793872aa6faf93cce49dd85600b95
SHA1: cdda8da7cd5c7a4be68c02e39a818cd48fd81afd
SHA256: e09f600f09a425446d1456b758614018699d45e17214577dd09b0e8637fef9a9
Description-en: Core Java libraries for zookeeper
 ZooKeeper is a centralized, reliable, service for maintaining configuration
 information, naming, providing distributed synchronization, and group
 services. All of these kinds of services are used in some form or another by
 distributed applications.
 .
 This package contains the java .jar files.
Description-md5: 9d8746036f857b6258f6cc81bcc7fbb8
Homepage: http://zookeeper.apache.org
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu

O que eu faço de errado?

P.S. Pode ser um problema:

apt-cache showpkg zookeeper
Package: zookeeper
Versions: 
3.4.5+dfsg-1 (/var/lib/apt/lists/eu-west-1.ec2.archive.ubuntu.com_ubuntu_dists_trusty_universe_binary-amd64_Packages)
 Description Language: 
                 File: /var/lib/apt/lists/eu-west-1.ec2.archive.ubuntu.com_ubuntu_dists_trusty_universe_binary-amd64_Packages
                  MD5: 0a45f324b8251b96598372f069b4c228
 Description Language: en
                 File: /var/lib/apt/lists/eu-west-1.ec2.archive.ubuntu.com_ubuntu_dists_trusty_universe_i18n_Translation-en
                  MD5: 0a45f324b8251b96598372f069b4c228

3.4.5+cdh5.3.3+84-1.cdh5.3.3.p0.8~trusty-cdh5.3.3 (/var/lib/apt/lists/archive.cloudera.com_cdh5_ubuntu_trusty_amd64_cdh_dists_trusty-cdh5.3.3_contrib_binary-amd64_Packages) (/var/lib/dpkg/status)
 Description Language: 
                 File: /var/lib/apt/lists/archive.cloudera.com_cdh5_ubuntu_trusty_amd64_cdh_dists_trusty-cdh5.3.3_contrib_binary-amd64_Packages
                  MD5: b4638643f4a1a2e968cdf61ab4ddcf41

Parece que o zooneeper não foi retirado do repositório Cloudera devido a configurações incorretas?

    
por Sergey 27.04.2015 / 14:02

1 resposta

0

Então, limpei tudo:

sudo apt-get --purge remove all_custom_packages

e, em seguida, reexecute sudo apt-get install things-i-need Começou a funcionar.

Aqui está a saída para o comando

apt-cache policy zookeeper
    zookeeper:
      Installed: 3.4.5+cdh5.3.3+84-1.cdh5.3.3.p0.8~trusty-cdh5.3.3
      Candidate: 3.4.5+cdh5.3.3+84-1.cdh5.3.3.p0.8~trusty-cdh5.3.3
      Version table:
         3.4.5+dfsg-1 0
            500 http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/ trusty/universe amd64 Packages
     *** 3.4.5+cdh5.3.3+84-1.cdh5.3.3.p0.8~trusty-cdh5.3.3 0
            501 http://archive.cloudera.com/cdh5/ubuntu/trusty/amd64/cdh/ trusty-cdh5.3.3/contrib amd64 Packages
            100 /var/lib/dpkg/status
    
por 27.04.2015 / 15:43