J'utilise Ubuntu 10.4.04 LTS avec VMware5. J'ai utilisé la configuration automatique du proxy et je peux utiliser Internet depuis Firefox. Lorsque je voulais mettre à jour apt-get update
, je reçois des erreurs de suivi. Le lien suivant donne quelques solutions, mais je n'ai pas de numéro de port car j'utilise un proxy automatique https://answers.launchpad.net/uck/+question/10886 .
Erreur:
Ign http security.ubuntu.com lucid-security multiverse Packages
Ign http security.ubuntu.com lucid-security multiverse Sources
Ign http security.ubuntu.com lucid-security main Packages
Err http security.ubuntu.com lucid-security main Packages
Something wicked happened resolving 'security.ubuntu.com:http' (-5 - No address associated with hostname)
Err http security.ubuntu.com lucid-security/restricted Packages
Something wicked happened resolving 'security.ubuntu.com:http' (-5 - No address associated with hostname)
Err http security.ubuntu.com lucid-security/main Sources
Something wicked happened resolving 'security.ubuntu.com:http' (-5 - No address associated with hostname)
Err http security.ubuntu.com lucid-security/restricted Sources
Something wicked happened resolving 'security.ubuntu.com:http' (-5 - No address associated with hostname)
Err http security.ubuntu.com lucid-security/universe Packages
Something wicked happened resolving 'security.ubuntu.com:http' (-5 - No address associated with hostname)
W: Failed to fetch http security.ubuntu.com/ubuntu/dists/lucid-security/Release.gpg Something wicked happened resolving 'security.ubuntu.com:http' (-5 - No address associated with hostname)
W: Failed to fetch http security.ubuntu.com/ubuntu/dists/lucid-security/main/i18n/Translation-en_US.bz2 Something wicked happened resolving 'security.ubuntu.com:http' (-5 - No address associated with hostname)
W: Failed to fetch http security.ubuntu.com/ubuntu/dists/lucid-security/restricted/i18n/Translation-en_US.bz2 Something wicked happened resolving 'security.ubuntu.com:http' (-5 - No address associated with hostname)
Merci pour votre réponse!
apt-get
n'utilise pas les paramètres globaux du proxy. Essayez d’ajouter les paramètres de proxy à /etc/apt/apt.conf
:
Acquire::http::proxy "http://<your-proxy-url>";
Ou simplement exécuter les commandes suivantes dans le terminal:
Sudo su
echo 'Acquire::http::proxy "http://<your-proxy-url>";' >> /etc/apt/apt.conf
Ça fonctionne maintenant!
Pour une raison quelconque, mon URL de proxy ne parvient pas à se connecter mais j'ai ouvert proxy.pac
et ajouté ALL URL de proxy dans apt.conf
.