Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
gangstaOffline
15 Post subject: [solved]Apt-get update does not work by proxy.  PostPosted: 23.11.2010, 22:31



Joined: 2010-09-12
Posts: 37
Location: Poland
Status: Offline
I have this problem since the inception of Aptosid.
If I do apt-get update without proxy from my ISP is OK.
But if I use proxy(without proxy I have only 20kB/s!!) I have this:
      Code:
# LANG=C apt-get update
Hit http://frickelplatz.de sid Release.gpg
Ign http://frickelplatz.de/debian/ sid/contrib Translation-en                   
Hit http://deb.opera.com unstable Release.gpg                                   
Hit http://apt.jenslody.de any Release.gpg                                                       
Ign http://frickelplatz.de/debian/ sid/contrib Translation-pl                                   
Ign http://apt.jenslody.de/ any/release Translation-en                                           
Ign http://deb.opera.com/opera/ unstable/non-free Translation-en                                 
Ign http://frickelplatz.de/debian/ sid/main Translation-en                                       
Ign http://apt.jenslody.de/ any/release Translation-pl                           
Ign http://deb.opera.com/opera/ unstable/non-free Translation-pl                                 
Ign http://frickelplatz.de/debian/ sid/main Translation-pl                                       
Hit http://apt.jenslody.de any Release                                           
Hit http://deb.opera.com stable Release.gpg                                                     
Ign http://frickelplatz.de/debian/ sid/non-free Translation-en                   
Hit http://apt.jenslody.de any/release Sources/DiffIndex                                         
Ign http://frickelplatz.de/debian/ sid/non-free Translation-pl                                   
Hit http://apt.jenslody.de any/release i386 Packages/DiffIndex                                   
Ign http://deb.opera.com/opera/ stable/non-free Translation-en                                   
Hit http://frickelplatz.de sid Release                                                           
Get:1 http://ftp.us.debian.org unstable Release.gpg [835 B]                       
Ign http://deb.opera.com/opera/ stable/non-free Translation-pl                                   
Hit http://frickelplatz.de sid/main i386 Packages                                               
Hit http://frickelplatz.de sid/non-free i386 Packages                             
Hit http://deb.opera.com unstable Release                                                       
Hit http://frickelplatz.de sid/contrib i386 Packages                                             
Hit http://deb.opera.com stable Release                                                         
Ign http://ftp.us.debian.org/debian/ unstable/contrib Translation-en             
Ign http://deb.opera.com unstable/non-free i386 Packages                         
Ign http://deb.opera.com stable/non-free i386 Packages
Ign http://deb.opera.com unstable/non-free i386 Packages
Ign http://ftp.us.debian.org/debian/ unstable/contrib Translation-pl
Ign http://deb.opera.com stable/non-free i386 Packages
Hit http://deb.opera.com unstable/non-free i386 Packages
Hit http://deb.opera.com stable/non-free i386 Packages
Ign http://ftp.us.debian.org/debian/ unstable/main Translation-en
Get:2 http://ftp.us.debian.org/debian/ unstable/main Translation-pl [343 kB]
Ign http://ftp.us.debian.org/debian/ unstable/non-free Translation-en                           
Ign http://ftp.us.debian.org/debian/ unstable/non-free Translation-pl                           
Get:3 http://ftp.us.debian.org unstable Release [104 kB]                                         
Get:4 http://ftp.us.debian.org unstable/main i386 Packages/DiffIndex [2038 B]                   
Hit http://ftp.us.debian.org unstable/contrib i386 Packages/DiffIndex                           
Hit http://ftp.us.debian.org unstable/non-free i386 Packages/DiffIndex                           
Get:5 http://ftp.us.debian.org unstable/main i386 2010-11-23-2035.53.pdiff [4181 B]             
Get:6 http://ftp.us.debian.org unstable/main i386 2010-11-23-2035.53.pdiff [4181 B]             
Get:7 http://ftp.us.debian.org unstable/main i386 2010-11-23-2035.53.pdiff [4181 B]             
Err ftp://ftp.spline.de sid Release.gpg                                                         
  Connection timeout
Err ftp://ftp.spline.de/pub/aptosid/debian/ sid/fix.main Translation-en
  Connection timeout
Err ftp://ftp.spline.de/pub/aptosid/debian/ sid/fix.main Translation-pl
  Connection timeout
Err ftp://ftp.spline.de/pub/aptosid/debian/ sid/main Translation-en
  Connection timeout
Err ftp://ftp.spline.de/pub/aptosid/debian/ sid/main Translation-pl
  Connection timeout
Ign ftp://ftp.spline.de sid Release
Ign ftp://ftp.spline.de sid/main i386 Packages/DiffIndex
Ign ftp://ftp.spline.de sid/fix.main i386 Packages/DiffIndex
Ign ftp://ftp.spline.de sid/main i386 Packages
Ign ftp://ftp.spline.de sid/fix.main i386 Packages
Ign ftp://ftp.spline.de sid/main i386 Packages
Ign ftp://ftp.spline.de sid/fix.main i386 Packages
Err ftp://ftp.spline.de sid/main i386 Packages
  Connection timeout
Err ftp://ftp.spline.de sid/fix.main i386 Packages
  Connection timeout
Fetched 454 kB in 28min 1s (270 B/s)
W: Failed to fetch ftp://ftp.spline.de/pub/aptosid/debian/dists/sid/Release.gpg  Connection timeout

W: Failed to fetch ftp://ftp.spline.de/pub/aptosid/debian/dists/sid/fix.main/i18n/Translation-en.bz2  Connection timeout

W: Failed to fetch ftp://ftp.spline.de/pub/aptosid/debian/dists/sid/fix.main/i18n/Translation-pl.bz2  Connection timeout

W: Failed to fetch ftp://ftp.spline.de/pub/aptosid/debian/dists/sid/main/i18n/Translation-en.bz2  Connection timeout

W: Failed to fetch ftp://ftp.spline.de/pub/aptosid/debian/dists/sid/main/i18n/Translation-pl.bz2  Connection timeout

W: Failed to fetch ftp://ftp.spline.de/pub/aptosid/debian/dists/sid/main/binary-i386/Packages.gz  Connection timeout

W: Failed to fetch ftp://ftp.spline.de/pub/aptosid/debian/dists/sid/fix.main/binary-i386/Packages.gz  Connection timeout

E: Some index files failed to download, they have been ignored, or old ones used instead.

It took about 30 minutes.

My ISP told me, that this is was not his fault.
In Firefox with proxy I can go to ftp://ftp.spline.de/pub/aptosid/debian and I see there folders.
Now, when I write this, I use this proxy.

Please help me.
Thanks.


Last edited by gangsta on 24.11.2010, 16:50; edited 1 time in total
 
 View user's profile Send private message  
Reply with quote Back to top
muchan
Post subject: RE: Apt-get update does not work by proxy.  PostPosted: 23.11.2010, 22:50
Moderator


Joined: 2010-09-11
Posts: 468

I'd suggest trying with other aptosid mirror.
(for example, the mirror of office-vienna is quite fast)

I'd also suggest using OpenDNS and see if behavior is the same.
 
 View user's profile Send private message  
Reply with quote Back to top
DonKultOffline
Post subject: RE: Apt-get update does not work by proxy.  PostPosted: 24.11.2010, 09:05
Team Member


Joined: 2010-09-02
Posts: 481

Status: Offline
Change your sources.list to say "http://…" instead of "ftp://…".
Its sounds silly, but HTTP is the better protocol for usage by APT to download stuff than ftp…

But you should add HOW you configured your proxy. Obviously, http proxy settings doesn't effect ftp.
If you do it by the environment: echo "${http_proxy} vs. ${ftp_proxy}"
If you do it by apt-options: Acquire::http::Proxy vs. Acquire::ftp::Proxy
If you don't know what i am talking about: How do you set up your proxy? And does an option for an ftp proxy exists, too?

_________________
MfG. DonKult
"I never make stupid mistakes. Only very, very clever ones." ~ The Doctor
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
gangstaOffline
Post subject: RE: Apt-get update does not work by proxy.  PostPosted: 24.11.2010, 16:48



Joined: 2010-09-12
Posts: 37
Location: Poland
Status: Offline
muchan I all the time using OpenDNS.
When I use the mirror of office-vienna is ok.
DonKult
I know how to set up a proxy in apt-get.
      DonKult wrote:
Change your sources.list to say "http://…" instead of "ftp://…".

This is it! Now spline repo work by proxy.

Thanks all for help.
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 12 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by Zafenio