UNABLE TO INSTALL OR ADD ANY SOFTWARE IN openSUSE 15.3 LINUX

Hi all,after successfull installation of openSUSE-15.3(LEAP) onto my Desktop, I am unable to add/install/update any software in openSUSE 15.3
Please help me out.

ocalhost:/etc # zypper install lsb
warning: Found BDB Packages database while attempting ndb backend: using bdb_ro backend.
warning: Found BDB Packages database while attempting ndb backend: using bdb_ro backend.
warning: Found BDB Packages database while attempting ndb backend: using bdb_ro backend.
Loading repository data…
Reading installed packages…
warning: Found BDB Packages database while attempting ndb backend: using bdb_ro backend.
Resolving package dependencies…

The following NEW package is going to be installed:
lsb

1 new package to install.
Overall download size: 14.1 KiB. Already cached: 0 B. After the operation, additional 110.0 B will be used.
Continue? [y/n/v/…? shows all options] (y): Y
Retrieving package lsb-4.0.fake-lp153.2.3.1.x86_64 (1/1), 14.1 KiB ( 110 B unpacked)
Retrieving: lsb-4.0.fake-lp153.2.3.1.x86_64.rpm …[done (8.3 KiB/s)]

Checking for file conflicts: --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------]warning: Found BDB Packages database while attempting ndb backend: using bdb_ro backend.
Checking for file conflicts: …[done]
(1/1) Installing: lsb-4.0.fake-lp153.2.3.1.x86_64 …[error]
Installation of lsb-4.0.fake-lp153.2.3.1.x86_64 failed:
Error: Subprocess failed. Error: RPM failed: warning: Found BDB Packages database while attempting ndb backend: using bdb_ro backend.
warning: Found BDB Packages database while attempting ndb backend: using bdb_ro backend.
error: cannot open Packages index using unknown db - Operation not permitted (1)
error: cannot open Packages database in /var/lib/rpm

Abort, retry, ignore? [a/r/i] (a): a
warning: Found BDB Packages database while attempting ndb backend: using bdb_ro backend.
Problem occurred during or after installation or removal of packages:
Installation has been aborted as directed.
Please see the above error message for a hint.
localhost:/etc #

I have to abort the command by force.

How to get rid of this???

Do you have any non-standard repos enabled. I’m thinking you probably must to cause any db message. If yes, please provide output from sudo zypper lr -d | susepaste.

Friend,I got this

localhost:/home/kgtabon29 # zypper lr -d | susepaste
Pasted as:
SUSE Paste
SUSE Paste
Link is also in your clipboard.
localhost:/home/kgtabon29 #

@mrmazda any solution,Please.

First, using all capitals is considered very rude - it is the same as shouting loud. Please, do not do it. Demanding answer 15 minutes after your post is not polite either - we all visit this forum in out spare time.

As to your original problem - post output of

rpm -qi rpm
rpm --eval %_db_backend

I am extremely sorry for this.
Wish it should never happen again.
Please,Forgive me,Fiends.:shame::frown:

Here you,have:—>

localhost:/home/kgtabon29 # rpm -qi rpm
package rpm is not installed
localhost:/home/kgtabon29 # rpm --eval %_db_backend
ndb
localhost:/home/kgtabon29 #

Please use tags [noparse]

...

[/noparse] around computer output. Quotes are not preserved in replies and text formatting is lost either.
Show output of

which rpm
rpm -qif "$(which rpm)"

I follow your instructions,Friend.
Please look at this:—>


localhost:/home/kgtabon29 # which rpm
/bin/rpm
localhost:/home/kgtabon29 # rpm -qif "$(which rpm)"
file /bin/rpm is not owned by any package
localhost:/home/kgtabon29 # 


Your rpm binary does not come from openSUSE package. It is up to you to find out where it comes from. You may have compiled RPM from source.

What is output of

ls -l /bin/rpm
ls -l /usr/bin/rpm
/bin/rpm --version
/usr/bin/rpm --version

localhost:/home/kgtabon29 # ls -l /bin/rpm
lrwxrwxrwx 1 root root 12 Oct 12 17:29 /bin/rpm -> /usr/bin/rpm
localhost:/home/kgtabon29 # ls -l /usr/bin/rpm
-rwxr-xr-x 1 root root 19320 Oct 12 17:29 /usr/bin/rpm
localhost:/home/kgtabon29 # /bin/rpm --version
RPM version 4.14.3
localhost:/home/kgtabon29 # /usr/bin/rpm --version
RPM version 4.14.3
localhost:/home/kgtabon29 # 


Yes, this is version that comes with Leap 15.3, but this version does not even support bdb_ro backend. It was added in 4.16.

I would say it is probably easier to reinstall.

Friend, @arvidjaar, this is my 3rd time re-installation after I was stuck up with the problem.

All three having a problem with rpm dbs? There might be something wrong with your installation media. Try using the NET installer instead of the DVD installer, or re-downloading the DVD .iso with a downloader (e.g. curl or wget) instead of web browser, verifying the download is good, and burning a different USB or DVD.

You mean you get this problem immediately after the system boots for the first time after installation?

OK I was wrong. bdb_ro was backported and there are two variants of rpm package - plain “rpm” (without bdb_ro and with default backend bdb) and “rpm-ndb” (with bdb_ro, without bdb and with default backend ndb). So the problem may theoretically happen if for some reasons rpm-ndb was installed instead of normal rpm. It is very unlikely that it happened post-installation (rpm-ndb conflicts with rpm and cannot be installed if bdb database is present, so using zypper it first removes rpm, then installation of rpm-ndb fails and we are left without any package management tool).

So more information about installation is needed (exact image used during installation, link to this image will certainly be helpful), whether any software was selected manually. Result of save_y2logs immediately after installation would also be needed (it will contain full logs of yast2 activity during installation including what packages have been installed).

Yes, that is exactly what I get if I manually select rpm-ndb during installation.

To OP: show output of

ls -l /usr/lib/sysimage/rpm
ls -l /var/lib/rpm

*I’m not sure if you’ve done a basic task after install. Please forgive me if this is off base.

sudo zypper install opi

then

opi codecs (answer yes or always to questions.)

then

As for me, I always reboot at this point

then

open YaST and click on Software Management. Then install the program you’re looking for via gui and see if it works now.

Best of luck.*

To all my Friends who helped me:–

Found out the culprit.
This is my 4th successful installation of openSUSE Leap-15.3 onto my Desktop-PC.
This time there was no mistake.
While installing packages,under the basic packages under package management of installer,there were two packages
rpm and **rpm-nbd

Just we have to be careful of not installing the rpm-nbd package and rpm package simultaneously.
**In fact selecting rpm-nbd,deselects the rpm package.But you could select rpm package along with rpm-nbd without any error message of dependency problems/issues.

Now openSUSE is functioning as usual,normal like a breeze.

Thank You,All.

The defaults should install RPM you should not mess with basic install defaults until you have successfully installed OS unless you truly know what you are doing.