FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > CentOS > CentOS

 
 
LinkBack Thread Tools
 
Old 07-02-2008, 02:53 PM
Scott Silva
 
Default Yum errors

I'm having a problem with a fairly new server.
Running yum upgrade I get the following:

Traceback (most recent call last):
File "/usr/bin/yum", line 29, in ?
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 289, in doCommands
self._getTs()
File "/usr/lib/python2.4/site-packages/yum/depsolve.py", line 85, in _getTs
self._getTsInfo()
File "/usr/lib/python2.4/site-packages/yum/depsolve.py", line 91, in _getTsInfo
self._tsInfo.setDatabases(self.rpmdb, self.pkgSack)
File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 537, in <lambda>
pkgSack = property(fget=lambda self: self._getSacks(),
File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 392, in _getSacks
self.repos.populateSack(which=repos)
File "/usr/lib/python2.4/site-packages/yum/repos.py", line 242, in populateSack
sack.populate(repo, mdtype, callback, cacheonly)
File "/usr/lib/python2.4/site-packages/yum/yumRepo.py", line 168, in populate
dobj = repo_cache_function(xml, csum)
File "/usr/lib64/python2.4/site-packages/sqlitecachec.py", line 42, in
getPrimary

self.repoid))
TypeError: Can not prepare packages insertion: table packages has no column
named location_base




--
MailScanner is like deodorant...
You hope everybody uses it, and
you notice quickly if they don't!!!!

_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 07-02-2008, 03:01 PM
Karanbir Singh
 
Default Yum errors

Scott Silva wrote:

I'm having a problem with a fairly new server.
Running yum upgrade I get the following:

Traceback (most recent call last):
File "/usr/bin/yum", line 29, in ?
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 289, in doCommands
self._getTs()
File "/usr/lib/python2.4/site-packages/yum/depsolve.py", line 85, in
_getTs

self._getTsInfo()
File "/usr/lib/python2.4/site-packages/yum/depsolve.py", line 91, in
_getTsInfo

self._tsInfo.setDatabases(self.rpmdb, self.pkgSack)
File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 537, in
<lambda>

pkgSack = property(fget=lambda self: self._getSacks(),
File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 392, in
_getSacks

self.repos.populateSack(which=repos)
File "/usr/lib/python2.4/site-packages/yum/repos.py", line 242, in
populateSack

sack.populate(repo, mdtype, callback, cacheonly)
File "/usr/lib/python2.4/site-packages/yum/yumRepo.py", line 168, in
populate

dobj = repo_cache_function(xml, csum)
File "/usr/lib64/python2.4/site-packages/sqlitecachec.py", line 42, in
getPrimary

self.repoid))
TypeError: Can not prepare packages insertion: table packages has no
column named location_base




your .repo files and/or repo setup in /etc/yum.conf is broken

--
Karanbir Singh : http://www.karan.org/ : 2522219@icq
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 07-02-2008, 03:13 PM
Johnny Hughes
 
Default Yum errors

Scott Silva wrote:

I'm having a problem with a fairly new server.
Running yum upgrade I get the following:

Traceback (most recent call last):
File "/usr/bin/yum", line 29, in ?
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 289, in doCommands
self._getTs()
File "/usr/lib/python2.4/site-packages/yum/depsolve.py", line 85, in
_getTs

self._getTsInfo()
File "/usr/lib/python2.4/site-packages/yum/depsolve.py", line 91, in
_getTsInfo

self._tsInfo.setDatabases(self.rpmdb, self.pkgSack)
File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 537, in
<lambda>

pkgSack = property(fget=lambda self: self._getSacks(),
File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 392, in
_getSacks

self.repos.populateSack(which=repos)
File "/usr/lib/python2.4/site-packages/yum/repos.py", line 242, in
populateSack

sack.populate(repo, mdtype, callback, cacheonly)
File "/usr/lib/python2.4/site-packages/yum/yumRepo.py", line 168, in
populate

dobj = repo_cache_function(xml, csum)
File "/usr/lib64/python2.4/site-packages/sqlitecachec.py", line 42, in
getPrimary

self.repoid))
TypeError: Can not prepare packages insertion: table packages has no
column named location_base


what is "rpm -q yum" ...

_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 07-02-2008, 06:33 PM
Scott Silva
 
Default Yum errors

<snip>



what is "rpm -q yum" ...


yum-3.2.8-9.el5.centos.2.1


--
MailScanner is like deodorant...
You hope everybody uses it, and
you notice quickly if they don't!!!!

_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 07-02-2008, 06:49 PM
Scott Silva
 
Default Yum errors

<snip>


your .repo files and/or repo setup in /etc/yum.conf is broken

Copied /etc/yum directory from a working server, preserving the old one, and
it seems to be working so far. It looks like the biggest difference is the old
one had a conf file for fastestmirror, but the new one has installonlyn conf
file. I'll see what happens. Maybe it munged when I added the downloadonly
plugin earlier. I wanted to have all the updates on the machine before I ran
the upgrade.


