APT-GET não funciona

1. APT-GET não funciona

Erik Figueiredo
erikfig

(usa Ubuntu)

Enviado em 08/06/2012 - 16:22h

Notei hoje que o postfix tinha parado de funcionar, fui verificar e ele não está instalado, tudo bem, isso não o problema!

O problema é que nada que eu tento instalar funciona, tentei um apt-get update, mas da erro, só o apt-get upgrade que funcionou corretamente, ele da vários erros, são várias linhas de erro que desaparecem no topo da tela, vou por as ultimas:

Isso é via apt-get update



W: Failed to fetch http://br.archive.ubuntu.com/ubuntu/dists/lucid-backports/main/source/Sources.gz 404 Not Found

W: Failed to fetch http://br.archive.ubuntu.com/ubuntu/dists/lucid-backports/restricted/source/Sources.gz 404 Not Found

W: Failed to fetch http://br.archive.ubuntu.com/ubuntu/dists/lucid-backports/universe/source/Sources.gz 404 Not Found

W: Failed to fetch http://br.archive.ubuntu.com/ubuntu/dists/lucid-backports/multiverse/source/Sources.gz 404 Not Found

E: Some index files failed to download, they have been ignored, or old ones used instead.


E via apt-get install postfix

Reading package lists... Done
Building dependency tree
Reading state information... Done
Package postfix 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 postfix has no installation candidate

Já pesquisei a tarde toda na internet e nada, alguém será que alguém sabe o que acontece?


  


2. Atualização

Erik Figueiredo
erikfig

(usa Ubuntu)

Enviado em 08/06/2012 - 17:00h

Seguinte, desfiz algumas alterações que tinha feito, voltando para as configurações de fábrica (rsrs) e começou a buscar os pacotes com apt-get install mas ainda da erro, veja com o apt-get install postfix


Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
ssl-cert
Suggested packages:
procmail postfix-mysql postfix-pgsql postfix-ldap postfix-pcre sasl2-bin
resolvconf postfix-cdb
The following NEW packages will be installed:
postfix ssl-cert
0 upgraded, 2 newly installed, 0 to remove and 9 not upgraded.
Need to get 1,415kB of archives.
After this operation, 3,666kB of additional disk space will be used.
Do you want to continue [Y/n]? Y
WARNING: The following packages cannot be authenticated!
ssl-cert postfix
Install these packages without verification [y/N]? Y
Err http://us.archive.ubuntu.com/ubuntu/ lucid/main ssl-cert 1.0.23ubuntu2
404 Not Found
Err http://us.archive.ubuntu.com/ubuntu/ lucid-updates/main postfix 2.7.0-1ubuntu0.2
404 Not Found
Err http://security.ubuntu.com/ubuntu/ lucid-security/main postfix 2.7.0-1ubuntu0.2
404 Not Found
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/s/ssl-cert/ssl-cert_1.0.23ubuntu2_all.deb 404 Not Found
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/p/postfix/postfix_2.7.0-1ubuntu0.2_amd64.deb 404 Not Found
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?


Não sei mais o que fazer!



3. Re: APT-GET não funciona

Andre (pinduvoz)
pinduvoz

(usa Debian)

Enviado em 08/06/2012 - 17:41h

O seu apt não está encontrando os pacotes, e os endereços.

Será que vc não está com problema no seu servidor DNS?

Tente usar o Open DNS.

http://www.omgubuntu.co.uk/2010/09/how-to-switch-to-opendns-in-ubuntu-for-faster-browsing


4. Re: APT-GET não funciona

Andre (pinduvoz)
pinduvoz

(usa Debian)

Enviado em 08/06/2012 - 17:42h

Mais uma ajudinha:

http://www.vivaolinux.com.br/topico/Redes/DNS-Ubuntu


5. DNS?

Erik Figueiredo
erikfig

(usa Ubuntu)

Enviado em 08/06/2012 - 17:50h

Então, eu uso um servidor Cloud da Tecla, será que tem a ver?


6. Re: APT-GET não funciona

Andre (pinduvoz)
pinduvoz

(usa Debian)

Enviado em 08/06/2012 - 21:06h

Bom, para ter certeza que não é problema de DNS experimente mudar de servidor pelo Synaptic ou pelos Canais de Software.

Vc pode, inclusive, escolher o servidor mais rápido.


7. dns

Erik Figueiredo
erikfig

(usa Ubuntu)

Enviado em 09/06/2012 - 08:48h

adicionei os dnss do open dns e do Google, mas não resolveu também!

### OpenDNS
nameserver 208.67.222.222
nameserver 208.67.220.220

### Google
nameserver 8.8.8.8
nameserver 8.8.4.4

Continuou do mesmo jeito

Outra coisa é o apt-get install que inclusive acha o pacote mas não instala


root@cloud:/home/erik# apt-get install postfix
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
ssl-cert
Suggested packages:
procmail postfix-mysql postfix-pgsql postfix-ldap postfix-pcre sasl2-bin
resolvconf postfix-cdb
The following NEW packages will be installed:
postfix ssl-cert
0 upgraded, 2 newly installed, 0 to remove and 9 not upgraded.
Need to get 1,415kB of archives.
After this operation, 3,666kB of additional disk space will be used.
Do you want to continue [Y/n]? Y
WARNING: The following packages cannot be authenticated!
ssl-cert postfix
Install these packages without verification [y/N]? Y
Err http://us.archive.ubuntu.com/ubuntu/ lucid/main ssl-cert 1.0.23ubuntu2
404 Not Found
Err http://us.archive.ubuntu.com/ubuntu/ lucid-updates/main postfix 2.7.0-1ubuntu0.2
404 Not Found
Err http://security.ubuntu.com/ubuntu/ lucid-security/main postfix 2.7.0-1ubuntu0.2
404 Not Found
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/s/ssl-cert/ssl-cert_1.0.23ubuntu2_all.deb 404 Not Found
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/p/postfix/postfix_2.7.0-1ubuntu0.2_amd64.deb 404 Not Found
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

Caracas, o negócio ta feio



8. Re: APT-GET não funciona

André Canhadas
andrecanhadas

(usa Debian)

Enviado em 09/06/2012 - 13:13h

Tente trocar seus repositorios por estes:

deb http://archive.ubuntu.com/ubuntu lucid main restricted
deb-src http://archive.ubuntu.com/ubuntu lucid main restricted

deb http://archive.ubuntu.com/ubuntu lucid-updates main restricted
deb-src http://archive.ubuntu.com/ubuntu lucid-updates main restricted

deb http://archive.ubuntu.com/ubuntu lucid universe
deb-src http://archive.ubuntu.com/ubuntu lucid universe
deb http://archive.ubuntu.com/ubuntu lucid-updates universe
deb-src http://archive.ubuntu.com/ubuntu lucid-updates universe

deb http://archive.ubuntu.com/ubuntu lucid multiverse
deb-src http://archive.ubuntu.com/ubuntu lucid multiverse
deb http://archive.ubuntu.com/ubuntu lucid-updates multiverse
deb-src http://archive.ubuntu.com/ubuntu lucid-updates multiverse
...
deb http://archive.ubuntu.com/ubuntu lucid-security main restricted
deb-src http://archive.ubuntu.com/ubuntu lucid-security main restricted
deb http://archive.ubuntu.com/ubuntu lucid-security universe
deb-src http://archive.ubuntu.com/ubuntu lucid-security universe
deb http://archive.ubuntu.com/ubuntu lucid-security multiverse
deb-src http://archive.ubuntu.com/ubuntu lucid-security multiverse


Embora por aqui consegui pingar sem problemas para o us.archive.ubuntu.com


9. DNS

Erik Figueiredo
erikfig

(usa Ubuntu)

Enviado em 09/06/2012 - 13:34h

Hum, alterei, o apt-get update continuou na mesma, porém o apt-get install nem encontra o postfix agora mudou para:

Reading package lists... Done
Building dependency tree
Reading state information... Done
Package postfix 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 postfix has no installation candidate

Voltei para o que estava antes, mas mantive uma cópia deste que você passou



10. Remover

André Canhadas
andrecanhadas

(usa Debian)

Enviado em 09/06/2012 - 14:36h

Remova a lista de pacotes antigas e rode o apt-get update para gerar novas:

