-1

I am trying to set proxy for APT so I can update.

The server is behind a proxy which is in the domain. I have tried the following in /etc/apt/apt.conf

  1. for FTP, HTTP, https

    Acquire::HTTP::Proxy "http://[domain\user[:Password02#]@10.1.1.8:8080/";
    
  2. Also tried

    Acquire::http::Proxy "http://domain\user:Password02#]@10.1.1.8:8080/";
    
  3. Also tried

    Acquire::http::Proxy "http:/user@domain.com:Password02#]@10.1.1.8:8080/";
    

I always get the error below:

root@canonical:/etc/apt# apt-get update

  407  Proxy Authorization Required

Reading package lists... Done
W: The repository 'http://security.ubuntu.com/ubuntu xenial-security Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: The repository 'http://za.archive.ubuntu.com/ubuntu xenial Release' does 

How can I set up my proxy correctly?

fosslinux
  • 3,881
tho
  • 7

1 Answers1

1
Acquire::http::Proxy "http://user:password@10.1.1.8:8080";
Acquire::https::Proxy "http://user:password@10.1.1.8:8080";
Acquire::ftp::Proxy "http://user:password@10.1.1.8:8080";
muclux
  • 5,324