Fedora Linux Support Community & Resources Center
  #1  
Old 1st January 2008, 05:51 AM
duncanr Offline
Registered User
 
Join Date: Jan 2008
Posts: 2
YUM failing in Fedora 7 - 2 machines

I have been having issues with YUM on two FC7 boxes. It fails during the loading of the primary.sqlite.bz2 files but it is not a consistent repository that causes the issue.

I tried: Change the kernel, disable http_caching, yum clean all, yum clean metadata

Sometimes (very rare) it works but will fail the next time it is run.

The first box is running kernel 2.6.23.1-21.fc7 and yum-3.2.8-2.fc7. It has a number of additional respositories. I have tried disabling them and also removing their config files.
Box two is running kernel 2.6.21-1.3194-FC7 and yum-3.2.0-1.fc7. This just has the standard repos.

Here is the output from the first machine.

[root@media1 ~]# yum update
Loading "kmdl" plugin
dries 100% |=========================| 951 B 00:00
fedora 100% |=========================| 2.1 kB 00:00
primary.sqlite.bz2 100% |=========================| 3.8 MB 00:15
atrpms-in 100% |=========================| 951 B 00:00
updates 100% |=========================| 2.3 kB 00:00
primary.sqlite.bz2 100% |=========================| 2.2 MB 00:07
Traceback (most recent call last):
File "/usr/bin/yum", line 29, in <module>
yummain.main(sys.argv[1:])
File "/usr/share/yum-cli/yummain.py", line 105, in main
result, resultmsgs = base.doCommands()
File "/usr/share/yum-cli/cli.py", line 287, in doCommands
self._getTs()
File "/usr/lib/python2.5/site-packages/yum/depsolve.py", line 85, in _getTs
self._getTsInfo()
File "/usr/lib/python2.5/site-packages/yum/depsolve.py", line 91, in _getTsInfo
self._tsInfo.setDatabases(self.rpmdb, self.pkgSack)
File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 529, in <lambda>
pkgSack = property(fget=lambda self: self._getSacks(),
File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 388, in _getSacks
self._pkgSack.excludeArchs(archlist)
File "/usr/lib/python2.5/site-packages/yum/packageSack.py", line 352, in excludeArchs
sack.excludeArchs(archlist)
File "/usr/lib/python2.5/site-packages/yum/sqlitesack.py", line 815, in excludeArchs
cur = cache.cursor()
AttributeError: 'NoneType' object has no attribute 'cursor'

The other machine looks much the same but with different line numbers.
Reply With Quote
  #2  
Old 4th January 2008, 02:47 AM
Jman Offline
Registered User
 
Join Date: Mar 2004
Location: Minnesota, USA
Age: 31
Posts: 7,909
On that run you still have 3rd party repositories, namely dries and atrpms.

What is your repository configuration, did you edit it? Can you verify your yum install?
Reply With Quote
  #3  
Old 4th January 2008, 03:26 AM
duncanr Offline
Registered User
 
Join Date: Jan 2008
Posts: 2
I have verified the install by "rpm -ev yum" then "rpm -iv yum-3.2.8-2.fc7.noarch.rpm" (not sure if this is the best way). I tested with the default conf files then put my ones back. Still the same issue.

I updated to 3.2.8.2 due to an issue with kernel models and had two sucessful updates with the new version without any issue. I made no changes to the config files and the problem started. I have the same issue on a standard FC7 dvd install and have since updated that to 3.2.8.2 and this system shows the same issue.

[dries]
name=Extra Fedora rpms dries - $releasever - $basearch
baseurl=ftp://mirror.pacific.net.au/linux/freshrpms/dag/dries/fedora/fc7/i386/RPMS.dries/
enabled=1
gpgcheck=1

[atrpms]
name=ATrpms for Fedora Core $releasever - $basearch
baseurl=http://dl.atrpms.net/f$releasever-$basearch/atrpms/stable
enabled=0
gpgcheck=1
gpgkey=http://ATrpms.net/RPM-GPG-KEY.atrpms

[atrpms-testing]
name=ATrpms (testing) for Fedora Core $releasever - $basearch
baseurl=http://dl.atrpms.net/f$releasever-$basearch/atrpms/testing
enabled=1
gpgcheck=1
gpgkey=http://ATrpms.net/RPM-GPG-KEY.atrpms
Reply With Quote
Reply

Tags
failing, fedora, machines, yum

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Fedora as domain controller for win machines? hagen Using Fedora 8 1st October 2009 01:25 AM
How to Install Fedora on 150+ machines kkempter Installation, Upgrades and Live Media 3 6th August 2005 01:13 AM


Current GMT-time: 23:49 (Wednesday, 16-08-2017)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat