Home » Uncategorized

Gagal kemaskini melalui YUM bagi Centos atau Redhat

30 April 2009 No Comment

Kemaskini program atau kernel bagi server adalah penting, tambahan pula jika terdapat program yang mempunyai pepijat dan terdapat vulnerability didalamnya. Bagi distro seperti Centos atau Redhat, kita boleh update melalui YUM. Dengan YUM proses update menjadi lebih mudah. Tetapi bagaimana pula jika tidak boleh update kerana error.

root@svr [~]# yum update
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: centosv.centos.org
* updates: centosk2.centos.org
* addons: mirror.linux.duke.edu
* extras: centosf3.centos.org
Excluding Packages in global exclude list
Finished
Setting up Update Process
Resolving Dependencies
–> Running transaction check
—> Package kernel.x86_64 0:2.6.18-128.1.6.el5 set to be installed
—> Package perl.x86_64 4:5.8.8-18.el5_3.1 set to be updated
—> Package mod_nss.x86_64 0:1.0.3-7.el5_3.1 set to be updated
—> Package udev.x86_64 0:095-14.20.el5_3 set to be updated
—> Package kpartx.x86_64 0:0.4.7-23.el5_3.4 set to be updated
—> Package ghostscript.x86_64 0:8.15.2-9.4.el5_3.7 set to be updated
—> Package krb5-devel.x86_64 0:1.6.1-31.el5_3.3 set to be updated
—> Package audit-libs.i386 0:1.7.7-6.el5_3.2 set to be updated
—> Package xulrunner.x86_64 0:1.9.0.10-1.el5 set to be updated
—> Package tzdata.noarch 0:2009f-1.el5 set to be updated
—> Package device-mapper-multipath.x86_64 0:0.4.7-23.el5_3.4 set to be updated
—> Package cups.x86_64 1:1.3.7-8.el5_3.4 set to be updated
—> Package NetworkManager.x86_64 1:0.7.0-4.el5_3 set to be updated
—> Package krb5-workstation.x86_64 0:1.6.1-31.el5_3.3 set to be updated
—> Package ntp.x86_64 0:4.2.2p1-9.el5.centos.1 set to be updated
—> Package audit-libs-python.x86_64 0:1.7.7-6.el5_3.2 set to be updated
—> Package krb5-devel.i386 0:1.6.1-31.el5_3.3 set to be updated
—> Package NetworkManager-glib.x86_64 1:0.7.0-4.el5_3 set to be updated
—> Package krb5-libs.i386 0:1.6.1-31.el5_3.3 set to be updated
—> Package krb5-libs.x86_64 0:1.6.1-31.el5_3.3 set to be updated
—> Package libvolume_id.x86_64 0:095-14.20.el5_3 set to be updated
—> Package cups-libs.x86_64 1:1.3.7-8.el5_3.4 set to be updated
—> Package audit.x86_64 0:1.7.7-6.el5_3.2 set to be updated
—> Package ghostscript-devel.x86_64 0:8.15.2-9.4.el5_3.7 set to be updated
—> Package audit-libs.x86_64 0:1.7.7-6.el5_3.2 set to be updated


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 229, in user_main
errcode = main(args)
File “/usr/share/yum-cli/yummain.py”, line 145, in main
(result, resultmsgs) = base.buildTransaction()
File “/usr/lib/python2.4/site-packages/yum/__init__.py”, line 647, in buildTransaction
(rescode, restring) = self.resolveDeps()
File “/usr/lib/python2.4/site-packages/yum/depsolve.py”, line 704, in resolveDeps
for po, dep in self._checkFileRequires():
File “/usr/lib/python2.4/site-packages/yum/depsolve.py”, line 939, in _checkFileRequires
if not self.tsInfo.getOldProvides(filename) and not self.tsInfo.getNewProvides(filename):
File “/usr/lib/python2.4/site-packages/yum/transactioninfo.py”, line 414, in getNewProvides
for pkg, hits in self.pkgSack.getProvides(name, flag, version).iteritems():
File “/usr/lib/python2.4/site-packages/yum/packageSack.py”, line 300, in getProvides
return self._computeAggregateDictResult(“getProvides”, name, flags, version)
File “/usr/lib/python2.4/site-packages/yum/packageSack.py”, line 470, in _computeAggregateDictResult
sackResult = apply(method, args)
File “/usr/lib/python2.4/site-packages/yum/sqlitesack.py”, line 861, in getProvides
return self._search(“provides”, name, flags, version)
File “/usr/lib/python2.4/site-packages/yum/sqlitesack.py”, line 43, in newFunc
return func(*args, **kwargs)
File “/usr/lib/python2.4/site-packages/yum/sqlitesack.py”, line 837, in _search
for pkg in self.searchFiles(name, strict=True):
File “/usr/lib/python2.4/site-packages/yum/sqlitesack.py”, line 43, in newFunc
return func(*args, **kwargs)
File “/usr/lib/python2.4/site-packages/yum/sqlitesack.py”, line 586, in searchFiles
self._sql_pkgKey2po(rep, cur, pkgs)
File “/usr/lib/python2.4/site-packages/yum/sqlitesack.py”, line 470, in _sql_pkgKey2po
pkg = self._packageByKey(repo, ob[‘pkgKey’])
File “/usr/lib/python2.4/site-packages/yum/sqlitesack.py”, line 413, in _packageByKey
po = self.pc(repo, cur.fetchone())
File “/usr/lib/python2.4/site-packages/yum/sqlitesack.py”, line 68, in __init__
self._read_db_obj(db_obj)
File “/usr/lib/python2.4/site-packages/yum/sqlitesack.py”, line 94, in _read_db_obj
setattr(self, item, _share_data(db_obj[item]))
TypeError: unsubscriptable object

Senang sahaja nak settle.

root@svr [~]# yum clean all
Loaded plugins: fastestmirror
Cleaning up Everything
Cleaning up list of fastest mirrors

Kemudian jalan balik yum update

root@svr [~]# yum update



Leave your response!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

This is a Gravatar-enabled weblog. To get your own globally-recognized-avatar, please register at Gravatar.