How to update packages behind proxy?

All Gurus once were Newbies
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. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read this

How to update packages behind proxy?

Postby tendua on Fri May 04, 2012 11:53 am

I'm having Linux Mint Debian GNOME 64-bit rolling release installed freshly. When I tried the command
Code: Select all
sudo apt-get update
I got the following error
Code: Select all
Err http://ftp.debian.org testing InRelease                                                                                           
 
Err http://security.debian.org testing/updates InRelease                                                                             
 
Err http://www.debian-multimedia.org testing InRelease                                                                 
 
Err http://packages.linuxmint.com debian InRelease                                                                     
 
Err http://ftp.debian.org testing Release.gpg
  Could not resolve 'ftp.debian.org'
Err http://packages.linuxmint.com debian Release.gpg
  Could not resolve 'packages.linuxmint.com'
Err http://security.debian.org testing/updates Release.gpg
  Could not resolve 'security.debian.org'
Err http://www.debian-multimedia.org testing Release.gpg
  Could not resolve 'www.debian-multimedia.org'
Reading package lists... Done
W: Failed to fetch http://packages.linuxmint.com/dists/debian/InRelease 

W: Failed to fetch http://ftp.debian.org/debian/dists/testing/InRelease 

W: Failed to fetch http://security.debian.org/dists/testing/updates/InRelease 

W: Failed to fetch http://www.debian-multimedia.org/dists/testing/InRelease 

W: Failed to fetch http://ftp.debian.org/debian/dists/testing/Release.gpg  Could not resolve 'ftp.debian.org'

W: Failed to fetch http://security.debian.org/dists/testing/updates/Release.gpg  Could not resolve 'security.debian.org'

W: Failed to fetch http://www.debian-multimedia.org/dists/testing/Release.gpg  Could not resolve 'www.debian-multimedia.org'

W: Failed to fetch http://packages.linuxmint.com/dists/debian/Release.gpg  Could not resolve 'packages.linuxmint.com'

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

I'm behind a proxy server which uses authentication. I tried
Code: Select all
tendua@blackpearl:~$ echo $http_proxy
http://X:Y@172.31.1.6:8080/

Here X is my username and Y is password for the proxy server. System specifications are
Code: Select all
LinuxMint
Release 1 (debian)
Kernel Linux 2.6.32-5-amd64
GNOME 2.30.2
Processor: Intel core 2 duo T5870


I've also used synaptic manager but it says about broken dependencies and didn't works. My network connection in up and running fine. I've tried a lot of thing after googling the same topic but none of the tricks worked.
Last edited by xenopeek on Fri May 04, 2012 12:11 pm, edited 1 time in total.
Reason: Narrowed down subject
tendua
Level 1
Level 1
 
Posts: 8
Joined: Sat Nov 05, 2011 7:21 am

Linux Mint is funded by ads and donations.
 

Re: Linux mint Debian packages not updating

Postby xenopeek on Fri May 04, 2012 12:10 pm

Moved here by moderator
Image
Linux Mint 14 Nadia / 64-bit / Cinnamon
User avatar
xenopeek
Level 20
Level 20
 
Posts: 10493
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands

Re: How to update packages behind proxy?

Postby zerozero on Fri May 04, 2012 12:19 pm

i'm not familiar with proxies but a google search for "debian apt behind a proxy" brought a few hints that i believe can be useful, like
http://www.linuxquestions.org/questions ... ion-67821/
http://askubuntu.com/questions/38823/ho ... nd-a-proxy (it's for ubuntu but the principle should be the same)
http://fir3net.com/Debian-/-Ubuntu/how- ... proxy.html
as i said those are just some random examples, i have no real idea which ones might work.

second thing, from this
Code: Select all
LinuxMint
Release 1 (debian)
Kernel Linux 2.6.32-5-amd64
GNOME 2.30.2
Processor: Intel core 2 duo T5870
i can see that the iso you are using is an old one, if and when you get that proxy issue sorted you gonna be faced with a major breakage updating the system: that iso is outdated and broken, please d/l one of the new respins from
http://blog.linuxmint.com/?p=1979
User avatar
zerozero
Level 16
Level 16
 
Posts: 6302
Joined: Tue Jul 07, 2009 2:29 pm

Re: How to update packages behind proxy?

Postby hinto on Fri May 04, 2012 12:30 pm

From: https://help.ubuntu.com/community/AptGet/Howto
APT configuration file method

This method uses the apt.conf file which is found in your /etc/apt/ directory. This method is useful if you only want apt-get (and not other applications) to use a http-proxy permanently.

On some installations there will be no apt-conf file set up. This procedure will either edit an existing apt-conf file or create a new apt-conf file.

gksudo gedit /etc/apt/apt.conf

Add this line to your /etc/apt/apt.conf file (substitute your details for yourproxyaddress and proxyport).

Acquire::http::Proxy "http://yourproxyaddress:proxyport";
What brought me to Debian was one-stop shopping.
What brought me to SID was apt-get update && apt-get dist-upgrade.
User avatar
hinto
Level 6
Level 6
 
Posts: 1118
Joined: Thu Jul 09, 2009 7:32 pm
Location: Cary NC, USA

Re: How to update packages behind proxy?

Postby tendua on Fri May 04, 2012 12:35 pm

@zerozero: yes you seems to be absolutely correct. From the last two hours I've tried a lot of ways and almost all ends up with error message "unresolvable package dependencies". Actually I wanted the GNOME desktop so I decided to install this old iso. Default desktop is Mate in latest debian but I wanted GNOME. What should I do next after the installing MATE desktop?
tendua
Level 1
Level 1
 
Posts: 8
Joined: Sat Nov 05, 2011 7:21 am

Re: How to update packages behind proxy?

Postby zerozero on Fri May 04, 2012 12:41 pm

tendua, mate is gnome2 forked and renamed (so it can be installable at the same time as gnome3, otherwise they would conflict),
so (just my opinion, but i use mate on and off) if you want the gnome2 desktop try mate (i would say that is very hard to see the difference regarding gnome2)
User avatar
zerozero
Level 16
Level 16
 
Posts: 6302
Joined: Tue Jul 07, 2009 2:29 pm

Re: How to update packages behind proxy?

Postby tendua on Fri May 04, 2012 12:43 pm

@hinto: I've tried other Linux mint version which are ubuntu based. This method works fine for them but this is debian based edition and it didn't have apt.conf file in apt directory. It is having apt-file.conf instead and when I opened this file I couldn't understand how to use authentication scheme in this.
tendua
Level 1
Level 1
 
Posts: 8
Joined: Sat Nov 05, 2011 7:21 am

Re: How to update packages behind proxy?

Postby hinto on Fri May 04, 2012 12:46 pm

^apt.conf is not Ubuntu, it's Debian (or Ubuntu). It works, I use it.
It (the doc) also says if there's not one there, this will create it.
I use this because I typically do not set an environment variable for a proxy. I set it explicitly per application. (call me conservative)
-Hinto
What brought me to Debian was one-stop shopping.
What brought me to SID was apt-get update && apt-get dist-upgrade.
User avatar
hinto
Level 6
Level 6
 
Posts: 1118
Joined: Thu Jul 09, 2009 7:32 pm
Location: Cary NC, USA

Re: How to update packages behind proxy?

Postby tendua on Fri May 04, 2012 12:48 pm

@zerozero: yes GNOME 2 and MATE are very similar in looks. I want GNOME 3. Please tell me what I should I do in order to get gnome 3 after installing MATE.
tendua
Level 1
Level 1
 
Posts: 8
Joined: Sat Nov 05, 2011 7:21 am

Re: How to update packages behind proxy?

Postby zerozero on Fri May 04, 2012 1:00 pm

oh sorry, i misread your post :oops:
the new isos already bring cinnamon (the gnome-shell fork dev. by mint) so in order to have the shell as well you just have to do an
Code: Select all
apt install gnome-shell gnome-tweak-tool gnome-shell-extensions
and be happy :lol:
sorry for the confusion again (the thing is we have so many people asking how to get gnome2 back that in some way the eyes are formatted that way :lol: )
User avatar
zerozero
Level 16
Level 16
 
Posts: 6302
Joined: Tue Jul 07, 2009 2:29 pm

Re: How to update packages behind proxy?

Postby tendua on Fri May 04, 2012 2:58 pm

@zerozero: I tried installing this new version Linux Mint "Debian" - 201204 MATE/Cinnamon 64-bit but in the middle of installation it stops throwing this error message
Code: Select all
Base filesystem does not exist! Critical error (exiting).


I tried googling this but none of thing works. What could be done to avoid this. I'm using the iso as on live usb.
tendua
Level 1
Level 1
 
Posts: 8
Joined: Sat Nov 05, 2011 7:21 am

Re: How to update packages behind proxy?

Postby zerozero on Fri May 04, 2012 3:32 pm

i can only think of a few options here (and probably you already covered those)
- is the d/l good? md5 checked?
- what tool you used to create the live-iso? in previous ed. the only that was 100% compatible was unetbootin (don't ask me why, but all the others would end up in some kind of strange error)
- is that usb capable of live-booting (i vaguely remember one brand that had issues when one tried to make a live-iso out of it >> of course now i can't find any reference to this :lol: )
- can you boot from dvd? have you tried it? (after checking the d/l and the burn integrity)
User avatar
zerozero
Level 16
Level 16
 
Posts: 6302
Joined: Tue Jul 07, 2009 2:29 pm

Re: How to update packages behind proxy?

Postby tendua on Sat May 05, 2012 12:46 am

-yes, the md5sum is correct.
- I used YUMI installer which is window based. I used this because I've created successfully other live usb from it all of them worked fine.
-Yes, usb is HP v155w which is capable of live-booting as I've installed other OS with same pendrive on other systems.
-I can't try using CD or DVD as it's non-functional in my system :( usb live-booting is only option to me.

By the way, I've installed Mint 12 64-bit GNOME main edition created on the same pendrive with same YUMI tool and it's working fine. :)
tendua
Level 1
Level 1
 
Posts: 8
Joined: Sat Nov 05, 2011 7:21 am

Re: How to update packages behind proxy?

Postby zerozero on Sat May 05, 2012 5:52 am

:) good to know that lisa (mint 12) is working for you;
User avatar
zerozero
Level 16
Level 16
 
Posts: 6302
Joined: Tue Jul 07, 2009 2:29 pm

Linux Mint is funded by ads and donations.
 

Return to Newbie Questions

Who is online

Users browsing this forum: No registered users and 6 guests