--
MailScanner is like deodorant...
You hope everybody uses it, and
you notice quickly if they don't!!!!

_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 07-02-2008, 07:22 PM
Scott Silva
 
Default Yum errors

on 7-2-2008 11:49 AM Scott Silva spake the following:

<snip>


your .repo files and/or repo setup in /etc/yum.conf is broken

Copied /etc/yum directory from a working server, preserving the old one,
and it seems to be working so far. It looks like the biggest difference
is the old one had a conf file for fastestmirror, but the new one has
installonlyn conf file. I'll see what happens. Maybe it munged when I
added the downloadonly plugin earlier. I wanted to have all the updates
on the machine before I ran the upgrade.



Still borked, but less messages;

File "/usr/bin/yum", line 29, in ?
yummain.main(sys.argv[1:])
File "/usr/share/yum-cli/yummain.py", line 183, in main
base.doTransaction()
File "/usr/share/yum-cli/cli.py", line 336, in doTransaction
problems = self.downloadPkgs(downloadpkgs)
File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 897, in
downloadPkgs

dirstat = os.statvfs(po.repo.pkgdir)
OSError: [Errno 2] No such file or directory: '//var/cache/yum/updates/packages'

Is this the problem ^^^^^
/var/cache/yum/updates/packages exists and has same owner/perms as all the
other dirs in the cache folder, although the double backslash looks suspicious
to me.


--
MailScanner is like deodorant...
You hope everybody uses it, and
you notice quickly if they don't!!!!

_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 07-02-2008, 07:27 PM
Scott Silva
 
Default Yum errors

on 7-2-2008 11:33 AM Scott Silva spake the following:

<snip>



what is "rpm -q yum" ...


yum-3.2.8-9.el5.centos.2.1



I did do a yum update yum* on this machine last week.


--
MailScanner is like deodorant...
You hope everybody uses it, and
you notice quickly if they don't!!!!

_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 07-03-2008, 06:04 PM
Scott Silva
 
Default Yum errors

on 7-2-2008 8:01 AM Karanbir Singh spake the following:

Scott Silva wrote:

I'm having a problem with a fairly new server.
Running yum upgrade I get the following:

Traceback (most recent call last):
File "/usr/bin/yum", line 29, in ?
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 289, in doCommands
self._getTs()
File "/usr/lib/python2.4/site-packages/yum/depsolve.py", line 85, in
_getTs

self._getTsInfo()
File "/usr/lib/python2.4/site-packages/yum/depsolve.py", line 91, in
_getTsInfo

self._tsInfo.setDatabases(self.rpmdb, self.pkgSack)
File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 537,
in <lambda>

pkgSack = property(fget=lambda self: self._getSacks(),
File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 392,
in _getSacks

self.repos.populateSack(which=repos)
File "/usr/lib/python2.4/site-packages/yum/repos.py", line 242, in
populateSack

sack.populate(repo, mdtype, callback, cacheonly)
File "/usr/lib/python2.4/site-packages/yum/yumRepo.py", line 168, in
populate

dobj = repo_cache_function(xml, csum)
File "/usr/lib64/python2.4/site-packages/sqlitecachec.py", line 42,
in getPrimary

self.repoid))
TypeError: Can not prepare packages insertion: table packages has no
column named location_base




your .repo files and/or repo setup in /etc/yum.conf is broken


Copied yum.conf, /etc/yum/ and /etc/yum.d/ from working server, but still no joy.

--
MailScanner is like deodorant...
You hope everybody uses it, and
you notice quickly if they don't!!!!

_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 07-03-2008, 07:15 PM
Scott Silva
 
Default Yum errors

on 7-2-2008 12:27 PM Scott Silva spake the following:

on 7-2-2008 11:33 AM Scott Silva spake the following:

<snip>



what is "rpm -q yum" ...


yum-3.2.8-9.el5.centos.2.1



I did do a yum update yum* on this machine last week.


Downgrading the yum updates didn't help. If no one has any other suggestions,
I am going to try an upgrade with the anaconda installer by booting from the
DVD this weekend.


Machine isn't in production yet, but is near and a full wipe/install will put
me behind several weeks.


--
MailScanner is like deodorant...
You hope everybody uses it, and
you notice quickly if they don't!!!!

_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 07-03-2008, 09:00 PM
Karanbir Singh
 
Default Yum errors

Scott Silva wrote:
> Is this the problem ^^^^^
> /var/cache/yum/updates/packages exists and has same owner/perms as all
> the other dirs in the cache folder, although the double backslash looks
> suspicious to me.

you have something quite broken on the machine, check for non centos s/w
installed, and rpm -V check the installed pkgs, specially yum and python
and all the bits they need.

how about drive space / permissions etc ?

--
Karanbir Singh : http://www.karan.org/ : 2522219@icq
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 

Thread Tools




All times are GMT. The time now is 06:30 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org