I'm trying to install a package (android-studio) through ppa, and am having some troubles. I'm 95% sure it is related to the corporate proxy we're behind of.
These are my settings:
env | grep -i proxy
http_proxy=http://1.2.3.4:5678/
ftp_proxy=http://1.2.3.4:5678/
socks_proxy=socks://1.2.3.4:5678/
https_proxy=http://1.2.3.4:5678/
set | grep -i proxy
ftp_proxy=http://1.2.3.4:5678/
http_proxy=http://1.2.3.4:5678/
https_proxy=http://1.2.3.4:5678/
socks_proxy=socks://1.2.3.4:5678/
-p --http-proxy --no-http-proxy\
-p --http-proxy --no-http-proxy\
-p --http-proxy --no-http-proxy\
-p --http-proxy --no-http-proxy\
-p --http-proxy --no-http-proxy\
-p --http-proxy --no-http-proxy\
-p --http-proxy --no-http-proxy\
Then, when I execute the command, the process gets stuck while trying to download the package from terminal.
sudo apt-get install android-studio
Leyendo lista de paquetes... Hecho
Creando árbol de dependencias
Leyendo la información de estado... Hecho
Paquetes sugeridos:
default-jdk
Se instalarán los siguientes paquetes NUEVOS:
android-studio
0 actualizados, 1 se instalarán, 0 para eliminar y 2 no actualizados.
4 no instalados del todo o eliminados.
Se necesita descargar 0 B/36,2 kB de archivos.
Se utilizarán 98,3 kB de espacio de disco adicional después de esta operación.
(Leyendo la base de datos ... 885309 ficheros o directorios instalados actualmente.)
Preparando para desempaquetar .../android-studio_162.3934792~trusty_amd64.deb ...
--2017-05-18 10:37:30-- https://dl.google.com/dl/android/studio/ide-zips/2.3.2.0/android-studio-ide-162.3934792-linux.zip
Resolviendo dl.google.com (dl.google.com)... 216.58.202.206, 2800:3f0:4001:815::200e
Conectando con dl.google.com (dl.google.com)[216.58.202.206]:443...
PS: I can download the file through browser, and using wget from terminal
Does any1 know how I could solve this, even if I have to use a temporal setting or command?
Thanks
sudo apt-get install android-studio
runLC_ALL=c sudo apt-get install android-studio
and add the output to your question, so it's more helpful to diagnose your problem. – Ravexina May 18 '17 at 13:59sudo env | grep -i proxy
andsudo -l
, please – muru May 18 '17 at 15:37env_reset
there? That means the environment variables are being reset. Set yourapt
proxy settings inapt.conf
instead. See https://askubuntu.com/questions/257290/configure-proxy-for-apt – muru May 18 '17 at 15:51sudo
resets the environment becauseenv_reset
is set insudo
's configuration. – muru May 18 '17 at 15:54