LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
LinkBack Search this Thread
Old 11-17-2004, 11:47 AM   #1
nickd63
LQ Newbie
 
Registered: Nov 2004
Location: Canada
Posts: 13

Rep: Reputation: 0
up2date fails


Fedora core 2

I am not sure why, but all of a sudden, I can not run up2date from behind our corporate firewall.

On that machine, I can browse the web and all however, when I try to run up2date, the message appears <urlopen Error (-2 "name or service not known)

Any pointers would be appreciated,

Nickd
 
Old 11-17-2004, 01:42 PM   #2
mtaylor57
Member
 
Registered: Jun 2004
Location: Houston
Distribution: Suse, Redhat
Posts: 48

Rep: Reputation: 15
Have you tried entering proxy server settings? I assume you're behind a corporate firewall, proxy server, etc...
 
Old 11-17-2004, 01:45 PM   #3
nickd63
LQ Newbie
 
Registered: Nov 2004
Location: Canada
Posts: 13

Original Poster
Rep: Reputation: 0
Question

Thanks for replying.

I am not sure I follow you. The proxy settings on up2date or somewhere else?

I have my proxy settings setup on my mozilla browser.
 
Old 11-17-2004, 08:38 PM   #4
twysm
Member
 
Registered: Jun 2004
Location: Lima - Perú
Distribution: Gentoo 2007.0
Posts: 78

Rep: Reputation: 15
I have the same problem but without any proxys. up2date simply gets stuck in the middle of the operation.
 
Old 11-18-2004, 05:48 PM   #5
Jmcatch742
Member
 
Registered: Jul 2004
Distribution: Mepis, Ubuntu, Slackity slack
Posts: 159

Rep: Reputation: 30
up2date is horrible use apt-get or yum or synaptic, it always freezes on me too.
 
Old 11-18-2004, 08:09 PM   #6
twysm
Member
 
Registered: Jun 2004
Location: Lima - Perú
Distribution: Gentoo 2007.0
Posts: 78

Rep: Reputation: 15
And how do I use that? please help me Im totally newbie

Last edited by twysm; 11-18-2004 at 08:18 PM.
 
Old 11-19-2004, 03:23 PM   #7
Jmcatch742
Member
 
Registered: Jul 2004
Distribution: Mepis, Ubuntu, Slackity slack
Posts: 159

Rep: Reputation: 30
Ok go here http://ftp.freshrpms.net/pub/freshrp...a/linux/2/apt/

and download the rpm for apt. Once its installed go to the terminal, get into root using su and type
"apt-get update" it will update every thing in apt, then type "apt-get install synaptic" it will download and install it. Then type "synaptic" and you will know what to do from there its real esy, best of wishes.
 
Old 11-22-2004, 06:56 AM   #8
nickd63
LQ Newbie
 
Registered: Nov 2004
Location: Canada
Posts: 13

Original Poster
Rep: Reputation: 0
Jmcatch,

when I try and rpm -i apt, it comes back with this:

warning: apt-0.5.15cnc6-1.1.fc2.fr.src.rpm: V3 DSA signature: NOKEY, key ID e42d547b
1:apt warning: user machbuild does not exist - using root
warning: group machbuild does not exist - using root
warning: user machbuild does not exist - using root
warning: group machbuild does not exist - using root
warning: user machbuild does not exist - using root
warning: group machbuild does not exist - using root
warning: user machbuild does not exist - using root
warning: group machbuild does not exist - using root
warning: user machbuild does not exist - using root
warning: group machbuild does not exist - using root
warning: user machbuild does not exist - using root
warning: group machbuild does not exist - using root
warning: user machbuild does not exist - using root
warning: group machbuild does not exist - using root
warning: user machbuild does not exist - using root
warning: group machbuild does not exist - using root
########################################### [100%]
warning: user machbuild does not exist - using root
warning: group machbuild does not exist - using root
warning: user machbuild does not exist - using root
warning: group machbuild does not exist - using root
warning: user machbuild does not exist - using root
warning: group machbuild does not exist - using root
 
Old 11-22-2004, 08:08 AM   #9
jolly1701
Member
 
Registered: Nov 2003
Location: England, UK.
Distribution: SuSE 10
Posts: 126

Rep: Reputation: 15
i have found that it is better with up2date if u only have 1 download site/mirrior ticked at a time
it will mean unticking the others each time but seems to work for me...
 
Old 11-22-2004, 08:11 AM   #10
nickd63
LQ Newbie
 
Registered: Nov 2004
Location: Canada
Posts: 13

Original Poster
Rep: Reputation: 0
tried that already and both fail.
 
Old 11-22-2004, 08:16 AM   #11
jolly1701
Member
 
Registered: Nov 2003
Location: England, UK.
Distribution: SuSE 10
Posts: 126

Rep: Reputation: 15
hmm...
it maybe worth trying synaptic & apt for the updates

try here for them

http://tinyurl.com/5jxkk
 
Old 06-14-2005, 02:10 PM   #12
slylock
LQ Newbie
 
Registered: May 2005
Posts: 7

Rep: Reputation: 0
I was able to get up2date working through my company firewall by fixing what seems like a bug in a python library script. The script is urllib.py. If you have your proxy environment variable set up in the standard way, it looks like this:

http_proxy=userassword@proxyserverortnum

The proxy string gets attached to the url and passed into the function open_http as one long string, and the script tries to break it apart, but it's schizophrenic about how it interprets it. The problem is that the url itself can have a login name and password, for example if you're going to a web site that requires you to log in, so there can be two login name/password pairs in the string: one for the proxy and one for the url itself. open_http thinks there is only one, and if it finds it, it treats it like the url login, even though the comments say it's the proxy login!

I fixed it by changing it to treat the name/password as the proxy name/password. In the process, I broke it for url's that require logging in, but I don't care, I'm just trying to get up2date to work.

To fix it, find the line in open_http that says
if realhost:
user_passwd, realhost = splituser(realhost)

realhost is the original url, but the proxy info is in host, so change the line to this...
if host:
user_passwd, host = splituser(host)

One more change. At the bottom of the function, where it's adding stuff to the http header, change this line...
if auth: h.putheader('Authorization'...

to this:
if auth: h.putheader('Proxy-authorization'...

After these simple changes, up2date works like a charm through the firewall.
 
Old 06-14-2005, 02:12 PM   #13
slylock
LQ Newbie
 
Registered: May 2005
Posts: 7

Rep: Reputation: 0
The proxy environment variable should be

http_proxy=user:password@proxyserver:portnum
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
fc3: up2date fails pcandpc Linux - General 5 10-15-2005 04:50 PM
centos 4: up2date update fails pcandpc Linux - General 3 08-17-2005 08:07 PM
RH up2date fails - librpm-4.2.so cannot open shared object file mightydawg Linux - Software 0 01-12-2005 12:56 AM
up2date fails because of SSL nyk Linux - Software 0 10-04-2004 06:14 PM
After lastest up2date NVIDIA suddenly fails ericcarlson Fedora 1 08-02-2004 09:51 AM


All times are GMT -5. The time now is 02:27 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration