Hi, I'm newbie in arm linux! :( I'm try to use fedora arm FS. I've a problem on YUM, in particular on rpm; when I invoke rpm or yum I'm obtain:
rpmdb: mmap: Invalid argument error: db4 error(22) from dbenv->open: Invalid argument error: cannot open Packages index using db3 - Invalid argument (22) error: cannot open Packages database in /var/lib/rpm Traceback (most recent call last): File "/usr/bin/repoquery", line 808, in <module> main(sys.argv) File "/usr/bin/repoquery", line 721, in main repoq.doConfigSetup(debuglevel=initnoise, init_plugins=opts.plugins) File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 113, in doConfigSetup errorlevel=errorlevel) File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 159, in _getConfig self._conf = config.readMainConfig(startupconf) File "/usr/lib/python2.5/site-packages/yum/config.py", line 613, in readMainConfig yumvars['releasever'] = _getsysver(startupconf.installroot, startupconf.distroverpkg) File "/usr/lib/python2.5/site-packages/yum/config.py", line 680, in _getsysver idx = ts.dbMatch('provides', distroverpkg) TypeError: rpmdb open failed
I'm just try to delete DB and rebuild it by "rpm --rebuilddb" but the problem remain.
After "rpm --rebuilddb" my /var/lib/rpm contest is:
-rw-r--r-- 1 root root 684032 Jan 10 19:32 Basenames -rw-r--r-- 1 root root 12288 Jan 10 19:32 Conflictname -rw-r--r-- 1 root root 135168 Jan 10 19:32 Dirnames -rw-r--r-- 1 root root 655360 Jan 10 19:32 Filemd5s -rw-r--r-- 1 root root 12288 Jan 10 19:32 Group -rw-r--r-- 1 root root 8192 Jan 10 19:32 Installtid -rw-r--r-- 1 root root 12288 Jan 10 19:32 Name -rw-r--r-- 1 root root 4149248 Jan 10 19:32 Packages -rw-r--r-- 1 root root 90112 Jan 10 19:32 Providename -rw-r--r-- 1 root root 28672 Jan 10 19:32 Provideversion -rw-r--r-- 1 root root 12288 Jan 10 19:29 Pubkeys -rw-r--r-- 1 root root 45056 Jan 10 19:32 Requirename -rw-r--r-- 1 root root 28672 Jan 10 19:32 Requireversion -rw-r--r-- 1 root root 12288 Jan 10 19:32 Sha1header -rw-r--r-- 1 root root 12288 Jan 10 19:32 Sigmd5 -rw-r--r-- 1 root root 12288 Jan 10 19:32 Triggername -rw-r--r-- 1 root root 0 May 30 08:43 __db.000 -rw-r--r-- 1 root root 24576 May 30 08:43 __db.001
Can You help me?
Thanks in advance
Lorenzo Giardina
On Fri, May 30, 2008 at 07:18:23PM +0200, Lorenzo Giardina wrote:
Hi,
Hi,
I'm newbie in arm linux! :( I'm try to use fedora arm FS. I've a problem on YUM, in particular on rpm; when I invoke rpm or yum I'm obtain:
rpmdb: mmap: Invalid argument error: db4 error(22) from dbenv->open: Invalid argument error: cannot open Packages index using db3 - Invalid argument (22) error: cannot open Packages database in /var/lib/rpm Traceback (most recent call last): File "/usr/bin/repoquery", line 808, in <module> main(sys.argv) File "/usr/bin/repoquery", line 721, in main repoq.doConfigSetup(debuglevel=initnoise, init_plugins=opts.plugins) File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 113, in doConfigSetup errorlevel=errorlevel) File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 159, in _getConfig self._conf = config.readMainConfig(startupconf) File "/usr/lib/python2.5/site-packages/yum/config.py", line 613, in readMainConfig yumvars['releasever'] = _getsysver(startupconf.installroot, startupconf.distroverpkg) File "/usr/lib/python2.5/site-packages/yum/config.py", line 680, in _getsysver idx = ts.dbMatch('provides', distroverpkg) TypeError: rpmdb open failed
I'm just try to delete DB and rebuild it by "rpm --rebuilddb" but the problem remain.
After "rpm --rebuilddb" my /var/lib/rpm contest is:
-rw-r--r-- 1 root root 684032 Jan 10 19:32 Basenames -rw-r--r-- 1 root root 12288 Jan 10 19:32 Conflictname -rw-r--r-- 1 root root 135168 Jan 10 19:32 Dirnames -rw-r--r-- 1 root root 655360 Jan 10 19:32 Filemd5s -rw-r--r-- 1 root root 12288 Jan 10 19:32 Group -rw-r--r-- 1 root root 8192 Jan 10 19:32 Installtid -rw-r--r-- 1 root root 12288 Jan 10 19:32 Name -rw-r--r-- 1 root root 4149248 Jan 10 19:32 Packages -rw-r--r-- 1 root root 90112 Jan 10 19:32 Providename -rw-r--r-- 1 root root 28672 Jan 10 19:32 Provideversion -rw-r--r-- 1 root root 12288 Jan 10 19:29 Pubkeys -rw-r--r-- 1 root root 45056 Jan 10 19:32 Requirename -rw-r--r-- 1 root root 28672 Jan 10 19:32 Requireversion -rw-r--r-- 1 root root 12288 Jan 10 19:32 Sha1header -rw-r--r-- 1 root root 12288 Jan 10 19:32 Sigmd5 -rw-r--r-- 1 root root 12288 Jan 10 19:32 Triggername -rw-r--r-- 1 root root 0 May 30 08:43 __db.000 -rw-r--r-- 1 root root 24576 May 30 08:43 __db.001
Can You help me?
Can you try:
rm -f /var/lib/rpm/__db.00?
and then re-do 'rpm --rebuilddb'?