Announcement

Collapse
No announcement yet.

apt-get through proxy

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

    apt-get through proxy

    Hi!
    i had install Kubuntu 2 days ago from the cd, and now i cant make the apt-get work, i think becouse i am behind a proxy.

    What do i have to configure so i can use apt-get through my proxy

    Thanks in advance!

    #2
    Re: apt-get through proxy

    Originally posted by edfz
    What do i have to configure so i can use apt-get through my proxy
    Well, I had to look for this online, so I thought this would be a good place for it, as well.

    Should you require to use apt through a proxy, you just need to set an enviroment variable:

    Code:
    sudo export http_proxy='[url]http://proxy.site.domain:port@user:password'[/url]
    If your proxy doesn't use a username/password, just leave the '@' symbol and everything after it off.

    Hope that helps someone.
    -------------<br />dentaku65<br />http://yep.it

    Comment


      #3
      Re: apt-get through proxy

      Hi!

      And what if this happens:

      santiago@kubuntu:/etc/apt$ sudo export http_proxy='http://192.168.0.1:44445'
      Password:
      sudo: export: command not found

      I'm using Kubuntu 5.10 on amd_64

      Comment


        #4
        Re: apt-get through proxy

        Hi,

        In fact, as far as you're using sudo you don't need to set variables by sudo. I mean setting something with your using and just after using sudo ... will keep your variable in memory. sudo is acting like "su" not like "su -"
        So you can do :
        export http_proxy='http://192.168.0.1:44445'
        sudo apt-get update
        and it should work
        Cheers

        Comment


          #5
          Re: apt-get through proxy

          What if you are behind a websense autoproxy? Nothing I can find seems to process the .pac file that our MS stuff is set to use.

          And I REALLY do not want to leave my username and pasword in a file like that since its also my email and company login.

          I'm trying to show off how good Dapper is, but right now its failing miserably because the LiveCD is missing so much and I can't get new stuff or updates due to the proxy issue.

          HELP!

          Comment


            #6
            Re: apt-get through proxy

            You may need to ask the local sysadmin, maybe they are blocking/filtering quite a lot of ports/addresses?

            Comment

            Working...
            X