_sqlite.DatabaseError

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello, (sorry if this gets double-posted)
I recently upgraded RHEL4.5 to CentOS4.8, and yum isn't working now. Here's a stack trace:
[root@occipital yum.repos.d]$ yum check-update
Setting up repositories
Reading repository metadata in from local files
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 97, in main
    result, resultmsgs = do()
  File "/usr/share/yum-cli/cli.py", line 534, in doCommands
    ypl = self.returnPkgLists()
  File "/usr/share/yum-cli/cli.py", line 1176, in returnPkgLists
    ypl = self.doPackageLists(pkgnarrow=pkgnarrow)
  File "__init__.py", line 904, in doPackageLists
  File "/usr/share/yum-cli/cli.py", line 75, in doRepoSetup
    self.doSackSetup(thisrepo=thisrepo)
  File "__init__.py", line 260, in doSackSetup
  File "repos.py", line 277, in populateSack
  File "/usr/lib64/python2.3/site-packages/sqlitecachec.py", line 40, in getPrimary
    self.repoid))
  File "/usr/lib64/python2.3/site-packages/sqlitecachec.py", line 29, in open_database
    con = sqlite.connect(filename)
  File "/usr/lib64/python2.3/site-packages/sqlite/__init__.py", line 61, in connect
    return Connection(*args, **kwargs)
  File "/usr/lib64/python2.3/site-packages/sqlite/main.py", line 445, in __init__
    self.db = _sqlite.connect(database, mode)
_sqlite.DatabaseError: file is encrypted or is not a database

I followed this thread (https://lists.dulug.duke.edu/pipermail/yum/2005-November/007878.html), but nothing helped. Here's some info:
[root@occipital yum.repos.d]$ rpm -q yum
yum-2.4.3-4.el4.centos
[root@occipital yum.repos.d]$ rpm -q sqlite
sqlite-3.3.13-1.el4.rf
sqlite-2.8.17-1.el4.rf
[root@occipital yum.repos.d]$ rpm -q python-sqlite
python-sqlite-1.0.1-1.2.el4.rf
python-sqlite-2.3.3-1.el4.rf
[root@occipital yum.repos.d]$ uname -a
Linux occipital.tch.harvard.edu 2.6.9-89.ELsmp #1 SMP Mon Jun 22 12:31:33 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux
[root@occipital yum.repos.d]$ ls
CentOS-Base.repo  CentOS-Media.repo  epel.repo  epel-testing.repo  mirrors-rpmforge  rpmforge.repo
[root@occipital etc]$ cat yum.conf
[main]
cachedir=/var/cache/yum
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
distroverpkg=redhat-release
tolerant=1
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1

# Note: yum-RHN-plugin doesn't honor this.
# metadata_expire=1h

installonly_limit = 5

# PUT YOUR REPOS HERE OR IN separate files named file.rep
# in /etc/yum.repos.d


Thanks for any help,
Chris
_______________________________________________
Yum mailing list
Yum@xxxxxxxxxxxxxxxxx
http://lists.baseurl.org/mailman/listinfo/yum

[Index of Archives]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux