Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

How to use apt/synaptic through proxy

New to Debian (Or Linux in general)? Ask your questions here!
Post Reply
Message
Author
Laurentius
Posts: 21
Joined: 2017-01-14 00:52

How to use apt/synaptic through proxy

#1 Post by Laurentius »

How can i use apt-get and synaptic if i am connected to internet through a proxy.
I know the adress of the proxy:
http: 10.111.255.4 Port 80
I can set the proxy adress on the web browser and it works, but not with apt.

I tried editing the /etc/environment

Code: Select all

#configuracion de conectar igualdad para tener internet

http_proxy=10.111.255.4:80

https_proxy=10.111.255.4:80

ftp_proxy=10.111.255.4:80

no_proxy="127.0.0.1, localhost, *.miescuela.local, 172.16.0.1, 172.16.0.2, 172.16.0.10, services:10000, localhost:10000"


and /etc/apt/apt.conf

Code: Select all

#configuracion proxy conectar igualdad
Acquire::http::Proxy "http://10.111.255.4:80/";
 

Acquire::https::Proxy "http://10.111.255.4:80/";
 

Acquire::ftp::Proxy "http://10.111.255.4:80/";
and /etc/bash.bashrc

Code: Select all

#Reglas de proxy de conectar igualdad
 
export http_proxy=http://10.111.255.4:80/
 
export https_proxy=http://10.111.255.4:80/
 
export ftp_proxy=http://10.111.255.4:80/

export no_proxy="127.0.0.1, localhost, *.miescuela.local, 172.16.0.1, 172.16.0.2, 172.16.0.10, services:10000, localhost:10000"
but that didn't work.

I get this error messages (403 Proxy Unacknowledged):

Code: Select all

Ign http://ftp.es.debian.org jessie InRelease         
Ign http://ftp.es.debian.org jessie-updates InRelease
Ign http://security.debian.org jessie/updates InRelease
Ign http://linux.dropbox.com jessie InRelease
Ign http://ftp.es.debian.org jessie Release.gpg        
Ign http://ftp.es.debian.org jessie-updates Release.gpg                      
Ign http://security.debian.org jessie/updates Release.gpg
Ign http://linux.dropbox.com jessie Release.gpg
Ign http://ftp.es.debian.org jessie Release
Ign http://ftp.es.debian.org jessie-updates Release
Ign http://security.debian.org jessie/updates Release
Ign http://linux.dropbox.com jessie Release
Ign http://ftp.es.debian.org jessie/main Sources/DiffIndex                   
Ign http://security.debian.org jessie/updates/main Sources/DiffIndex         
Ign http://linux.dropbox.com jessie/main amd64 Packages/DiffIndex            
Ign http://ftp.es.debian.org jessie/contrib Sources/DiffIndex                
Ign http://ftp.es.debian.org jessie/non-free Sources/DiffIndex               
Ign http://security.debian.org jessie/updates/contrib Sources/DiffIndex      
Ign http://linux.dropbox.com jessie/main i386 Packages/DiffIndex             
Ign http://security.debian.org jessie/updates/non-free Sources/DiffIndex     
Ign http://security.debian.org jessie/updates/main i386 Packages/DiffIndex   
Ign http://ftp.es.debian.org jessie/main i386 Packages/DiffIndex             
Ign http://security.debian.org jessie/updates/contrib i386 Packages/DiffIndex
Ign http://ftp.es.debian.org jessie/contrib i386 Packages/DiffIndex          
Ign http://security.debian.org jessie/updates/non-free i386 Packages/DiffIndex
Ign http://ftp.es.debian.org jessie/non-free i386 Packages/DiffIndex         
Err http://linux.dropbox.com jessie/main amd64 Packages                      
  
Err http://linux.dropbox.com jessie/main i386 Packages                       
  
Ign http://ftp.es.debian.org jessie-updates/main Sources/DiffIndex           
Err http://linux.dropbox.com jessie/main amd64 Packages                      
  
Ign http://ftp.es.debian.org jessie-updates/contrib Sources/DiffIndex        
Ign http://ftp.es.debian.org jessie-updates/non-free Sources/DiffIndex       
Ign http://ftp.es.debian.org jessie-updates/main i386 Packages/DiffIndex     
Err http://linux.dropbox.com jessie/main i386 Packages                       
  
Ign http://ftp.es.debian.org jessie-updates/contrib i386 Packages/DiffIndex  
Ign http://ftp.es.debian.org jessie-updates/non-free i386 Packages/DiffIndex 
Err http://linux.dropbox.com jessie/main amd64 Packages                      
  
Err http://security.debian.org jessie/updates/main Sources                   
  
Err http://security.debian.org jessie/updates/contrib Sources                
  
Err http://linux.dropbox.com jessie/main i386 Packages                  
  
Err http://security.debian.org jessie/updates/non-free Sources               
  
Err http://linux.dropbox.com jessie/main amd64 Packages                      
  
Err http://security.debian.org jessie/updates/main Sources              
  
Err http://linux.dropbox.com jessie/main i386 Packages                  
  
Err http://security.debian.org jessie/updates/non-free Sources
  
Err http://security.debian.org jessie/updates/main i386 Packages             
  
Err http://security.debian.org jessie/updates/non-free i386 Packages    
  
Ign http://linux.dropbox.com jessie/main Translation-es_AR
Ign http://linux.dropbox.com jessie/main Translation-es                 
Ign http://linux.dropbox.com jessie/main Translation-en                      
Err http://linux.dropbox.com jessie/main amd64 Packages                      
  403  Proxy Unacknowledged
Err http://security.debian.org jessie/updates/main Sources
  
Err http://security.debian.org jessie/updates/contrib Sources           
  
Err http://linux.dropbox.com jessie/main i386 Packages                       
  403  Proxy Unacknowledged
Err http://security.debian.org jessie/updates/non-free Sources
  
Err http://security.debian.org jessie/updates/main i386 Packages             
  
Err http://security.debian.org jessie/updates/contrib i386 Packages          
  
Err http://security.debian.org jessie/updates/non-free i386 Packages         
  
Ign http://security.debian.org jessie/updates/contrib Translation-es_AR 
Ign http://security.debian.org jessie/updates/contrib Translation-es
Ign http://security.debian.org jessie/updates/contrib Translation-en
Ign http://security.debian.org jessie/updates/main Translation-es_AR
Ign http://security.debian.org jessie/updates/main Translation-es       
Ign http://security.debian.org jessie/updates/main Translation-en
Ign http://security.debian.org jessie/updates/non-free Translation-es_AR
Ign http://security.debian.org jessie/updates/non-free Translation-es   
Ign http://security.debian.org jessie/updates/non-free Translation-en
Err http://security.debian.org jessie/updates/main Sources              
  403  Proxy Unacknowledged
Err http://security.debian.org jessie/updates/contrib Sources           
  403  Proxy Unacknowledged
Err http://security.debian.org jessie/updates/non-free Sources
  403  Proxy Unacknowledged
Err http://security.debian.org jessie/updates/main i386 Packages        
  403  Proxy Unacknowledged
Err http://security.debian.org jessie/updates/contrib i386 Packages     
  403  Proxy Unacknowledged
Err http://security.debian.org jessie/updates/non-free i386 Packages    
  403  Proxy Unacknowledged
Ign http://ftp.es.debian.org jessie/contrib Translation-es_AR           
Ign http://ftp.es.debian.org jessie/contrib Translation-es
Ign http://ftp.es.debian.org jessie/contrib Translation-en
Ign http://ftp.es.debian.org jessie/main Translation-es_AR
Ign http://ftp.es.debian.org jessie/main Translation-es
Ign http://ftp.es.debian.org jessie/main Translation-en
Ign http://ftp.es.debian.org jessie/non-free Translation-es_AR          
Ign http://ftp.es.debian.org jessie/non-free Translation-es             
Ign http://ftp.es.debian.org jessie/non-free Translation-en
Ign http://ftp.es.debian.org jessie-updates/contrib Translation-es_AR   
Ign http://ftp.es.debian.org jessie-updates/contrib Translation-es
Ign http://ftp.es.debian.org jessie-updates/contrib Translation-en
Ign http://ftp.es.debian.org jessie-updates/main Translation-es_AR
Ign http://ftp.es.debian.org jessie-updates/main Translation-es
Ign http://ftp.es.debian.org jessie-updates/main Translation-en
Ign http://ftp.es.debian.org jessie-updates/non-free Translation-es_AR
Ign http://ftp.es.debian.org jessie-updates/non-free Translation-es
Ign http://ftp.es.debian.org jessie-updates/non-free Translation-en
Err http://ftp.es.debian.org jessie/main Sources
  403  Proxy Unacknowledged
Err http://ftp.es.debian.org jessie/contrib Sources
  403  Proxy Unacknowledged
Err http://ftp.es.debian.org jessie/non-free Sources
  403  Proxy Unacknowledged
Err http://ftp.es.debian.org jessie/main i386 Packages
  403  Proxy Unacknowledged
Err http://ftp.es.debian.org jessie/contrib i386 Packages
  403  Proxy Unacknowledged
Err http://ftp.es.debian.org jessie/non-free i386 Packages
  403  Proxy Unacknowledged
Err http://ftp.es.debian.org jessie-updates/main Sources
  403  Proxy Unacknowledged
Err http://ftp.es.debian.org jessie-updates/contrib Sources
  403  Proxy Unacknowledged
Err http://ftp.es.debian.org jessie-updates/non-free Sources
  403  Proxy Unacknowledged
Err http://ftp.es.debian.org jessie-updates/main i386 Packages
  403  Proxy Unacknowledged
Err http://ftp.es.debian.org jessie-updates/contrib i386 Packages
  403  Proxy Unacknowledged
Err http://ftp.es.debian.org jessie-updates/non-free i386 Packages
  403  Proxy Unacknowledged
W: Fallo al obtener http://ftp.es.debian.org/debian/dists/jessie/main/source/Sources  403  Proxy Unacknowledged

W: Fallo al obtener http://security.debian.org/dists/jessie/updates/main/source/Sources  403  Proxy Unacknowledged

W: Fallo al obtener http://linux.dropbox.com/debian/dists/jessie/main/binary-amd64/Packages  403  Proxy Unacknowledged

W: Fallo al obtener http://ftp.es.debian.org/debian/dists/jessie/contrib/source/Sources  403  Proxy Unacknowledged

W: Fallo al obtener http://ftp.es.debian.org/debian/dists/jessie/non-free/source/Sources  403  Proxy Unacknowledged

W: Fallo al obtener http://security.debian.org/dists/jessie/updates/contrib/source/Sources  403  Proxy Unacknowledged

W: Fallo al obtener http://linux.dropbox.com/debian/dists/jessie/main/binary-i386/Packages  403  Proxy Unacknowledged

W: Fallo al obtener http://security.debian.org/dists/jessie/updates/non-free/source/Sources  403  Proxy Unacknowledged

W: Fallo al obtener http://security.debian.org/dists/jessie/updates/main/binary-i386/Packages  403  Proxy Unacknowledged

W: Fallo al obtener http://ftp.es.debian.org/debian/dists/jessie/main/binary-i386/Packages  403  Proxy Unacknowledged

W: Fallo al obtener http://security.debian.org/dists/jessie/updates/contrib/binary-i386/Packages  403  Proxy Unacknowledged

W: Fallo al obtener http://ftp.es.debian.org/debian/dists/jessie/contrib/binary-i386/Packages  403  Proxy Unacknowledged

W: Fallo al obtener http://security.debian.org/dists/jessie/updates/non-free/binary-i386/Packages  403  Proxy Unacknowledged

W: Fallo al obtener http://ftp.es.debian.org/debian/dists/jessie/non-free/binary-i386/Packages  403  Proxy Unacknowledged

W: Fallo al obtener http://ftp.es.debian.org/debian/dists/jessie-updates/main/source/Sources  403  Proxy Unacknowledged

W: Fallo al obtener http://ftp.es.debian.org/debian/dists/jessie-updates/contrib/source/Sources  403  Proxy Unacknowledged

W: Fallo al obtener http://ftp.es.debian.org/debian/dists/jessie-updates/non-free/source/Sources  403  Proxy Unacknowledged

W: Fallo al obtener http://ftp.es.debian.org/debian/dists/jessie-updates/main/binary-i386/Packages  403  Proxy Unacknowledged

W: Fallo al obtener http://ftp.es.debian.org/debian/dists/jessie-updates/contrib/binary-i386/Packages  403  Proxy Unacknowledged

W: Fallo al obtener http://ftp.es.debian.org/debian/dists/jessie-updates/non-free/binary-i386/Packages  403  Proxy Unacknowledged

E: No se han podido descargar algunos archivos de índice, se han omitido, o se han utilizado unos antiguos en su lugar.
Any suggestion?

User avatar
umarzuki
Posts: 306
Joined: 2007-07-22 11:23
Location: Malaysia

Re: How to use apt/synaptic through proxy

#2 Post by umarzuki »

try removing all you have done but failed, and do this instead in apt.conf

Code: Select all

APT {
    Acquire {
        http {
            Proxy "http://user:password@server:port";
        };
    };
};

Laurentius
Posts: 21
Joined: 2017-01-14 00:52

Re: How to use apt/synaptic through proxy

#3 Post by Laurentius »

Thank you. I'll try.
But i don't understand what this line means and how i should adapt it to my proxy:

Code: Select all

Proxy "http://user:password@server:port";


Is it supposed to be a "user" and a "password"?

All i know are the adress and the port:

http: 10.111.255.4 Port 80.

The net admin at my job does not know any user or password related to the proxy.

User avatar
buzzin
Posts: 121
Joined: 2013-12-31 09:42

Re: How to use apt/synaptic through proxy

#4 Post by buzzin »

If the proxy doesn't require login, forget the 'user:password@' bit.
They are only required if the proxy does require a login, and user:password should be replaced with the actual username and password.
Sysadmin/KDE user

Post Reply