rm /var/lib/apt/lists/*
sudo apt-get update



11. Não foi

Erik Figueiredo
erikfig

(usa Ubuntu)

Enviado em 09/06/2012 - 15:15h

Também não deu, esse foi o resultado do apt-get update:


root@cloud:/etc/apt# apt-get update
Ign http://ppa.launchpad.net lucid Release.gpg
Ign http://ppa.launchpad.net/psyke83/ppa/ubuntu/ lucid/main Translation-en_US
Ign http://ppa.launchpad.net lucid Release
Ign http://ppa.launchpad.net lucid/main Packages
Ign http://archive.ubuntu.com lucid Release.gpg
Ign http://archive.ubuntu.com/ubuntu/ lucid/main Translation-en_US
Ign http://archive.ubuntu.com/ubuntu/ lucid/restricted Translation-en_US
Ign http://archive.ubuntu.com/ubuntu/ lucid/universe Translation-en_US
Ign http://ppa.launchpad.net lucid/main Packages
Ign http://archive.ubuntu.com/ubuntu/ lucid/multiverse Translation-en_US
Ign http://archive.ubuntu.com lucid-updates Release.gpg
Ign http://archive.ubuntu.com/ubuntu/ lucid-updates/main Translation-en_US
Ign http://archive.ubuntu.com/ubuntu/ lucid-updates/restricted Translation-en_US
Ign http://archive.ubuntu.com/ubuntu/ lucid-updates/universe Translation-en_US
Ign http://archive.ubuntu.com/ubuntu/ lucid-updates/multiverse Translation-en_US
Err http://ppa.launchpad.net lucid/main Packages
404 Not Found
Ign http://archive.ubuntu.com lucid-security Release.gpg
Ign http://archive.ubuntu.com/ubuntu/ lucid-security/main Translation-en_US
Ign http://archive.ubuntu.com/ubuntu/ lucid-security/restricted Translation-en_US
Ign http://archive.ubuntu.com/ubuntu/ lucid-security/universe Translation-en_US
Ign http://archive.ubuntu.com/ubuntu/ lucid-security/multiverse Translation-en_US
Ign http://archive.ubuntu.com lucid Release
Ign http://archive.ubuntu.com lucid-updates Release
Ign http://archive.ubuntu.com lucid-security Release
Ign http://archive.ubuntu.com lucid/main Packages
Ign http://archive.ubuntu.com lucid/restricted Packages
Ign http://archive.ubuntu.com lucid/main Sources
Ign http://archive.ubuntu.com lucid/restricted Sources
Ign http://archive.ubuntu.com lucid/universe Packages
Ign http://archive.ubuntu.com lucid/universe Sources
Ign http://archive.ubuntu.com lucid/multiverse Packages
Ign http://archive.ubuntu.com lucid/multiverse Sources
Ign http://archive.ubuntu.com lucid-updates/main Packages
Ign http://archive.ubuntu.com lucid-updates/restricted Packages
Ign http://archive.ubuntu.com lucid-updates/main Sources
Ign http://archive.ubuntu.com lucid-updates/restricted Sources
Ign http://archive.ubuntu.com lucid-updates/universe Packages
Ign http://archive.ubuntu.com lucid-updates/universe Sources
Ign http://archive.ubuntu.com lucid-updates/multiverse Packages
Ign http://archive.ubuntu.com lucid-updates/multiverse Sources
Ign http://archive.ubuntu.com lucid-security/main Packages
Ign http://archive.ubuntu.com lucid-security/restricted Packages
Ign http://archive.ubuntu.com lucid-security/main Sources
Ign http://archive.ubuntu.com lucid-security/restricted Sources
Ign http://archive.ubuntu.com lucid-security/universe Packages
Ign http://archive.ubuntu.com lucid-security/universe Sources
Ign http://archive.ubuntu.com lucid-security/multiverse Packages
Ign http://archive.ubuntu.com lucid-security/multiverse Sources
Ign http://archive.ubuntu.com lucid/main Packages
Ign http://archive.ubuntu.com lucid/restricted Packages
Ign http://archive.ubuntu.com lucid/main Sources
Ign http://archive.ubuntu.com lucid/restricted Sources
Ign http://archive.ubuntu.com lucid/universe Packages
Ign http://archive.ubuntu.com lucid/universe Sources
Ign http://archive.ubuntu.com lucid/multiverse Packages
Ign http://archive.ubuntu.com lucid/multiverse Sources
Ign http://archive.ubuntu.com lucid-updates/main Packages
Ign http://archive.ubuntu.com lucid-updates/restricted Packages
Ign http://archive.ubuntu.com lucid-updates/main Sources
Ign http://archive.ubuntu.com lucid-updates/restricted Sources
Ign http://archive.ubuntu.com lucid-updates/universe Packages
Ign http://archive.ubuntu.com lucid-updates/universe Sources
Ign http://archive.ubuntu.com lucid-updates/multiverse Packages
Ign http://archive.ubuntu.com lucid-updates/multiverse Sources
Ign http://archive.ubuntu.com lucid-security/main Packages
Ign http://archive.ubuntu.com lucid-security/restricted Packages
Ign http://archive.ubuntu.com lucid-security/main Sources
Ign http://archive.ubuntu.com lucid-security/restricted Sources
Ign http://archive.ubuntu.com lucid-security/universe Packages
Ign http://archive.ubuntu.com lucid-security/universe Sources
Ign http://archive.ubuntu.com lucid-security/multiverse Packages
Ign http://archive.ubuntu.com lucid-security/multiverse Sources
Err http://archive.ubuntu.com lucid/main Packages
404 Not Found
Err http://archive.ubuntu.com lucid/restricted Packages
404 Not Found
Err http://archive.ubuntu.com lucid/main Sources
404 Not Found
Err http://archive.ubuntu.com lucid/restricted Sources
404 Not Found
Err http://archive.ubuntu.com lucid/universe Packages
404 Not Found
Err http://archive.ubuntu.com lucid/universe Sources
404 Not Found
Err http://archive.ubuntu.com lucid/multiverse Packages
404 Not Found
Err http://archive.ubuntu.com lucid/multiverse Sources
404 Not Found
Err http://archive.ubuntu.com lucid-updates/main Packages
404 Not Found
Err http://archive.ubuntu.com lucid-updates/restricted Packages
404 Not Found
Err http://archive.ubuntu.com lucid-updates/main Sources
404 Not Found
Err http://archive.ubuntu.com lucid-updates/restricted Sources
404 Not Found
Err http://archive.ubuntu.com lucid-updates/universe Packages
404 Not Found
Err http://archive.ubuntu.com lucid-updates/universe Sources
404 Not Found
Err http://archive.ubuntu.com lucid-updates/multiverse Packages
404 Not Found
Err http://archive.ubuntu.com lucid-updates/multiverse Sources
404 Not Found
Err http://archive.ubuntu.com lucid-security/main Packages
404 Not Found
Err http://archive.ubuntu.com lucid-security/restricted Packages
404 Not Found
Err http://archive.ubuntu.com lucid-security/main Sources
404 Not Found
Err http://archive.ubuntu.com lucid-security/restricted Sources
404 Not Found
Err http://archive.ubuntu.com lucid-security/universe Packages
404 Not Found
Err http://archive.ubuntu.com lucid-security/universe Sources
404 Not Found
Err http://archive.ubuntu.com lucid-security/multiverse Packages
404 Not Found
Err http://archive.ubuntu.com lucid-security/multiverse Sources
404 Not Found
W: Failed to fetch http://ppa.launchpad.net/psyke83/ppa/ubuntu/dists/lucid/main/binary-amd64/Packages.gz 404 Not Found

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/lucid/main/binary-amd64/Packages.gz 404 Not Found

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/lucid/restricted/binary-amd64/Packages.gz 404 Not Found

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/lucid/main/source/Sources.gz 404 Not Found

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/lucid/restricted/source/Sources.gz 404 Not Found

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/lucid/universe/binary-amd64/Packages.gz 404 Not Found

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/lucid/universe/source/Sources.gz 404 Not Found

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/lucid/multiverse/binary-amd64/Packages.gz 404 Not Found

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/lucid/multiverse/source/Sources.gz 404 Not Found

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/lucid-updates/main/binary-amd64/Packages.gz 404 Not Found

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/lucid-updates/restricted/binary-amd64/Packages.gz 404 Not Found

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/lucid-updates/main/source/Sources.gz 404 Not Found

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/lucid-updates/restricted/source/Sources.gz 404 Not Found

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/lucid-updates/universe/binary-amd64/Packages.gz 404 Not Found

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/lucid-updates/universe/source/Sources.gz 404 Not Found

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/lucid-updates/multiverse/binary-amd64/Packages.gz 404 Not Found

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/lucid-updates/multiverse/source/Sources.gz 404 Not Found

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/lucid-security/main/binary-amd64/Packages.gz 404 Not Found

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/lucid-security/restricted/binary-amd64/Packages.gz 404 Not Found

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/lucid-security/main/source/Sources.gz 404 Not Found

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/lucid-security/restricted/source/Sources.gz 404 Not Found

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/lucid-security/universe/binary-amd64/Packages.gz 404 Not Found

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/lucid-security/universe/source/Sources.gz 404 Not Found

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/lucid-security/multiverse/binary-amd64/Packages.gz 404 Not Found

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/lucid-security/multiverse/source/Sources.gz 404 Not Found

E: Some index files failed to download, they have been ignored, or old ones used instead.


E o do apt-get install postfix


Reading package lists... Done
Building dependency tree
Reading state information... Done
Package postfix 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 postfix has no installation candidate

Também gostaria de agradecer muito mesmo o amigo André e os demais que estão me dando essa força.

Pinguei esse repositório que você passou e também o que estava antes o us, e os dois foram encontrados pelo próprio ubuntu...


12. Re: APT-GET não funciona

Andre (pinduvoz)
pinduvoz

(usa Debian)

Enviado em 10/06/2012 - 17:06h

Tente isso:

http://repogen.simplylinux.ch/

Gere uma nova lista e veja se com ela funciona.



01 02



Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts