You have no default gateway set. Is this machine using DHCP or is it setup statically?
Hi there
Trying to do 'apt-get update', and ive added the http proxy line into apt.conf, but i get the following error:
The proxy is EXACTLY the same proxy i'd use for internet explorer or firefox on a windows machine, so I cannot for the life of my figure out whats up.Code:Cannot initiate the connection to 131.142.172.46:80 (131.142.172.46). - connect (101 Network is unreachable)
For Information
Route Table:
IPTables -LCode:root@dhmail:~# route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 172.21.56.0 * 255.255.254.0 U 0 0 0 eth0
Resolv.confCode:root@dhmail:~# iptables -L Chain INPUT (policy ACCEPT) target prot opt source destination Chain FORWARD (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination
When I try to ping the proxy:Code:root@dhmail:~# more /etc/resolv.conf nameserver 172.21.56.10
Code:root@dhmail:~# ping 131.142.172.46 connect: Network is unreachable
You have no default gateway set. Is this machine using DHCP or is it setup statically?
I am having the same problem.
My IP is static with the correct gateway set. The proxy works fine in firefox, but not for APT-GET. I have even assigned the proxy to the bash shell instead of just APT-GET and it still fails
You can set the proxy specifically for Apt-Get. Did you try that?
Has anyone actually got this to work? I tried at work and could never get it to use a proxy via the command line or synaptic(on pclinuxos 0.93).
So we set up our own repository on one of the servers which checks weekly for updates and package changes.
Jo
I usually just export the http_proxy and ftp_proxy variables and it works fine.
Well, there's three places I set the proxy on a new Linux install.
1) in /etc/profile:
2) in /etc/apt/apt.confCode:export http_proxy="http://user:pass@xxx.xxx.xxx.xxx:port/" export ftp_proxy="http://user:pass@xxx.xxx.xxx.xxx:port/"
3) in /etc/wgetrcCode:Acquire::http::Proxy "http://user:pass@xxx.xxx.xxx.xxx:port/"; Acquire::ftp::Proxy "http://user:pass@xxx.xxx.xxx.xxx:port/";
Code:http_proxy = http://user:pass@xxx.xxx.xxx.xxx:port/ ftp_proxy = http://user:pass@xxx.xxx.xxx.xxx.port/ use_proxy = on
CHR1S (12-05-2010)
I had been using it in just apt-get... and for a while it worked fine. However, in the last 3 weeks through the Grid Proxy it just simply hasnt worked.
Well then your proxy is probably broken in some subtle way.
Hi there
I've tried everything to get synaptic to update through our proxy and nothing works. Can't get it to work with apt-get either
Could you be more specific what you mean in the above quote please...
I've been running a thread about this process on the PCLinuxOS forum (my distro)
http://www.pclinuxos.com/index.php?o...&topic=41285.0 without any success yet and was advised to ask for help here...
Anyone!
Does your proxy also filter?
As Geoff said previously, in a terminal, type
This assumes that DNS is set up correctly, your proxy is called MyProxyServer and the proxy port is 8080. This also assumes you are using a HTTP source for apt (otherwise replace http_proxy with ftp_proxy).Code:export http_proxy=http://MyProxyServer:8080
Remove the proxy line in apt.conf and then type
This will update the apt cache. Following this you should by able to install whatever you want.Code:aptitude update
To make the settings stick, edit the files as Geoff suggests above.
export http_proxy=http://MyProxyServer:8080 doesn't always work I've had the same trouble with our proxy in the past try this at the command line:
env http_proxy="http://<your proxy>:<proxy port>" apt-get install <your package>
Let me know if this solves the problem?
Wes
Ok here goes:
That didn't work, so i tried it with user name and password added:[root@mylaptop pclinux]# env http_proxy="http://192.168.0.252:8080" apt-get update
0% [Working]terminate called after throwing an instance of 'std::out_of_range'
what(): basic_string::substr
E: Method http has died unexpectedly!
W: Release files for some repositories could not be retrieved or authenticated. Such repositories are being ignored.
E: Tried to dequeue a fetching object
E: Tried to dequeue a fetching object
E: Tried to dequeue a fetching object
E: Tried to dequeue a fetching object
E: Tried to dequeue a fetching object
E: Tried to dequeue a fetching object
E: Tried to dequeue a fetching object
E: Tried to dequeue a fetching object
E: Tried to dequeue a fetching object
As you can see - no luck![root@mylaptop pclinux]# env http_proxy="http://user:password@192.168.0.252:8080" apt-get update
Ign http://mirrors.lastdot.org pclinuxos/2007 release
Err http://mirrors.lastdot.org pclinuxos/2007/main pkglist
502 Proxy Error ( The ISA Server denies the specified Uniform Resource Locator (URL). )
Ign http://mirrors.lastdot.org pclinuxos/2007/main release
Err http://mirrors.lastdot.org pclinuxos/2007/extra pkglist
Error reading from server - read (104 Connection reset by peer)
Ign http://mirrors.lastdot.org pclinuxos/2007/extra release
Err http://mirrors.lastdot.org pclinuxos/2007/nonfree pkglist
Error reading from server - read (104 Connection reset by peer)
Ign http://mirrors.lastdot.org pclinuxos/2007/nonfree release
Err http://mirrors.lastdot.org pclinuxos/2007/kde pkglist
502 Proxy Error ( The ISA Server denies the specified Uniform Resource Locator (URL). )
Ign http://mirrors.lastdot.org pclinuxos/2007/kde release
Failed to fetch http://mirrors.lastdot.org:1280/pclo...e/pkglist.main 502 Proxy Error ( The ISA Server denies the specified Uniform Resource Locator (URL). )
Failed to fetch http://mirrors.lastdot.org:1280/pclo.../pkglist.extra Error reading from server - read (104 Connection reset by peer)
Failed to fetch http://mirrors.lastdot.org:1280/pclo...kglist.nonfree Error reading from server - read (104 Connection reset by peer)
Failed to fetch http://mirrors.lastdot.org:1280/pclo...se/pkglist.kde 502 Proxy Error ( The ISA Server denies the specified Uniform Resource Locator (URL). )
Reading Package Lists... Done
Building Dependency Tree... Done
E: Some index files failed to download, they have been ignored, or old ones used instead.
[root@mylaptop pclinux]#
Last edited by t20racerman; 26-02-2008 at 02:29 PM.
There are currently 1 users browsing this thread. (0 members and 1 guests)