Announcement

Collapse
No announcement yet.

Can't download any packages

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Can't download any packages

    Hi,

    a strange problem: since a few days I can't download any packages any more. Internet connection is fine, I'm using the same PC right now. I tried to access the repository via browser, it works. Just synaptic and apt-get always report errors: could not download the package. There is no exemption, it just doesn't work.
    I checked the network settings, they are correctly set (no proxy).
    I was wondering if that is related to the fact that I have installed TOR, but it doesn't matter if I turn it on or off. Generally, I access the internet mainly without using TOR, and for that you would also hav e to set the proxy, which is not the case.
    But: could there be any hidden setting that TOR has made and I am not aware of? Besides TOR, I also installed vidalia and of course privoxy.

    Any ideas?

    #2
    Let's try a simple download:
    Code:
    apt-get download kolourpaint4
    Copy-paste the entire output here.

    Also, please show us the contents of /etc/apt/sources.list.

    Comment


      #3
      Ok, I'm translating from German:

      Code:
      0% [Waiting for header...]
      connection failed
      It sits a very long time at the first line (Waiting for header). I can connect to the archive's server without problem via browser (as mentioned).

      Here is the sources.list (I removed all the comment lines):
      Code:
      deb http://de.archive.ubuntu.com/ubuntu/ quantal main restricted
      deb-src http://de.archive.ubuntu.com/ubuntu/ quantal main restricted
      deb http://de.archive.ubuntu.com/ubuntu/ quantal-updates main restricted
      deb-src http://de.archive.ubuntu.com/ubuntu/ quantal-updates main restricted
      deb http://de.archive.ubuntu.com/ubuntu/ quantal universe
      deb-src http://de.archive.ubuntu.com/ubuntu/ quantal universe
      deb http://de.archive.ubuntu.com/ubuntu/ quantal-updates universe
      deb-src http://de.archive.ubuntu.com/ubuntu/ quantal-updates universe
      deb http://de.archive.ubuntu.com/ubuntu/ quantal multiverse
      deb-src http://de.archive.ubuntu.com/ubuntu/ quantal multiverse
      deb http://de.archive.ubuntu.com/ubuntu/ quantal-updates multiverse
      deb-src http://de.archive.ubuntu.com/ubuntu/ quantal-updates multiverse
      deb http://de.archive.ubuntu.com/ubuntu/ quantal-backports main restricted universe multiverse
      deb-src http://de.archive.ubuntu.com/ubuntu/ quantal-backports main restricted universe multiverse
      deb http://security.ubuntu.com/ubuntu quantal-security main restricted
      deb-src http://security.ubuntu.com/ubuntu quantal-security main restricted
      deb http://security.ubuntu.com/ubuntu quantal-security universe
      deb-src http://security.ubuntu.com/ubuntu quantal-security universe
      deb http://security.ubuntu.com/ubuntu quantal-security multiverse
      deb-src http://security.ubuntu.com/ubuntu quantal-security multiverse
      deb http://archive.canonical.com/ubuntu quantal partner
      deb-src http://archive.canonical.com/ubuntu quantal partner
      deb http://extras.ubuntu.com/ubuntu quantal main
      deb http://ppa.quickbuild.pearsoncomputing.net/trinity/trinity-v3.5.13/ubuntu precise main
      deb-src http://ppa.quickbuild.pearsoncomputing.net/trinity/trinity-v3.5.13/ubuntu precise main
      deb http://ppa.quickbuild.pearsoncomputing.net/trinity/trinity-builddeps-v3.5.13/ubuntu precise main
      deb-src http://ppa.quickbuild.pearsoncomputing.net/trinity/trinity-builddeps-v3.5.13/ubuntu precise main
      deb-src http://extras.ubuntu.com/ubuntu quantal main

      Comment


        #4
        apt-get creates many simultaneous connections to a repository, and sometimes certain proxies can't handle this. Alternately, the proxies might be expecting a certain user-agent string. Can you do this:

        Code:
        wget http://de.archive.ubuntu.com/ubuntu/pool/universe/k/kolourpaint/kolourpaint4_4.9.3-0ubuntu0.1_amd64.deb
        Success is a downloaded file approximately 1.1 MB in size.

        Comment


          #5
          I'm going offline in a bit. I'd like you try the download again, this time using an option that tells apt-get to forge a specific user-agent string. Let me know if this works:

          Code:
          apt-get -o Acquire::http::User-Agent="Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:18.0) Gecko/20100101 Firefox/18.0" download kolourpaint4
          Any success?

          Another option to experiment with is Acquire::http::Pipeline-Depth="0" but this is the default now, so I don't think manually specifying it will help.
          Last edited by SteveRiley; Jan 30, 2013, 01:34 AM.

          Comment


            #6
            Ok, I found the culprit: anon-proxy. It had set the proxy system variable which was used by synaptic and apt-get, unfortunately. I had forgotten about it... :-/
            Now it works again.

            Comment


              #7
              I figured that the problem was somehow related to your proxy chain. Glad you got it sorted.

              Comment

              Working...
              X