LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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
  Search this Thread
Old 06-12-2008, 12:17 AM   #1
KrazyStuntRR
LQ Newbie
 
Registered: Jun 2008
Distribution: Fedora 9
Posts: 15

Rep: Reputation: 0
Yum Update Error Fedora Core 9


I won't hesitate to say i'm a total newb when it comes to Linux
but got severely sick of win$hit so have resorted and converted
I recently just got YUM installed and when I type " yum update "
I get the following

Unable to find pid
Gathering header information file(s) from server(s)
Server: Red Hat Linux 9 - i386 - Base
Traceback (most recent call last):
File "/usr/bin/yum", line 30, in <module>
yummain.main(sys.argv[1:])
File "/usr/share/yum/yummain.py", line 233, in main
clientStuff.get_package_info_from_servers(serverlist, HeaderInfo)
File "/usr/share/yum/clientStuff.py", line 846, in get_package_info_from_servers
progress_obj=None)
File "/usr/share/yum/clientStuff.py", line 1327, in grab
bandwidth, conf.retries, retrycodes, checkfunc)
File "/usr/share/yum/urlgrabber.py", line 237, in retrygrab
progress_obj, throttle, bandwidth)
File "/usr/share/yum/urlgrabber.py", line 314, in urlgrab
fo = urllib2.urlopen(url)
File "/usr/lib/python2.5/urllib2.py", line 121, in urlopen
return _opener.open(url, data)
File "/usr/lib/python2.5/urllib2.py", line 380, in open
response = meth(req, response)
File "/usr/lib/python2.5/urllib2.py", line 487, in http_response
code, msg, hdrs = response.code, response.msg, response.info()
AttributeError: HTTPResponse instance has no attribute 'code'

Any help would be greatly appreciated!
 
Old 06-12-2008, 12:27 AM   #2
jpwigan
LQ Newbie
 
Registered: Jun 2008
Distribution: RHEL, Fedora, Gentoo, Slackware
Posts: 27

Rep: Reputation: 16
From your output you posted, you're running Red Hat Linux 9, not Fedora 9 (it's been "Fedora" since 7, by the way, not "Fedora Core". Just a friendly FYI). Red Hat Linux 9 has been End of Life since 2004, which means no new updates, and no new package installs. Yum was never meant to run on RHL 9, either.

The version number reset at RHL 9 because Red Hat forked RHL into two different distributions: "Fedora Core" (later Fedora) for the Linux community and "Red Hat Enterprise Linux" for the Enterprise world. We're now at Red Hat Enterprise Linux 5 and Fedora 9.

To double-check that you're running the wrong version, run this command:

cat /etc/redhat-release

If it says something like:

Red Hat Linux release 9 (Shrike)

then you're running the very old, no longer supported RHL 9. Your best bet would be to install Fedora 9, available from fedoraproject.org. On the other hand, if it says:

Fedora release 9 (Sulphur)

you are running Fedora 9, and the problem remains unresolved.
 
Old 06-12-2008, 12:31 AM   #3
KrazyStuntRR
LQ Newbie
 
Registered: Jun 2008
Distribution: Fedora 9
Posts: 15

Original Poster
Rep: Reputation: 0
after running the command you had asked me to run it gives me the following

Fedora release 9 (Sulphur)

do i have yum installed wrong?
 
Old 06-12-2008, 12:35 AM   #4
jpwigan
LQ Newbie
 
Registered: Jun 2008
Distribution: RHEL, Fedora, Gentoo, Slackware
Posts: 27

Rep: Reputation: 16
Huh... maybe. Was yum not installed automatically? It should be installed by default on Fedora 9.

Post the output of these commands:

rpm -q yum
cat /etc/yum.conf
ls -1 /etc/yum.repos.d/

Note that's a 1 (numeral one) in the last command.
 
Old 06-12-2008, 12:40 AM   #5
KrazyStuntRR
LQ Newbie
 
Registered: Jun 2008
Distribution: Fedora 9
Posts: 15

Original Poster
Rep: Reputation: 0
rpm -q yum
yum-3.2.16-2.fc9.noarch

cat /etc/yum.conf
[main]
cachedir=/var/cache/yum
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=redhat-release
tolerant=1
exactarch=1

[base]
name=Red Hat Linux $releasever - $basearch - Base
baseurl=http://mirror.dulug.duke.edu/pub/yum-repository/redhat/$releasever/$basearch/


[updates]
name=Red Hat Linux $releasever - Updates
baseurl=http://mirror.dulug.duke.edu/pub/yum-repository/redhat/updates/$releasever/

ls -1 /etc/yum.repos.d/
fedora-rawhide.repo
fedora.repo
fedora-updates.repo
fedora-updates-testing.repo
livna-devel.repo
livna.repo
livna-testing.repo
 
Old 06-12-2008, 01:08 AM   #6
jpwigan
LQ Newbie
 
Registered: Jun 2008
Distribution: RHEL, Fedora, Gentoo, Slackware
Posts: 27

Rep: Reputation: 16
These lines in yum.conf seem suspect, since it's the repo that yum is breaking on:

[base]
name=Red Hat Linux $releasever - $basearch - Base
baseurl=http://mirror.dulug.duke.edu/pub/yum-repository/redhat/$releasever/$basearch/


[updates]
name=Red Hat Linux $releasever - Updates
baseurl=http://mirror.dulug.duke.edu/pub/yum-repository/redhat/updates/$releasever/

Also, you've overridden the default '[updates]' repo here. Try changing those lines to:

#[base]
#name=Red Hat Linux $releasever - $basearch - Base
#baseurl=http://mirror.dulug.duke.edu/pub/yum-repository/redhat/$releasever/$basearch/


#[updates]
#name=Red Hat Linux $releasever - Updates
#baseurl=http://mirror.dulug.duke.edu/pub/yum-repository/redhat/updates/$releasever/

(i.e., comment them out) and see if yum works.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't update with yum on Fedora Core 5 tron_thomas Linux - Software 8 07-11-2007 11:33 PM
problem with yum update in fedora core 6 me4linux Linux - Software 1 03-10-2007 02:38 PM
Fedora Core 6 Yum Update Error jwheel83 Fedora 2 01-24-2007 08:18 PM
Can't update with yum on Fedora Core 5 tron_thomas Linux - Software 2 05-12-2006 12:16 AM
Yum update site for Fedora Core 2 raynet Fedora 4 02-14-2005 01:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 06:24 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration