Configure a connection via proxy in Ubuntu Server 10.10

0 like 0 dislike
25 views
The server receives network settings via DHCP, Internet proxy.
Ping ya.ru but not updated or installed packages.

# sudo apt-get update
# sudo apt-get upgrade


Nothing happens.

Execute in terminal export http_proxy=http://userass@ProxyAddress:Proxy:Port

Nothing changes...

Prescribed in the file /etc/bash.bashhrc here the following lines
export http_proxy=http://userass@ProxyAddress:ProxyPort
export ftp_proxy=http://userass@ProxyAddress:ProxyPort

Again

Try this:

sudo vi /etc/apt/apt.conf.d/proxy

put it

Acquire::http::Proxy "http://proxy:port/";
Acquire::ftp::Proxy "ftp://proxy:port/";
Acquire::::Proxy "true";


Again

The gugleniya did not help.

How to configure it?
by | 25 views

7 Answers

0 like 0 dislike
I have so earned:
\r
In the file /etc/apt/apt.conf (/etc/apt/apt.conf.d/proxy)
\r
Edit the line:
\r
$sudo nano /etc/apt/apt.conf
\r
$Acquire::http::Proxy "http_proxy=http://login:password@address:port";
\r
via https://help.ubuntu.com/community/AptGet/Howto
by
0 like 0 dislike
Maybe the fact that you have to write export http_proxy=http://userass@ProxyAddress:Proxy:Port under his uchetku, and then when you upgrade elevates to root. What if I do sudo-i, and after that:
#export http_proxy=http://userass@ProxyAddress:Proxy:Port
#apt-get update && apt-get upgrade
\r
A proxy authorization? The password is not forgotten to insert?
export http_proxy=http://user:pass@ProxyAddress:Proxy:Port
\r
But in General I always had:
\r
Acquire::ftp::Proxy "http://username:pass@proxy:port/";
Acquire::ftp::Proxy "ftp://username:pass@proxy:port/";
Acquire::::Proxy "true";
\r
in /etc/apt/apt.conf.d/proxy
\r
and
export http_proxy=http://user:pass@ProxyAddress:Port
export ftp_proxy=http://user:pass@ProxyAddress:Port
\r
just try something to pull wget'ohms, once it becomes clear whether he sees in General a proxy, or maybe the problem is in passing through the proxy
by
0 like 0 dislike
On Raspbian
sudo nano /etc/apt/apt.conf.d/70debconf

Added the line:
Acquire::http::Proxy "http://username:pass@proxy:port/";
Acquire::ftp::Proxy "ftp://username:pass@proxy:port/";
Acquire::::Proxy "true";

Now update apt-get via proxy
by
0 like 0 dislike
in .try wgetrc proxy to write
by
0 like 0 dislike
Drive in any case should not ask if the packages are pulled from Internet. So you have only local repositories are enabled.
Check your /etc/apt/sources.list
At me it looks here so.
by
0 like 0 dislike
Try
\r
Acquire::http::Proxy "username@proxy:port/";
Acquire::ftp::Proxy "ftp://username@proxy:port/";
Acquire::::Proxy "true";
by
0 like 0 dislike
Tried so
\r
Acquire::ftp::Proxy "http://username:pass@proxy:port/";
Acquire::ftp::Proxy "ftp://username:pass@proxy:port/";
Acquire::::Proxy "true";
\r
Also not ale. :(
by

Related questions

0 like 0 dislike
2 answers
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
110,608 questions
257,186 answers
0 comments
28,714 users