[SOLVED] Can't update under proxy

Quick to answer questions about finding your way around Linux Mint as a new user.
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions use the other forums in the support section.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
Amith Kumar U R

[SOLVED] Can't update under proxy

Post by Amith Kumar U R »

Hello folks!!

Recently I installed mint 17 cinnamon. Its really working great !! But I am facing some problem with apt-get update whenever I am under proxy. I thought it's because, proxy is not applied system wide and I couldn't find any "apply system wide" buttons in network settings to fix this up. :roll: I don't know how to work around using command line and please educate me regarding the same.

I am getting following errors.

Code: Select all

amith@amith-comp ~ $ sudo apt-get update
[sudo] password for amith: 
Ign cdrom://Linux Mint 17 _Qiana_ - Release amd64 20140624 trusty InRelease
Err http://pkg-linuxmint.hnsdc.com qiana InRelease
  
Ign cdrom://Linux Mint 17 _Qiana_ - Release amd64 20140624 trusty Release.gpg  
Err http://pkg-linuxmint.hnsdc.com qiana Release.gpg                           
  Cannot initiate the connection to pkg-linuxmint.hnsdc.com:80 (2401:4800:2121:c0:ff:ee:ee:2). - connect (101: Network is unreachable) [IP: 2401:4800:2121:c0:ff:ee:ee:2 80]
Ign cdrom://Linux Mint 17 _Qiana_ - Release amd64 20140624 trusty Release      
Err http://archive.canonical.com trusty InRelease                              
  
Err http://archive.canonical.com trusty Release.gpg                            
  Cannot initiate the connection to archive.canonical.com:80 (2001:67c:1360:8c01::1b). - connect (101: Network is unreachable) [IP: 2001:67c:1360:8c01::1b 80]
Err cdrom://Linux Mint 17 _Qiana_ - Release amd64 20140624 trusty/contrib amd64 Packages
  Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
Err cdrom://Linux Mint 17 _Qiana_ - Release amd64 20140624 trusty/main amd64 Packages
  Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
Err cdrom://Linux Mint 17 _Qiana_ - Release amd64 20140624 trusty/non-free amd64 Packages
  Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
Err cdrom://Linux Mint 17 _Qiana_ - Release amd64 20140624 trusty/contrib i386 Packages
  Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
Err cdrom://Linux Mint 17 _Qiana_ - Release amd64 20140624 trusty/main i386 Packages
  Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
Err cdrom://Linux Mint 17 _Qiana_ - Release amd64 20140624 trusty/non-free i386 Packages
  Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
Ign cdrom://Linux Mint 17 _Qiana_ - Release amd64 20140624 trusty/contrib Translation-en_IN
Ign cdrom://Linux Mint 17 _Qiana_ - Release amd64 20140624 trusty/contrib Translation-en
Ign cdrom://Linux Mint 17 _Qiana_ - Release amd64 20140624 trusty/main Translation-en_IN
Ign cdrom://Linux Mint 17 _Qiana_ - Release amd64 20140624 trusty/main Translation-en
Ign cdrom://Linux Mint 17 _Qiana_ - Release amd64 20140624 trusty/non-free Translation-en_IN
Ign cdrom://Linux Mint 17 _Qiana_ - Release amd64 20140624 trusty/non-free Translation-en
Err http://mirror.cse.iitk.ac.in trusty InRelease                              
  
Err http://mirror.cse.iitk.ac.in trusty-updates InRelease                      
  
Err http://mirror.cse.iitk.ac.in trusty Release.gpg                            
  Unable to connect to mirror.cse.iitk.ac.in:http:
Err http://mirror.cse.iitk.ac.in trusty-updates Release.gpg                    
  Unable to connect to mirror.cse.iitk.ac.in:http:
Err http://extra.linuxmint.com qiana InRelease                                 
  
Err http://extra.linuxmint.com qiana Release.gpg                               
  Unable to connect to extra.linuxmint.com:http:
Err http://ppa.launchpad.net trusty InRelease                            
  
Err http://ppa.launchpad.net trusty Release.gpg                          
  Unable to connect to ppa.launchpad.net:http:
Err http://security.ubuntu.com trusty-security InRelease
  
Err http://security.ubuntu.com trusty-security Release.gpg
  Cannot initiate the connection to security.ubuntu.com:80 (2001:67c:1562::13). - connect (101: Network is unreachable) [IP: 2001:67c:1562::13 80]
Reading package lists... Done
W: Failed to fetch http://ppa.launchpad.net/linrunner/tlp/ubuntu/dists/trusty/InRelease  

W: Failed to fetch http://pkg-linuxmint.hnsdc.com/dists/qiana/InRelease  

W: Failed to fetch http://extra.linuxmint.com/dists/qiana/InRelease  

W: Failed to fetch http://mirror.cse.iitk.ac.in/ubuntu/dists/trusty/InRelease  

W: Failed to fetch http://mirror.cse.iitk.ac.in/ubuntu/dists/trusty-updates/InRelease  

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/trusty-security/InRelease  

W: Failed to fetch http://archive.canonical.com/ubuntu/dists/trusty/InRelease  

W: Failed to fetch http://pkg-linuxmint.hnsdc.com/dists/qiana/Release.gpg  Cannot initiate the connection to pkg-linuxmint.hnsdc.com:80 (2401:4800:2121:c0:ff:ee:ee:2). - connect (101: Network is unreachable) [IP: 2401:4800:2121:c0:ff:ee:ee:2 80]

W: Failed to fetch cdrom://Linux Mint 17 _Qiana_ - Release amd64 20140624/dists/trusty/contrib/binary-amd64/Packages  Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs

W: Failed to fetch cdrom://Linux Mint 17 _Qiana_ - Release amd64 20140624/dists/trusty/main/binary-amd64/Packages  Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs

W: Failed to fetch cdrom://Linux Mint 17 _Qiana_ - Release amd64 20140624/dists/trusty/non-free/binary-amd64/Packages  Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs

W: Failed to fetch cdrom://Linux Mint 17 _Qiana_ - Release amd64 20140624/dists/trusty/contrib/binary-i386/Packages  Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs

W: Failed to fetch cdrom://Linux Mint 17 _Qiana_ - Release amd64 20140624/dists/trusty/main/binary-i386/Packages  Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs

W: Failed to fetch cdrom://Linux Mint 17 _Qiana_ - Release amd64 20140624/dists/trusty/non-free/binary-i386/Packages  Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs

W: Failed to fetch http://archive.canonical.com/ubuntu/dists/trusty/Release.gpg  Cannot initiate the connection to archive.canonical.com:80 (2001:67c:1360:8c01::1b). - connect (101: Network is unreachable) [IP: 2001:67c:1360:8c01::1b 80]

W: Failed to fetch http://mirror.cse.iitk.ac.in/ubuntu/dists/trusty/Release.gpg  Unable to connect to mirror.cse.iitk.ac.in:http:

W: Failed to fetch http://mirror.cse.iitk.ac.in/ubuntu/dists/trusty-updates/Release.gpg  Unable to connect to mirror.cse.iitk.ac.in:http:

W: Failed to fetch http://extra.linuxmint.com/dists/qiana/Release.gpg  Unable to connect to extra.linuxmint.com:http:

W: Failed to fetch http://ppa.launchpad.net/linrunner/tlp/ubuntu/dists/trusty/Release.gpg  Unable to connect to ppa.launchpad.net:http:

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/trusty-security/Release.gpg  Cannot initiate the connection to security.ubuntu.com:80 (2001:67c:1562::13). - connect (101: Network is unreachable) [IP: 2001:67c:1562::13 80]

W: Some index files failed to download. They have been ignored, or old ones used instead.

Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
jahid

Re: Can't update under proxy

Post by jahid »

Try this:

Code: Select all

sudo -E apt-get update
Amith Kumar U R

Re: Can't update under proxy

Post by Amith Kumar U R »

Thanks for the reply Jahid.
sudo -E apt-get update worked :) . But, Stille in the end I have some warnings like "W: Failed to fetch cdrom.." I am just wondering why it's giving such warnings.

I am getting this

Code: Select all

amith@amith-comp ~ $ sudo -E apt-get update
[sudo] password for amith: 
Ign cdrom://Linux Mint 17 _Qiana_ - Release amd64 20140624 trusty InRelease
Ign cdrom://Linux Mint 17 _Qiana_ - Release amd64 20140624 trusty Release.gpg  
Ign cdrom://Linux Mint 17 _Qiana_ - Release amd64 20140624 trusty Release      
Err cdrom://Linux Mint 17 _Qiana_ - Release amd64 20140624 trusty/contrib amd64 Packages
  Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
Err cdrom://Linux Mint 17 _Qiana_ - Release amd64 20140624 trusty/main amd64 Packages
  Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
Err cdrom://Linux Mint 17 _Qiana_ - Release amd64 20140624 trusty/non-free amd64 Packages
  Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
Err cdrom://Linux Mint 17 _Qiana_ - Release amd64 20140624 trusty/contrib i386 Packages
  Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
Err cdrom://Linux Mint 17 _Qiana_ - Release amd64 20140624 trusty/main i386 Packages
  Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
Err cdrom://Linux Mint 17 _Qiana_ - Release amd64 20140624 trusty/non-free i386 Packages
  Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
Ign cdrom://Linux Mint 17 _Qiana_ - Release amd64 20140624 trusty/contrib Translation-en_IN
Ign cdrom://Linux Mint 17 _Qiana_ - Release amd64 20140624 trusty/contrib Translation-en
Ign cdrom://Linux Mint 17 _Qiana_ - Release amd64 20140624 trusty/main Translation-en_IN
Ign cdrom://Linux Mint 17 _Qiana_ - Release amd64 20140624 trusty/main Translation-en
Ign cdrom://Linux Mint 17 _Qiana_ - Release amd64 20140624 trusty/non-free Translation-en_IN
Ign cdrom://Linux Mint 17 _Qiana_ - Release amd64 20140624 trusty/non-free Translation-en
Ign http://pkg-linuxmint.hnsdc.com qiana InRelease                             
Ign http://mirror.cse.iitk.ac.in trusty InRelease                              
Hit http://pkg-linuxmint.hnsdc.com qiana Release.gpg                           
Ign http://mirror.cse.iitk.ac.in trusty-updates InRelease                      
Ign http://security.ubuntu.com trusty-security InRelease                       
Hit http://pkg-linuxmint.hnsdc.com qiana Release                               
Ign http://ppa.launchpad.net trusty InRelease                                  
Ign http://archive.canonical.com trusty InRelease                              
Get:1 http://mirror.cse.iitk.ac.in trusty Release.gpg [933 B]                  
Ign http://extra.linuxmint.com qiana InRelease                                 
Get:2 http://mirror.cse.iitk.ac.in trusty-updates Release.gpg [933 B]          
Hit http://pkg-linuxmint.hnsdc.com qiana/main amd64 Packages                   
Ign http://ppa.launchpad.net trusty InRelease                                  
Hit http://archive.canonical.com trusty Release.gpg                            
Get:3 http://security.ubuntu.com trusty-security Release.gpg [933 B]           
Hit http://pkg-linuxmint.hnsdc.com qiana/upstream amd64 Packages               
Get:4 http://mirror.cse.iitk.ac.in trusty Release [58.5 kB]                    
Hit http://pkg-linuxmint.hnsdc.com qiana/import amd64 Packages                 
Hit http://pkg-linuxmint.hnsdc.com qiana/main i386 Packages                    
Hit http://pkg-linuxmint.hnsdc.com qiana/upstream i386 Packages                
Hit http://ppa.launchpad.net trusty Release.gpg                                
Hit http://archive.canonical.com trusty Release                                
Get:5 http://security.ubuntu.com trusty-security Release [59.7 kB]             
Hit http://pkg-linuxmint.hnsdc.com qiana/import i386 Packages                  
Get:6 http://extra.linuxmint.com qiana Release.gpg [198 B]                     
Get:7 http://mirror.cse.iitk.ac.in trusty-updates Release [59.7 kB]            
Ign http://ppa.launchpad.net trusty Release.gpg                                
Hit http://archive.canonical.com trusty/partner amd64 Packages                 
Get:8 http://extra.linuxmint.com qiana Release [3,144 B]                       
Hit http://ppa.launchpad.net trusty Release                                    
Hit http://archive.canonical.com trusty/partner i386 Packages                  
Get:9 http://mirror.cse.iitk.ac.in trusty/main amd64 Packages [1,350 kB]       
Get:10 http://security.ubuntu.com trusty-security/main amd64 Packages [135 kB] 
Ign http://ppa.launchpad.net trusty Release                                    
Get:11 http://extra.linuxmint.com qiana/main amd64 Packages [7,904 B]          
Hit http://ppa.launchpad.net trusty/main Sources                               
Hit http://ppa.launchpad.net trusty/main amd64 Packages                        
Get:12 http://extra.linuxmint.com qiana/main i386 Packages [7,888 B]           
Hit http://ppa.launchpad.net trusty/main i386 Packages                         
Get:13 http://mirror.cse.iitk.ac.in trusty/restricted amd64 Packages [13.0 kB] 
Get:14 http://mirror.cse.iitk.ac.in trusty/universe amd64 Packages [5,859 kB]  
Get:15 http://security.ubuntu.com trusty-security/restricted amd64 Packages [14 B]
Get:16 http://security.ubuntu.com trusty-security/universe amd64 Packages [47.0 kB]
Ign http://pkg-linuxmint.hnsdc.com qiana/import Translation-en_IN              
Ign http://pkg-linuxmint.hnsdc.com qiana/import Translation-en                 
Ign http://pkg-linuxmint.hnsdc.com qiana/main Translation-en_IN                
Ign http://pkg-linuxmint.hnsdc.com qiana/main Translation-en                   
Ign http://pkg-linuxmint.hnsdc.com qiana/upstream Translation-en_IN            
Ign http://pkg-linuxmint.hnsdc.com qiana/upstream Translation-en               
Get:17 http://security.ubuntu.com trusty-security/multiverse amd64 Packages [1,154 B]
Get:18 http://security.ubuntu.com trusty-security/main i386 Packages [130 kB]  
Ign http://archive.canonical.com trusty/partner Translation-en_IN              
Ign http://archive.canonical.com trusty/partner Translation-en                 
Get:19 http://security.ubuntu.com trusty-security/restricted i386 Packages [14 B]
Get:20 http://security.ubuntu.com trusty-security/universe i386 Packages [46.9 kB]
Get:21 http://mirror.cse.iitk.ac.in trusty/multiverse amd64 Packages [132 kB]  
Get:22 http://security.ubuntu.com trusty-security/multiverse i386 Packages [1,398 B]
Get:23 http://mirror.cse.iitk.ac.in trusty/main i386 Packages [1,348 kB]       
Hit http://security.ubuntu.com trusty-security/main Translation-en             
Hit http://security.ubuntu.com trusty-security/multiverse Translation-en       
Hit http://security.ubuntu.com trusty-security/restricted Translation-en       
Ign http://extra.linuxmint.com qiana/main Translation-en_IN                    
Get:24 http://mirror.cse.iitk.ac.in trusty/restricted i386 Packages [13.4 kB]  
Hit http://security.ubuntu.com trusty-security/universe Translation-en         
Get:25 http://mirror.cse.iitk.ac.in trusty/universe i386 Packages [5,866 kB]   
Ign http://extra.linuxmint.com qiana/main Translation-en                       
Ign http://ppa.launchpad.net trusty/main Translation-en_IN                     
Ign http://ppa.launchpad.net trusty/main Translation-en                        
Err http://ppa.launchpad.net trusty/main Sources                               
  404  Not Found [IP: 10.16.40.11 3128]
Err http://ppa.launchpad.net trusty/main amd64 Packages                        
  404  Not Found [IP: 10.16.40.11 3128]
Err http://ppa.launchpad.net trusty/main i386 Packages                         
  404  Not Found [IP: 10.16.40.11 3128]
Ign http://ppa.launchpad.net trusty/main Translation-en_IN                     
Ign http://ppa.launchpad.net trusty/main Translation-en                        
Get:26 http://mirror.cse.iitk.ac.in trusty/multiverse i386 Packages [134 kB]   
Get:27 http://mirror.cse.iitk.ac.in trusty/main Translation-en [762 kB]        
Get:28 http://mirror.cse.iitk.ac.in trusty/multiverse Translation-en [102 kB]  
Get:29 http://mirror.cse.iitk.ac.in trusty/restricted Translation-en [3,457 B] 
Get:30 http://mirror.cse.iitk.ac.in trusty/universe Translation-en [4,089 kB]  
Get:31 http://mirror.cse.iitk.ac.in trusty-updates/main amd64 Packages [306 kB]
Get:32 http://mirror.cse.iitk.ac.in trusty-updates/restricted amd64 Packages [5,820 B]
Get:33 http://mirror.cse.iitk.ac.in trusty-updates/universe amd64 Packages [190 kB]
Get:34 http://mirror.cse.iitk.ac.in trusty-updates/multiverse amd64 Packages [8,221 B]
Get:35 http://mirror.cse.iitk.ac.in trusty-updates/main i386 Packages [299 kB] 
Get:36 http://mirror.cse.iitk.ac.in trusty-updates/restricted i386 Packages [5,820 B]
Get:37 http://mirror.cse.iitk.ac.in trusty-updates/universe i386 Packages [191 kB]
Get:38 http://mirror.cse.iitk.ac.in trusty-updates/multiverse i386 Packages [8,437 B]
Get:39 http://mirror.cse.iitk.ac.in trusty-updates/main Translation-en [135 kB]
Get:40 http://mirror.cse.iitk.ac.in trusty-updates/multiverse Translation-en [4,599 B]
Get:41 http://mirror.cse.iitk.ac.in trusty-updates/restricted Translation-en [1,736 B]
Get:42 http://mirror.cse.iitk.ac.in trusty-updates/universe Translation-en [93.5 kB]
Ign http://mirror.cse.iitk.ac.in trusty/main Translation-en_IN                 
Ign http://mirror.cse.iitk.ac.in trusty/multiverse Translation-en_IN           
Ign http://mirror.cse.iitk.ac.in trusty/restricted Translation-en_IN           
Ign http://mirror.cse.iitk.ac.in trusty/universe Translation-en_IN             
Fetched 21.5 MB in 30s (716 kB/s)                                              
W: Failed to fetch cdrom://Linux Mint 17 _Qiana_ - Release amd64 20140624/dists/trusty/contrib/binary-amd64/Packages  Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs

W: Failed to fetch cdrom://Linux Mint 17 _Qiana_ - Release amd64 20140624/dists/trusty/main/binary-amd64/Packages  Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs

W: Failed to fetch cdrom://Linux Mint 17 _Qiana_ - Release amd64 20140624/dists/trusty/non-free/binary-amd64/Packages  Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs

W: Failed to fetch cdrom://Linux Mint 17 _Qiana_ - Release amd64 20140624/dists/trusty/contrib/binary-i386/Packages  Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs

W: Failed to fetch cdrom://Linux Mint 17 _Qiana_ - Release amd64 20140624/dists/trusty/main/binary-i386/Packages  Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs

W: Failed to fetch cdrom://Linux Mint 17 _Qiana_ - Release amd64 20140624/dists/trusty/non-free/binary-i386/Packages  Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs

W: Failed to fetch http://ppa.launchpad.net/openshot.developers/ppa/ubuntu/dists/trusty/main/source/Sources  404  Not Found [IP: 10.16.40.11 3128]

W: Failed to fetch http://ppa.launchpad.net/openshot.developers/ppa/ubuntu/dists/trusty/main/binary-amd64/Packages  404  Not Found [IP: 10.16.40.11 3128]

W: Failed to fetch http://ppa.launchpad.net/openshot.developers/ppa/ubuntu/dists/trusty/main/binary-i386/Packages  404  Not Found [IP: 10.16.40.11 3128]

E: Some index files failed to download. They have been ignored, or old ones used instead.
jahid

Re: [SOLVED] Can't update under proxy

Post by jahid »

Code: Select all

gksudo gedit /etc/apt/sources.list
put a # before the line that says cdrom..something and save the file

If that doesn't solve your problem then post the output of the following command here:

Code: Select all

inxi -r
Amith Kumar U R

Re: [SOLVED] Can't update under proxy

Post by Amith Kumar U R »

put a # before the line that says cdrom..something and save the file
Yeah, commenting the line that says cdrom has done the job. Thank you very much Jahid :) .
Antoni80

Re: [SOLVED] Can't update under proxy

Post by Antoni80 »

Hi. I did try all advice from this page but still nothing.
Repos: Active apt sources in file: /etc/apt/sources.list
deb cdrom:[Linux Mint 17 _Qiana_ - Release amd64 20140624]/ trusty contrib main non-free
Active apt sources in file: /etc/apt/sources.list.d/removed.list
deb http://archive.removed/ubuntu trusty-removed apps
Active apt sources in file: /etc/apt/sources.list.d/google-chrome.list
deb http://dl.google.com/linux/chrome/deb/ stable main
Active apt sources in file: /etc/apt/sources.list.d/official-package-repositories.list
deb http://packages.linuxmint.com qiana main upstream import
deb http://extra.linuxmint.com qiana main
deb http://archive.ubuntu.com/ubuntu trusty main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu trusty-updates main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu/ trusty-security main restricted universe multiverse
deb http://archive.canonical.com/ubuntu/ trusty partner
Active apt sources in file: /etc/apt/sources.list.d/steam.list
deb [arch=amd64,i386] http://repo.steampowered.com/steam/ precise steam
deb-src [arch=amd64,i386] http://repo.steampowered.com/steam/ precise steam
Please help
Locked

Return to “Beginner Questions”