[Ajuda] Ubuntu Server apt-get não funciona [RESOLVIDO]

1. [Ajuda] Ubuntu Server apt-get não funciona [RESOLVIDO]

Exodia
Exodia

(usa Ubuntu)

Enviado em 19/08/2015 - 11:46h

Quando eu do um "# apt-get update" da o seguinte erro:

Err http://security.ubuntu.com precise-security InRelease

Err http://security.ubuntu.com precise-security Release.gpg
Temporary failure resolving 'security.ubuntu.com'
Err http://us.archive.ubuntu.com precise InRelease

Err http://us.archive.ubuntu.com precise-updates InRelease

Err http://us.archive.ubuntu.com precise Release.gpg
Temporary failure resolving 'us.archive.ubuntu.com'
Err http://us.archive.ubuntu.com precise-updates Release.gpg
Temporary failure resolving 'us.archive.ubuntu.com'
Reading package lists... Done
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/precise/InRelease

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/precise-updates/InRelease

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/precise-security/InRelease

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

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

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

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

mas ja testei o ping tipo "ping www.google.com"">www.google.com"; essa e a saída:
ping: unknown host www.google.com

mas se eu der um "ping 8.8.8.8" a saida e essa:

PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_req=1 ttl=41 time=23.7 ms
64 bytes from 8.8.8.8: icmp_req=2 ttl=41 time=23.8 ms
64 bytes from 8.8.8.8: icmp_req=3 ttl=41 time=23.8 ms

--- 8.8.8.8 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2003ms
rtt min/avg/max/mdev = 23.781/23.806/23.828/0.127 ms

Detalhes esse e um ubuntu server 12.04 LTS de um vps.

Por favor me ajudem!


  


2. Re: [Ajuda] Ubuntu Server apt-get não funciona [RESOLVIDO]

leonardo moreira
lSinkz

(usa Debian)

Enviado em 19/08/2015 - 11:51h

Exodia escreveu:

Quando eu do um "# apt-get update" da o seguinte erro:

Err http://security.ubuntu.com precise-security InRelease

Err http://security.ubuntu.com precise-security Release.gpg
Temporary failure resolving 'security.ubuntu.com'
Err http://us.archive.ubuntu.com precise InRelease

Err http://us.archive.ubuntu.com precise-updates InRelease

Err http://us.archive.ubuntu.com precise Release.gpg
Temporary failure resolving 'us.archive.ubuntu.com'
Err http://us.archive.ubuntu.com precise-updates Release.gpg
Temporary failure resolving 'us.archive.ubuntu.com'
Reading package lists... Done
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/precise/InRelease

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/precise-updates/InRelease

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/precise-security/InRelease

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

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

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

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

mas ja testei o ping tipo "ping www.google.com"">www.google.com"; essa e a saída:
ping: unknown host www.google.com

mas se eu der um "ping 8.8.8.8" a saida e essa:

PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_req=1 ttl=41 time=23.7 ms
64 bytes from 8.8.8.8: icmp_req=2 ttl=41 time=23.8 ms
64 bytes from 8.8.8.8: icmp_req=3 ttl=41 time=23.8 ms

--- 8.8.8.8 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2003ms
rtt min/avg/max/mdev = 23.781/23.806/23.828/0.127 ms

Detalhes esse e um ubuntu server 12.04 LTS de um vps.

Por favor me ajudem!



Tenta com: sudo apt-get update



3. Re: [Ajuda] Ubuntu Server apt-get não funciona [RESOLVIDO]

Exodia
Exodia

(usa Ubuntu)

Enviado em 19/08/2015 - 12:44h


Ja resolvi a solução foi um:

echo "nameserver 8.8.8.8" | sudo tee /etc/resolv.conf > /dev/null






Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts