La ejecución sudo apt-get update
falla en mi servidor (que tiene una conexión a Internet). ¿Los servidores están temporalmente rotos o mi APT está mal configurado y utiliza servidores antiguos? En resumen, ¿cómo soluciono esto?
Aquí está la salida:
~$ uname -a
Linux nematode 2.6.28-19-server #66-Ubuntu SMP Sat Oct 16 18:41:24 UTC 2010 i686 GNU/Linux
~$ sudo apt-get update
Err http://us.archive.ubuntu.com jaunty Release.gpg
Could not resolve 'us.archive.ubuntu.com'
Err http://us.archive.ubuntu.com jaunty/main Translation-en_US
Could not resolve 'us.archive.ubuntu.com'
Err http://us.archive.ubuntu.com jaunty/restricted Translation-en_US
Could not resolve 'us.archive.ubuntu.com'
Err http://us.archive.ubuntu.com jaunty/universe Translation-en_US
Could not resolve 'us.archive.ubuntu.com'
Err http://us.archive.ubuntu.com jaunty/multiverse Translation-en_US
Could not resolve 'us.archive.ubuntu.com'
Err http://us.archive.ubuntu.com jaunty-updates Release.gpg
Could not resolve 'us.archive.ubuntu.com'
Err http://us.archive.ubuntu.com jaunty-updates/main Translation-en_US
Could not resolve 'us.archive.ubuntu.com'
Err http://us.archive.ubuntu.com jaunty-updates/restricted Translation-en_US
Could not resolve 'us.archive.ubuntu.com'
Err http://us.archive.ubuntu.com jaunty-updates/universe Translation-en_US
Could not resolve 'us.archive.ubuntu.com'
Err http://us.archive.ubuntu.com jaunty-updates/multiverse Translation-en_US
Could not resolve 'us.archive.ubuntu.com'
Err http://security.ubuntu.com jaunty-security Release.gpg
Could not resolve 'security.ubuntu.com'
Err http://security.ubuntu.com jaunty-security/main Translation-en_US
Could not resolve 'security.ubuntu.com'
Err http://security.ubuntu.com jaunty-security/restricted Translation-en_US
Could not resolve 'security.ubuntu.com'
Err http://security.ubuntu.com jaunty-security/universe Translation-en_US
Could not resolve 'security.ubuntu.com'
Err http://security.ubuntu.com jaunty-security/multiverse Translation-en_US
Could not resolve 'security.ubuntu.com'
Reading package lists... Done
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/jaunty/Release.gpg Could not resolve 'us.archive.ubuntu.com'
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/jaunty/main/i18n/Translation-en_US.bz2 Could not resolve 'us.archive.ubuntu.com'
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/jaunty/restricted/i18n/Translation-en_US.bz2 Could not resolve 'us.archive.ubuntu.com'
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/jaunty/universe/i18n/Translation-en_US.bz2 Could not resolve 'us.archive.ubuntu.com'
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/jaunty/multiverse/i18n/Translation-en_US.bz2 Could not resolve 'us.archive.ubuntu.com'
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/jaunty-updates/Release.gpg Could not resolve 'us.archive.ubuntu.com'
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/jaunty-updates/main/i18n/Translation-en_US.bz2 Could not resolve 'us.archive.ubuntu.com'
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/jaunty-updates/restricted/i18n/Translation-en_US.bz2 Could not resolve 'us.archive.ubuntu.com'
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/jaunty-updates/universe/i18n/Translation-en_US.bz2 Could not resolve 'us.archive.ubuntu.com'
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/jaunty-updates/multiverse/i18n/Translation-en_US.bz2 Could not resolve 'us.archive.ubuntu.com'
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/jaunty-security/Release.gpg Could not resolve 'security.ubuntu.com'
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/jaunty-security/main/i18n/Translation-en_US.bz2 Could not resolve 'security.ubuntu.com'
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/jaunty-security/restricted/i18n/Translation-en_US.bz2 Could not resolve 'security.ubuntu.com'
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/jaunty-security/universe/i18n/Translation-en_US.bz2 Could not resolve 'security.ubuntu.com'
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/jaunty-security/multiverse/i18n/Translation-en_US.bz2 Could not resolve 'security.ubuntu.com'
W: Some index files failed to download, they have been ignored, or old ones used instead.
W: You may want to run apt-get update to correct these problems
cat /etc/resolv.conf
?Respuestas:
¿Puedes resolver cualquiera de esos hosts desde la línea de comandos?
Si no, el siguiente paso es intentar
host -v
:Busque los errores devueltos por los servidores DNS.
fuente
ping
tampoco se resolvió, pero que pude hacer ping a través de IP (resuelto en una máquina separada). Gracias a esta ayuda, y al comentario de @ ændrük, descubrí que de alguna manera mis entradas de DNS eran completamente inútiles. Arreglar esos solucionó el problemahost -v
, estoy condenado. ¿Que sigue? No hay ayuda de ningún tipo.Suena como un problema de DNS. Para solucionarlo, debe asegurarse de que
tiene buenas entradas para servidores DNS.
Google tiene servidores DNS públicos que puede usar .
Entonces, por ejemplo, podría agregar las siguientes 2 líneas en la parte superior de su
/etc/resolv.conf
archivo (estos apuntan a los servidores DNS de Google) como se detalla anteriormente:¡Por supuesto, necesitaría ser root para cambiar este archivo y hacer una copia de seguridad antes de hacer cualquier cambio!
fuente
Sé que este hilo es súper antiguo, pero para cualquiera que todavía esté mirando, resolví este problema desconectando y volviendo a conectar al punto de acceso inalámbrico.
fuente
sudo apt-get update && sudo apt-get dist-upgrade
A menudo empujo 8.8.8.8 en mi /etc/resolv.conf para arreglar esto. Esp cuando se trata de cosas extrañas del proveedor de nube barata del mes (en este caso, linóleo).
cat /etc/resolv.conf
Estos son los servidores DNS públicos de Google. Sí, probablemente rastrean los diablos de esos registros. Pero el único sitio que tiendo a encontrar en esos servidores son los archivos git y ubuntu.
fuente
Tuve este mismo problema
Err on apt-get update
ændrük insinuó correctamente.Solucioné mi problema cambiando manualmente una dirección DNS en el archivo
/etc/resolv.conf
a la dirección DNS de mi operador.Anteriormente fue configurado
192.168.0.254
por Ubuntu.fuente
Tuve un problema muy similar en el que:
sudo apt-get update
no podía terminar, y tenía errores. Intenté reiniciar mi cable módem y funcionó. También puede intentar reiniciar su módem por cable.fuente
Verifique en su navegador web para ver si puede abrir la página web "http://us.archive.ubuntu.com". Si es así, entonces tiene un problema de configuración de proxy de red.
Siga los siguientes pasos en Ubuntu Desktop.
Después de hacer esto, pude resolver estos errores.
fuente
Acabo de tener este mismo problema. Estaba trabajando en una máquina virtual y me cansé de cambiar constantemente las direcciones IP. Después de configurar la dirección IP estática, no configuré los servidores de nombres DNS y ya no pude obtener actualizaciones. También necesitaba agregar los servidores de nombres al archivo / etc / network / interfaces. Encontramos información sobre eso aquí . (¿Cómo configuro los servidores de nombres DNS?)
El siguiente problema con el que me encontré es que no podía desactivar y luego restablecer las interfaces de red. Este código funcionó para mí:
Puede encontrar más información sobre este problema aquí . (Cómo restablecer las interfaces de red)
fuente
Puede editar
/etc/resolvconf/resolv.conf.d/base
(vacío por defecto) agregarfuente
muy simple:
el enrutamiento ip de la empresa no funciona en absoluto)
tienes que usar la dirección IP de /etc/resolv.conf
o use solo la dirección IP de su enrutador en mi caso 192.168.1.1
fuente
También he resuelto este problema. simplemente vaya a: configuración del sistema -> Proxy de red -> Método automático -> Aplicar SYstem Weide -> y escriba su contraseña de administrador
fuente
Sé que esta es una publicación muy antigua, pero acabo de instalar Ubuntu 16.10 en un Dell E4310 y me encontré con el mismo problema. Intenté seguir algunas de las sugerencias en esta publicación, pero nada funcionó, así que decidí intentar cambiar el servidor de actualización.
Entonces, en Configuración del sistema> Software y actualizaciones, cambié el servidor de "Principal" a lo siguiente: http://mirror.cc.columbia.edu/pub/linux/ubuntu/archive
Ahora mis actualizaciones están rodando sin problemas. Espero que esto ayude.
fuente
Para evitar problemas de DNS, tuve que agregar a
/etc/hosts
la IP de los servidores, por ejemplofuente