Como posso consertar meu gerenciador de pacotes?

0

Estou rodando o Debian 7.0 (3.16.0-0.bpo.4-amd64) há cerca de um ano e ele está rodando bem.

Ontem eu fiz um apt-get dist-upgrade e depois de algumas tentativas com o Nginx funcionou bem novamente. No entanto, sempre que tento usar o gerenciador de pacotes para algum pacote genérico (que pode ser encontrado no site da Debian), não consigo fazer o download através do gerenciador de pacotes.

Minha sources.list:

# 

# deb cdrom:[Debian GNU/Linux 7.0.0 _Wheezy_ - Official amd64 NETINST Binary-1 20130504-14:43]/ wheezy main

#deb cdrom:[Debian GNU/Linux 7.0.0 _Wheezy_ - Official amd64 NETINST Binary-1 20130504-14:43]/ wheezy main

deb http://ftp.nl.debian.org/debian/ wheezy main
deb-src http://ftp.nl.debian.org/debian/ wheezy main

deb http://security.debian.org/ wheezy/updates main
deb-src http://security.debian.org/ wheezy/updates main

# wheezy-updates, previously known as 'volatile'
deb http://ftp.nl.debian.org/debian/ wheezy-updates main
deb-src http://ftp.nl.debian.org/debian/ wheezy-updates main
deb http://ppa.launchpad.net/webupd8team/java/ubuntu precise main
deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu precise main
deb http://http.debian.net/debian wheezy-backports main

Já experimentei apt-get clean e apt-get update , mas ainda não consigo instalar pacotes como:

 sudo apt-get install python-software-properties
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package python-software-properties is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'python-software-properties' has no installation candidate

ou por exemplo:

apt-get install spamassassin spamc
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:
 spamassassin : Depends: libhtml-parser-perl (>= 3.43) but it is not installable
                Depends: libsocket6-perl but it is not installable
                Depends: libsys-hostname-long-perl but it is not installable
                Depends: libwww-perl but it is not installable
                Depends: libnet-dns-perl (>= 0.34) but it is not installable
                Depends: libnetaddr-ip-perl but it is not installable
                Recommends: libmail-spf-perl but it is not installable
                Recommends: re2c but it is not installable
                Recommends: libio-socket-inet6-perl but it is not installable
E: Unable to correct problems, you have held broken packages.

Enquanto isso, ele afirma no site da Debian que uma versão superior do libhtml-parser-perl está disponível. ( link ). O que está acontecendo e como posso consertar isso?

Meu apt-cache policy para spamassasin / dependencies:

apt-cache policy spamassassin
spamassassin:
  Installed: (none)
  Candidate: 3.3.2-5+deb7u3
  Version table:
     3.4.0-2~bpo70+1 0
        100 http://http.debian.net/debian/ wheezy-backports/main amd64 Packages
     3.3.2-5+deb7u3 0
        500 http://ftp.nl.debian.org/debian/ wheezy-updates/main amd64 Packages
     3.3.2-5+deb7u2 0
        -10 http://ftp.nl.debian.org/debian/ wheezy/main amd64 Packages
        -10 http://debian.mirror.iweb.ca/debian/ wheezy/main amd64 Packages
     3.3.2-2~bpo60+1 0
        100 http://backports.debian.org/debian-backports/ squeeze-backports/main amd64 Packages


apt-cache policy libhtml-parser-perl
libhtml-parser-perl:
  Installed: (none)
  Candidate: (none)
  Version table:
     3.69-2 0
        -10 http://ftp.nl.debian.org/debian/ wheezy/main amd64 Packages
        -10 http://debian.mirror.iweb.ca/debian/ wheezy/main amd64 Packages

Meu apt-policy :

Package files:
 100 /var/lib/dpkg/status
     release a=now
 500 http://debian.mirror.iweb.ca/debian/ wheezy/main Translation-en
 -10 http://debian.mirror.iweb.ca/debian/ wheezy/main i386 Packages
     release v=7.8,o=Debian,a=oldstable,n=wheezy,l=Debian,c=main
     origin debian.mirror.iweb.ca
 -10 http://debian.mirror.iweb.ca/debian/ wheezy/main amd64 Packages
     release v=7.8,o=Debian,a=oldstable,n=wheezy,l=Debian,c=main
     origin debian.mirror.iweb.ca
 500 http://backports.debian.org/debian-backports/ squeeze-backports/main Transl                                                              ation-en
 100 http://backports.debian.org/debian-backports/ squeeze-backports/main i386 P                                                              ackages
     release o=Debian Backports,a=squeeze-backports,n=squeeze-backports,l=Debian                                                               Backports,c=main
     origin backports.debian.org
 100 http://backports.debian.org/debian-backports/ squeeze-backports/main amd64                                                               Packages
     release o=Debian Backports,a=squeeze-backports,n=squeeze-backports,l=Debian                                                               Backports,c=main
     origin backports.debian.org
 500 http://downloads-distro.mongodb.org/repo/debian-sysvinit/ dist/10gen i386 P                                                              ackages
     release v=dist,o=mongodb,a=mongodb,n=dist,l=mongodb,c=10gen
     origin downloads-distro.mongodb.org
 500 http://downloads-distro.mongodb.org/repo/debian-sysvinit/ dist/10gen amd64                                                               Packages
     release v=dist,o=mongodb,a=mongodb,n=dist,l=mongodb,c=10gen
     origin downloads-distro.mongodb.org
 500 https://get.docker.com/ubuntu/ docker/main i386 Packages
     release n=docker,c=main
     origin get.docker.com
 500 https://get.docker.com/ubuntu/ docker/main amd64 Packages
     release n=docker,c=main
     origin get.docker.com
 500 http://http.debian.net/debian/ wheezy-backports/main Translation-en
 100 http://http.debian.net/debian/ wheezy-backports/main i386 Packages
     release v=,o=Debian Backports,a=wheezy-backports,n=wheezy-backports,l=Debia                                                              n Backports,c=main
     origin http.debian.net
 100 http://http.debian.net/debian/ wheezy-backports/main amd64 Packages
     release v=,o=Debian Backports,a=wheezy-backports,n=wheezy-backports,l=Debia                                                              n Backports,c=main
     origin http.debian.net
 500 http://ppa.launchpad.net/webupd8team/java/ubuntu/ precise/main Translation-                                                              en
 500 http://ppa.launchpad.net/webupd8team/java/ubuntu/ precise/main i386 Package                                                              s
     release v=12.04,o=LP-PPA-webupd8team-java,a=precise,n=precise,l=Oracle Java                                                               (JDK) 7 / 8 / 9 Installer PPA,c=main
     origin ppa.launchpad.net
 500 http://ppa.launchpad.net/webupd8team/java/ubuntu/ precise/main amd64 Packag                                                              es
     release v=12.04,o=LP-PPA-webupd8team-java,a=precise,n=precise,l=Oracle Java                                                               (JDK) 7 / 8 / 9 Installer PPA,c=main
     origin ppa.launchpad.net
 500 http://ftp.nl.debian.org/debian/ wheezy-updates/main Translation-en
 500 http://ftp.nl.debian.org/debian/ wheezy-updates/main i386 Packages
     release o=Debian,a=oldstable-updates,n=wheezy-updates,l=Debian,c=main
     origin ftp.nl.debian.org
 500 http://ftp.nl.debian.org/debian/ wheezy-updates/main amd64 Packages
     release o=Debian,a=oldstable-updates,n=wheezy-updates,l=Debian,c=main
     origin ftp.nl.debian.org
 500 http://security.debian.org/ wheezy/updates/main Translation-en
 -10 http://security.debian.org/ wheezy/updates/main i386 Packages
     release v=7.0,o=Debian,a=oldstable,n=wheezy,l=Debian-Security,c=main
     origin security.debian.org
 -10 http://security.debian.org/ wheezy/updates/main amd64 Packages
     release v=7.0,o=Debian,a=oldstable,n=wheezy,l=Debian-Security,c=main
     origin security.debian.org
 500 http://ftp.nl.debian.org/debian/ wheezy/main Translation-en
 -10 http://ftp.nl.debian.org/debian/ wheezy/main i386 Packages
     release v=7.8,o=Debian,a=oldstable,n=wheezy,l=Debian,c=main
     origin ftp.nl.debian.org
 -10 http://ftp.nl.debian.org/debian/ wheezy/main amd64 Packages
     release v=7.8,o=Debian,a=oldstable,n=wheezy,l=Debian,c=main
     origin ftp.nl.debian.org
Pinned packages:

Eu não alterei meu sources.list nem nada no sources.list.d . No entanto, alguns arquivos foram alterados pela atualização em trusted.gpg.d .

    
por user1226868 01.06.2015 / 16:45

1 resposta

2

Está claro desde a informação desde que o problema é (pelo menos em parte) que suas preferências atuais não são sensatas. Por exemplo, você tem as seguintes fontes configuradas para a preferência -10 , o que significa (por man apt_preferences ) que os pacotes nessas fontes nunca serão instalados:

-10 http://debian.mirror.iweb.ca/debian/ wheezy/main i386 Packages
     release v=7.8,o=Debian,a=oldstable,n=wheezy,l=Debian,c=main
     origin debian.mirror.iweb.ca
 -10 http://debian.mirror.iweb.ca/debian/ wheezy/main amd64 Packages
     release v=7.8,o=Debian,a=oldstable,n=wheezy,l=Debian,c=main
     origin debian.mirror.iweb.ca

 -10 http://ftp.nl.debian.org/debian/ wheezy/main i386 Packages
     release v=7.8,o=Debian,a=oldstable,n=wheezy,l=Debian,c=main
     origin ftp.nl.debian.org
 -10 http://ftp.nl.debian.org/debian/ wheezy/main amd64 Packages
     release v=7.8,o=Debian,a=oldstable,n=wheezy,l=Debian,c=main
     origin ftp.nl.debian.org

 -10 http://security.debian.org/ wheezy/updates/main i386 Packages
     release v=7.0,o=Debian,a=oldstable,n=wheezy,l=Debian-Security,c=main
     origin security.debian.org
 -10 http://security.debian.org/ wheezy/updates/main amd64 Packages
     release v=7.0,o=Debian,a=oldstable,n=wheezy,l=Debian-Security,c=main
     origin security.debian.org

Essas fontes correspondem a todos os pacotes i386 wheezy (oldstable) da main (de dois espelhos diferentes, mas isso é um detalhe), bem como atualizações de segurança. Isso não faz sentido se você está realmente com respiração ofegante. Eu sugiro que você primeiro corrija isso.

Verifique se você tem um arquivo chamado /etc/apt/preferences ou arquivos dentro do diretório /etc/apt/preferences.d e, se esses arquivos existirem, se eles estão definindo essas origens como -10 . Veja também man apt_preferences . Algo deve estar modificando essas preferências - elas certamente não são o padrão. Para referência, aqui estão as linhas relevantes da página apt_preferences man.

How APT Interprets Priorities

Priorities (P) assigned in the APT preferences file must be positive or negative integers. They are interpreted as follows (roughly speaking):

[...]

P < 0
    prevents the version from being installed
    
por 02.06.2015 / 01:55