Home > OS >  Ubuntu 14.04 apt - get automatically using the proxy Settings
Ubuntu 14.04 apt - get automatically using the proxy Settings

Time:09-18

In Ubunutu14.04, FireFox is set to automatically detect after using the agent can be connected to the Internet, but apt to get command cannot be connected to the Internet all the time, what reason is this?

Err http://cn.archive.ubuntu.com/ubuntu/trusty/main vim - runtime all 2:7. 4.052 1 ubuntu3
Could not connect to cn.archive.ubuntu.com: 80 (115.28.122.210) - connect (111: Connection refused) [IP: 115.28.122.210 80]

CodePudding user response:

Can ping TongWai net? Try to change the source

CodePudding user response:

There is no question of the source, because I use FireFox directly browse the corresponding url is normal, but apt to get this command is not successful,

CodePudding user response:

reference 1st floor yuelengdihai response:
can ping TongWai net? To change the source try
there is no question of the source, because I use FireFox directly browse the corresponding url is normal, but apt to get this command is not successful,

CodePudding user response:

You can ping the source under the terminal, can ping should be no problem

CodePudding user response:

Under the command line configuration http_proxy and https_proxy

CodePudding user response:

Edit the file:/etc/apt/apt. Conf
In your apt. Conf file to add the following line (replace yourproxyaddress and proxyport) according to your actual situation,
Acquire: : HTTP: : Proxy "http://yourproxyaddress:proxyport".
Acquire: : HTTPS: : proxy "http://yourproxyaddress:proxyport".

CodePudding user response:

In your apt. Conf file to add the following line (replace yourproxyaddress and proxyport) according to your actual situation, the agent here port, addresses how to find what is my computer's IP address, please
  • Related