O Ubuntu fica atrás de um proxy / firewall corporativo - como posso instalar pacotes?

1

Eu tenho uma instalação limpa do Ubuntu 16.04 LTS, mas como minha máquina está rodando atrás de um firewall / proxy corporativo, não posso descobrir como superar os obstáculos. Eu sei que temos um proxy corporativo, e eu tenho o servidor / porta / nome de usuário / senha para usá-lo, mas eu não sei se isso vai resolver o meu problema inicialmente. Provavelmente, ainda precisarei adicionar a origem do pacote à nossa lista de endereços IP da lista branca.

para começar, aqui estão as mensagens de erro que estou recebendo ao tentar instalar quaisquer pacotes.

sudo apt install software-center
[sudo] password for alilland:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package software-center is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or is only available from another source

E: Package 'software-center' has no installation candidates

onde começo a desatar o nó que minha empresa fez?

< ----- Editar 1 ----- >

Quando eu sudo apt-get update i obtiver os seguintes erros ...

alilland@TI-AronLilland:~$ sudo apt-get update
[sudo] password for alilland: 
. . . .
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://us.archive.ubuntu.com/ubuntu xenial 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://us.archive.ubuntu.com/ubuntu xenial-updates 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://us.archive.ubuntu.com/ubuntu xenial-backports 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.
E: Failed to fetch http://security.ubuntu.com/ubuntu/dists/xenial-security/main/binary-i386/Packages  407  Authorization Required
E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/xenial/main/binary-amd64/Packages  407  Authorization Required
E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/xenial-updates/main/binary-amd64/Packages  407  Authorization Required
E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/xenial-backports/main/binary-amd64/Packages  407  Authorization Required
E: Some index files failed to download. They have been ignored, or old ones used instead.

< ----- Editar 2 ----- >

depois de adicionar meu proxy htttp://[username]:[password]@[ip address]:[port] Im agora recebendo mensagens de erro diferentes, em vez de obter 407 Authorization Required im agora vendo 403 Forbidden

. . . . 
E: Failed to fetch http://security.ubuntu.com/ubuntu/dists/xenial-security/main/binary-i386/Packages  403  Forbidden
E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/xenial/main/binary-amd64/Packages  403  Forbidden
E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/xenial-updates/main/binary-amd64/Packages  403  Forbidden
E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/xenial-backports/main/binary-amd64/Packages  403  Forbidden
E: Some index files failed to download. They have been ignored, or old ones used instead.
    
por alilland 30.03.2017 / 19:42

1 resposta

0

Para configuração de proxy temporário ... quero dizer apenas para a sessão atual, execute o comando abaixo:

export http_proxy=http://yourproxyaddress:proxyport

Para adicionar esta configuração de proxy permanentemente, edite o arquivo apt.conf

gksudo gedit /etc/apt/apt.conf

E adicione a linha abaixo:

Acquire::http::Proxy "http://yourproxyaddress:proxyport";
    
por Vivek 30.03.2017 / 19:53