Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 9 of 9
  1. #1
    Registered User
    Join Date
    Mar 2008
    Posts
    3

    Default There is a problem with yum on my server and the error is

    There is a problem with yum on my server and the error is:


    [root@ip-109-206-90-11 ~]# yum update
    Repository base is listed more than once in the configuration
    base 100% |=========================| 2.1 kB 00:00
    updates-released 100% |=========================| 2.3 kB 00:00
    Excluding Packages in global exclude list
    Finished
    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
    817, in excludeArchs
    executeSQL(cur, myq)
    File "/usr/lib/python2.5/site-packages/yum/sqlutils.py", line 159,
    in executeSQLQmark
    return cursor.execute(query)
    sqlite3.OperationalError: unable to open database file



    Please can you help me to fix this error

    Thanks alot
    Best Regards

  2. #2
    Registered User
    Join Date
    Mar 2008
    Posts
    3

    Default

    Anybody for help

  3. #3
    Member serversphere's Avatar
    Join Date
    Jan 2004
    Posts
    658

    Default

    Try "yum clean all" first and see what you get afterward. Looks to me like your repo file(s) might have been changed for the worse. Check out your repos to see if you have BASE listed more than once. Comment out those but the main centos ones and see if that helps.
    Darren Benfer | SS-Darren | AIM: serversphere
    www.serversphere.com
    Dedicated Server Solutions Have Come Full Circle

  4. #4
    Member hostmedic's Avatar
    Join Date
    Apr 2003
    Location
    Ohio
    Posts
    552
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default if all else fails - mv yum conf out and rebuild

    This would be the typical yum.conf file

    [base]
    name=CentOS-$releasever - Base
    mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
    #baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
    gpgcheck=1
    gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4
    protect=1

    #released updates
    [update]
    name=CentOS-$releasever - Updates
    mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
    #baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
    gpgcheck=1
    gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4
    protect=1

    #packages used/produced in the build but not released
    [addons]
    name=CentOS-$releasever - Addons
    mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=addons
    #baseurl=http://mirror.centos.org/centos/$releasever/addons/$basearch/
    gpgcheck=1
    gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4
    protect=1

    #additional packages that may be useful
    [extras]
    name=CentOS-$releasever - Extras
    mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
    #baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/
    gpgcheck=1
    gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4
    protect=1

    #additional packages that extend functionality of existing packages
    [centosplus]
    name=CentOS-$releasever - Plus
    mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
    #baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/
    gpgcheck=1
    enabled=0
    gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4

    #contrib - packages by Centos Users
    [contrib]
    name=CentOS-$releasever - Contrib
    mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib
    #baseurl=http://mirror.centos.org/centos/$releasever/contrib/$basearch/
    gpgcheck=1
    enabled=0
    gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4


    (of course you may need to double check depending what version of cent your running...)



    Feel like your Cloud Provider's just weathering the storm? Hop Off the Cloud - The Weathers nicer over here.

  5. #5
    Registered User
    Join Date
    Mar 2008
    Posts
    3

    Default

    Thanks a lot for you two..

    I fixed the problem..

    Best Regards

  6. #6
    Registered User
    Join Date
    Feb 2008
    Posts
    4

    Default There's a problem with my server too and the error is:

    There's a problem with my server too and the error is:

    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 94, in main
    result, resultmsgs = base.doCommands()
    File "/usr/share/yum-cli/cli.py", line 381, in doCommands
    return self.yum_cli_commands[self.basecmd].doCommand(self, self.basecmd, self.extcmds)
    File "/usr/share/yum-cli/yumcommands.py", line 317, in doCommand
    ypl = base.returnPkgLists(extcmds)
    File "/usr/share/yum-cli/cli.py", line 895, in returnPkgLists
    ypl = self.doPackageLists(pkgnarrow=pkgnarrow)
    File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 999, in doPackageLists
    ver=v, rel=r)
    File "/usr/lib/python2.4/site-packages/yum/packageSack.py", line 232, in searchNevra
    return self._computeAggregateListResult("searchNevra", name, epoch, ver, rel, arch)
    File "/usr/lib/python2.4/site-packages/yum/packageSack.py", line 369, in _computeAggregateListResult
    sackResult = apply(method, args)
    File "/usr/lib/python2.4/site-packages/yum/sqlitesack.py", line 574, in searchNevra
    returnList.append(self.pc(rep,self.db2class(x)))
    File "/usr/lib/python2.4/site-packages/yum/sqlitesack.py", line 431, in db2class
    y.checksum = {'pkgid': 'YES','type': db.checksum_type,
    File "/usr/lib64/python2.4/site-packages/sqlite/main.py", line 97, in __getattr__
    raise AttributeError, key
    AttributeError: CHECKSUM_VALUE


    Please help me

    Much appreciated, thanks alot.

  7. #7
    Registered User
    Join Date
    Feb 2008
    Posts
    4

    Default yum problem

    Please, anyone??

  8. #8
    Member
    Join Date
    Feb 2005
    Posts
    9

    Default

    Hello,

    I have the same problem. Did you find a solution?

    Thank you!

  9. #9
    Registered User
    Join Date
    Feb 2008
    Posts
    4

    Default

    yes, i repaired it but i don't remember how, i stayed a night and googled on other forums until i made it work, it's something with the yum-metadata-parser, sorry

Similar Threads & Tags
Similar threads

  1. Yum Error
    By Galvin in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 08-31-2011, 02:16 AM
  2. help me .....yum error
    By skyclick in forum New User Questions
    Replies: 4
    Last Post: 06-30-2009, 03:07 AM
  3. yum error
    By Zion Ahead in forum cPanel and WHM Discussions
    Replies: 14
    Last Post: 04-27-2007, 06:05 PM
  4. Yum Error
    By jaymc in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 08-11-2005, 12:09 PM
  5. Yum Error
    By Monil in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 08-13-2004, 07:21 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube