The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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

Discussion in 'Database Discussions' started by AmerMajzoub, Mar 25, 2008.

  1. AmerMajzoub

    AmerMajzoub Registered

    Joined:
    Mar 25, 2008
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    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. AmerMajzoub

    AmerMajzoub Registered

    Joined:
    Mar 25, 2008
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Anybody for help
     
  3. mctDarren

    mctDarren Well-Known Member

    Joined:
    Jan 6, 2004
    Messages:
    664
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    New Jersey
    cPanel Access Level:
    Root Administrator
    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.
     
  4. hostmedic

    hostmedic Well-Known Member

    Joined:
    Apr 30, 2003
    Messages:
    559
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Washington Court House, Ohio, United States
    cPanel Access Level:
    DataCenter Provider
    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...)
     
  5. AmerMajzoub

    AmerMajzoub Registered

    Joined:
    Mar 25, 2008
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Thanks a lot for you two..

    I fixed the problem..

    Best Regards
     
  6. Nazzy

    Nazzy Registered

    Joined:
    Feb 15, 2008
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    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 :confused:

    Much appreciated, thanks alot.
     
  7. Nazzy

    Nazzy Registered

    Joined:
    Feb 15, 2008
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    yum problem

    Please, anyone??
     
  8. daelda

    daelda Member

    Joined:
    Feb 3, 2005
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    Hello,

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

    Thank you!
     
  9. Nazzy

    Nazzy Registered

    Joined:
    Feb 15, 2008
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    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
     
Loading...

Share This Page