LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Yum Update Breakage on CentOS 5 (http://www.linuxquestions.org/questions/linux-software-2/yum-update-breakage-on-centos-5-a-820169/)

spacejunk 07-16-2010 08:15 AM

Yum Update Breakage on CentOS 5
 
My yum update no longer works. Every time I try to update, I'm greeted with the following error:

Code:

Dependencies Resolved
Traceback (most recent call last):
  File "/usr/bin/yum", line 29, in ?
    yummain.user_main(sys.argv[1:], exit_code=True)
  File "/usr/share/yum-cli/yummain.py", line 309, in user_main
    errcode = main(args)
  File "/usr/share/yum-cli/yummain.py", line 261, in main
    return_code = base.doTransaction()
  File "/usr/share/yum-cli/cli.py", line 362, in doTransaction
    lsts = self.listTransaction()
  File "/usr/share/yum-cli/output.py", line 895, in listTransaction
    self.tsInfo.makelists(True, True)
TypeError: makelists() takes exactly 1 argument (3 given)

Cleaning the yum and RPM databases doesn't fix it.

Any ideas? OS is CentOS 5.5 x86_64.

paulsm4 07-17-2010 12:53 AM

Hi -

Quote:

Any ideas?
Yup - clean the yum database ;)

Specifically, try:

yum clean all
... and then
yum -y upgrade

If it doesn't work:

Q: Please cut/paste the exact output from these two commands

Q: "What changed" just before the problem started?

Otherwise, please post back, and mark the thread "solved".

Thanx in advance .. PSM

spacejunk 07-19-2010 07:28 AM

Quote:

Originally Posted by paulsm4 (Post 4035985)
Hi -



Yup - clean the yum database ;)

Specifically, try:

yum clean all
... and then
yum -y upgrade

If it doesn't work:

Q: Please cut/paste the exact output from these two commands

Q: "What changed" just before the problem started?

Otherwise, please post back, and mark the thread "solved".

Thanx in advance .. PSM

As I indicated in the original post, I already tried cleaning the yum database. The error in the original post is the one I receive when trying to yum update.

Nothing has changed since this problem first appeared; I'm using the same repos and whatnot as before.

paulsm4 07-19-2010 02:42 PM

Hi -

I wasn't clear what you tried, because you didn't post your exact commands (either first post, or your reply).

Another suggestion: try uninstalling, then re-installing Yum. I'd uninstall/reinstall each of these dependent packages (including Python) at the same time (just to be sure).
Code:

http://mirrors.kernel.org/centos/5.0/os/x86_64/CentOS/rpm-python-4.4.2-37.el5.x86_64.rpm
http://mirrors.kernel.org/centos/5.0/os/x86_64/CentOS/m2crypto-0.16-6.el5.1.x86_64.rpm
http://mirrors.kernel.org/centos/5.0/os/x86_64/CentOS/python-urlgrabber-3.1.0-2.noarch.rpm
http://mirrors.kernel.org/centos/5.0/os/x86_64/CentOS/libxml2-python-2.6.26-2.1.2.x86_64.rpm
http://mirrors.kernel.org/centos/5.0/os/x86_64/CentOS/python-elementtree-1.2.6-5.x86_64.rpm
http://mirrors.kernel.org/centos/5.0/os/x86_64/CentOS/python-sqlite-1.1.7-1.2.1.x86_64.rpm
http://mirrors.kernel.org/centos/5.0/os/x86_64/CentOS/python-sqlite-1.1.7-1.2.1.x86_64.rpm
http://mirrors.kernel.org/centos/5.0/os/x86_64/CentOS/yum-3.0.5-1.el5.centos.2.noarch.rpm

Here are some good links:
http://forum.parallels.com/showthread.php?t=74745
http://wiki.openvz.org/Install_yum

'Hope that helps .. PSM

(PS: substitute the appropriate architecture if you're not running "x86_64", of course ;))


All times are GMT -5. The time now is 10:23 AM.