Ajuda erros apt-get

1. Ajuda erros apt-get

Matheus
Chiitus

(usa Ubuntu)

Enviado em 04/09/2014 - 15:04h

Boa tarde à todos!
Estou tendo muitos erros quando tento usar o comando apt-get, por exemplo:

root@ubuntu:~# apt-get update
Get:1 http://security.ubuntu.com precise-security Release.gpg [198 B]
Get:2 http://security.ubuntu.com precise-security Release [50.7 kB]
Get:3 http://security.ubuntu.com precise-security/main Sources [110 kB]
Get:4 http://security.ubuntu.com precise-security/restricted Sources [2,494 B]
Get:5 http://security.ubuntu.com precise-security/universe Sources [32.7 kB]
Get:6 http://security.ubuntu.com precise-security/multiverse Sources [1,786 B]
Get:7 http://security.ubuntu.com precise-security/main amd64 Packages [421 kB]
Get:8 http://security.ubuntu.com precise-security/restricted amd64 Packages [4,627 B]
Get:9 http://security.ubuntu.com precise-security/universe amd64 Packages [97.4 kB]
Get:10 http://security.ubuntu.com precise-security/multiverse amd64 Packages [2,451 B]
Get:11 http://security.ubuntu.com precise-security/main i386 Packages [450 kB]
Get:12 http://security.ubuntu.com precise-security/restricted i386 Packages [4,620 B]
Get:13 http://security.ubuntu.com precise-security/universe i386 Packages [103 kB]
Get:14 http://security.ubuntu.com precise-security/multiverse i386 Packages [2,644 B]
Get:15 http://security.ubuntu.com precise-security/main TranslationIndex [74 B]
Get:16 http://security.ubuntu.com precise-security/multiverse TranslationIndex [72 B]
Get:17 http://security.ubuntu.com precise-security/restricted TranslationIndex [72 B]
Get:18 http://security.ubuntu.com precise-security/universe TranslationIndex [73 B]
Get:19 http://security.ubuntu.com precise-security/main Translation-en [192 kB]
Hit http://security.ubuntu.com precise-security/multiverse Translation-en
Hit http://security.ubuntu.com precise-security/restricted Translation-en
Hit http://security.ubuntu.com precise-security/universe Translation-en
Err http://br.archive.ubuntu.com precise Release.gpg
Temporary failure resolving 'br.archive.ubuntu.com'
Err http://br.archive.ubuntu.com precise-updates Release.gpg
Temporary failure resolving 'br.archive.ubuntu.com'
Err http://br.archive.ubuntu.com precise-backports Release.gpg
Temporary failure resolving 'br.archive.ubuntu.com'
Fetched 1,476 kB in 55s (26.7 kB/s)
Reading package lists... Done
W: Failed to fetch http://br.archive.ubuntu.com/ubuntu/dists/precise/Release.gpg Temporary failure resolving 'br.archive.ubuntu.com'

W: Failed to fetch http://br.archive.ubuntu.com/ubuntu/dists/precise-updates/Release.gpg Temporary failure resolving 'br.archive.ubuntu.com'

W: Failed to fetch http://br.archive.ubuntu.com/ubuntu/dists/precise-backports/Release.gpg Temporary failure resolving 'br.archive.ubuntu.com'

W: Some index files failed to download. They have been ignored, or old ones used instead.
-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/

root@ubuntu:~# apt-get install apache2
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:
apache2 : Depends: apache2-mpm-worker (= 2.2.22-1ubuntu1.7) but it is not going to be installed or
apache2-mpm-prefork (= 2.2.22-1ubuntu1.7) but it is not going to be installed or
apache2-mpm-event (= 2.2.22-1ubuntu1.7) but it is not going to be installed or
apache2-mpm-itk (= 2.2.22-1ubuntu1.7) but it is not going to be installed
Depends: apache2.2-common (= 2.2.22-1ubuntu1.7) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/

root@ubuntu:~# apt-get install resolvconf
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package resolvconf 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 'resolvconf' has no installation candidate
-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/

Como vocês podem ver eu não consigo fazer nada com este comando, preciso de ajuda!

Obrigado


  


2. Re: Ajuda erros apt-get

Perfil removido
removido

(usa Nenhuma)

Enviado em 04/09/2014 - 15:11h

Vc tem pacotes quebrados.
Tente:
sudo dpkg --configure -a
sudo apt-get -f install
sudo apt-get update
sudo apt-get upgrade

E depois tente instalar novamente!



3. Re: Ajuda erros apt-get

Matheus
Chiitus

(usa Ubuntu)

Enviado em 04/09/2014 - 15:26h

Executei os comandos:


root@ubuntu:~# sudo dpkg --configure -a
root@ubuntu:~# sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@ubuntu:~# sudo apt-get update
Get:1 http://security.ubuntu.com precise-security Release.gpg [198 B]
Get:2 http://security.ubuntu.com precise-security Release [50.7 kB]
Get:3 http://security.ubuntu.com precise-security/main Sources [110 kB]
Get:4 http://security.ubuntu.com precise-security/restricted Sources [2,494 B]
Get:5 http://security.ubuntu.com precise-security/universe Sources [32.7 kB]
Get:6 http://security.ubuntu.com precise-security/multiverse Sources [1,786 B]
Get:7 http://security.ubuntu.com precise-security/main amd64 Packages [421 kB]
Get:8 http://security.ubuntu.com precise-security/restricted amd64 Packages [4,627 B]
Get:9 http://security.ubuntu.com precise-security/universe amd64 Packages [97.4 kB]
Get:10 http://security.ubuntu.com precise-security/multiverse amd64 Packages [2,451 B]
Get:11 http://security.ubuntu.com precise-security/main i386 Packages [450 kB]
Get:12 http://security.ubuntu.com precise-security/restricted i386 Packages [4,620 B]
Get:13 http://security.ubuntu.com precise-security/universe i386 Packages [103 kB]
Get:14 http://security.ubuntu.com precise-security/multiverse i386 Packages [2,644 B]
Hit http://security.ubuntu.com precise-security/main TranslationIndex
Hit http://security.ubuntu.com precise-security/multiverse TranslationIndex
Hit http://security.ubuntu.com precise-security/restricted TranslationIndex
Hit http://security.ubuntu.com precise-security/universe TranslationIndex
Hit http://security.ubuntu.com precise-security/main Translation-en
Hit http://security.ubuntu.com precise-security/multiverse Translation-en
Hit http://security.ubuntu.com precise-security/restricted Translation-en
Hit http://security.ubuntu.com precise-security/universe Translation-en
Err http://br.archive.ubuntu.com precise Release.gpg
Temporary failure resolving 'br.archive.ubuntu.com'
Err http://br.archive.ubuntu.com precise-updates Release.gpg
Temporary failure resolving 'br.archive.ubuntu.com'
Err http://br.archive.ubuntu.com precise-backports Release.gpg
Temporary failure resolving 'br.archive.ubuntu.com'
Fetched 1,284 kB in 55s (23.2 kB/s)
Reading package lists... Done
W: Failed to fetch http://br.archive.ubuntu.com/ubuntu/dists/precise/Release.gpg Temporary failure resolving 'br.archive.ubuntu.com'

W: Failed to fetch http://br.archive.ubuntu.com/ubuntu/dists/precise-updates/Release.gpg Temporary failure resolving 'br.archive.ubuntu.com'

W: Failed to fetch http://br.archive.ubuntu.com/ubuntu/dists/precise-backports/Release.gpg Temporary failure resolving 'br.archive.ubuntu.com'

W: Some index files failed to download. They have been ignored, or old ones used instead.
root@ubuntu:~# sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.


4. Re: Ajuda erros apt-get

5. Re: Ajuda erros apt-get

Thiago Henrique Hüpner
Thihup

(usa Manjaro Linux)

Enviado em 04/09/2014 - 18:30h

Tente atualizar p/ o Ubuntu 14.04

No Gerenciador de Atualizações tem a opção (sendo melhor re-instalar do zero)

T+






Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts