Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have errors when doing yum update and yum install "package". Im using redhat el5 and i386 arch. The errors:
Quote:
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 398, in doTransaction
problems = self.downloadPkgs(downloadpkgs, callback_total=self.download_callback_total_cb)
File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 1295, in downloadPkgs
remote_size += po.size
TypeError: unsupported operand type(s) for +=: 'int' and 'str'
# This is the default, if you make this bigger yum won't see if the metadata
# is newer on the remote and so you'll "gain" the bandwidth of not having to
# download the new metadata and "pay" for it by yum not having correct
# information.
# It is esp. important, to have correct metadata, for distributions like
# Fedora which don't keep old packages around. If you don't like this checking
# interupting your command line usage, it's much better to have something
# manually check the metadata once an hour (yum-updatesd will do this).
# metadata_expire=90m
# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d
For the first solution, i dont have duplication of yum-metadata-parser:
[root@localhost /]# yum --version
Quote:
3.2.22
Installed: rpm-4.4.2-37.el5.i386 at 2010-01-04 11:02
Built : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla> at 2007-01-04 16:28
Committed: Paul Nasrat <pnasrat@redhat.com> at 2007-01-04 22:00
Installed: yum-3.2.22-4.el5.noarch at 2010-06-01 11:40
Built : ATrpms <http://ATrpms.net/> at 2009-04-16 10:02
Committed: James Antill <james at fedoraproject.org> at 2009-04-09 10:00
Installed: yum-metadata-parser-1.1.2-2.el5.i386 at 2010-05-19 15:52
Built : [] at 2008-05-28 15:27
Committed: James Antill <james.antill@redhat.com> at 2008-01-18 22:00
and the second solution, im guessing its not related to my error..i didnt even have package-cleanup:
Quote:
[root@localhost /]# /usr/bin/package-cleanup --problems
-bash: /usr/bin/package-cleanup: No such file or directory
plus i dont know what to do with the miscutils.py file.
Really need some direct solution to my problem..anyway thanks paulsm4
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.