canot install anynthing on my opensuse 11.04

good evening to everyone

i am trying to update my system from a new clean install that i made i am running the update from yast and i am getting the listed message:


Subprocess failed. Error: RPM failed: rpmdb: /var/lib/rpm/Basenames: unexpected file type or format
error: cannot open Basenames index using db3 - Invalid argument (22)

can someone help me with my problem

It’s openSUSE 11.4. oS doesn’t use Ubuntu’s version numbering system.

How about posting the output of ‘zypper lr -d’ (wrapped in CODE tags).

i knew that i had made a mistake, and imagine that when i posted the thread i had the feeling that something was wrong for the version i had entered. I any case i am sorry for the error.

Here is the output of zypper lr -d


# | Alias                 | Name                       | Enabled | Refresh | Priority | Type   | URI                                                                         | Service
--+-----------------------+----------------------------+---------+---------+----------+--------+-----------------------------------------------------------------------------+--------
1 | openSUSE:11.4:Contrib | openSUSE:11.4:Contrib      | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/openSUSE:/11.4:/Contrib/standard/ |        
2 | repo-debug            | openSUSE-11.4-Debug        | Yes     | Yes     |   99     | yast2  | http://download.opensuse.org/debug/distribution/11.4/repo/oss/              |        
3 | repo-debug-update     | openSUSE-11.4-Update-Debug | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/debug/update/11.4/                             |        
4 | repo-non-oss          | openSUSE-11.4-Non-Oss      | Yes     | Yes     |   99     | yast2  | http://download.opensuse.org/distribution/11.4/repo/non-oss/                |        
5 | repo-oss              | openSUSE-11.4-Oss          | Yes     | Yes     |   99     | yast2  | http://download.opensuse.org/distribution/11.4/repo/oss/                    |        
6 | repo-source           | openSUSE-11.4-Source       | Yes     | Yes     |   99     | yast2  | http://download.opensuse.org/source/distribution/11.4/repo/oss/             |        
7 | repo-update           | openSUSE-11.4-Update       | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/update/11.4/ 

That looks fine. I don’t know why you need the third one, though. Try cleaning up your db with zypper,

zypper clean --all
zypper refresh

Same here. And most people have #2 and #6 disabled. Most people do not need to debug nor the sources. But you may like to have them and I doo not think they make you having this problem.

i will try it when i will be at home and report back

On 2011-07-06 16:36, nonviotale wrote:

> Code:
> --------------------
>
> Subprocess failed. Error: RPM failed: rpmdb: /var/lib/rpm/Basenames: unexpected file type or format
> error: cannot open Basenames index using db3 - Invalid argument (22)
>
> --------------------

I don’t think zypper is the problem, but “rpm”, its database. You may have
to use “rpm --rebuilddb”. See the man page for more details.


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)

This might also work, but the purpose of ‘zypper clean’ isn’t to repair zypper itself but to clean the local caches.

On 2011-07-07 18:06, chief sealth wrote:
>
> robin_listas;2361958 Wrote:
>> I don’t think zypper is the problem, but “rpm”, its database. You may
>> have to use “rpm --rebuilddb”. See the man page for more details.
>>
>
> This might also work, but the purpose of ‘zypper clean’ isn’t to repair
> zypper itself but to clean the local caches.

Which is useless because zypper caches are not related to rpm databases.
See the error message, it relates to rpm.

Code:

Subprocess failed. Error: RPM failed: rpmdb: /var/lib/rpm/Basenames:
unexpected file type or format
error: cannot open Basenames index using db3 - Invalid argument (22)


IMO, of course.


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)