
Cuando uso sudo apt-get update
, obtengo los siguientes errores:
Err:1 http:/archive.ubuntu.com/ubuntu xenial InRelease
Could not connect to localhost:4001 (127.0.0.1). - connect (111: Connection refused)
Err:2 http:/archive.ubuntu.com/ubuntu xenial-security InRelease
Unable to connect to localhost:4001:
Err:3 http:/archive.ubuntu.com/ubuntu xenial-updates InRelease
Unable to connect to localhost:4001:
Reading package lists... 4%
(process:2389): GLib-GIO-WARNING **: Invalid proxy URI 'http:/localhost:4001 ': Invalid URI 'http:/localhost:4001 '
Reading package lists... Done
W: Failed to fetch http:/archive.ubuntu.com/ubuntu/dists/xenial/InRelease Could not connect to localhost:4001 (127.0.0.1). - connect (111: Connection refused)
W: Failed to fetch http:/archive.ubuntu.com/ubuntu/dists/xenial-security/InRelease Unable to connect to localhost:4001:
W: Failed to fetch http:/archive.ubuntu.com/ubuntu/dists/xenial-updates/InRelease Unable to connect to localhost:4001:
W: Some index files failed to download. They have been ignored, or old ones used instead.
¿Qué puedo hacer para arreglar esto?
Respuesta1
Creo que perdiste la conexión a Internet o estás trabajando detrás de un proxy. O eso o los ppas que estás intentando actualizar han quedado obsoletos.
Si estás detrás de un proxy, esta solución funciona: ¿Cómo ejecutar "sudo apt-get update" a través del proxy en la línea de comandos?