Can anyone explain please

Hi

I mentioned I broke my installs, and here is a brief error message …

IdeaPad:/home/clive # zypper --verify
zypper: error while loading shared libraries: librpm.so.8: cannot open shared object file: No such file or directory
IdeaPad:/home/clive # zypper up libsolv-tools libzypp zypper rpm
zypper: error while loading shared libraries: librpm.so.8: cannot open shared object file: No such file or directory
IdeaPad:/home/clive # rpm --rebuilddb
If 'rpm' is not a typo you can use command-not-found to lookup the package that contains it, like this:
    cnf rpm
IdeaPad:/home/clive # rpm --configure -a
If 'rpm' is not a typo you can use command-not-found to lookup the package that contains it, like this:
    cnf rpm
IdeaPad:/home/clive # 

Hence the imminent re-install.

That is unfortunate. It seems rpm got deleted (how?) and zypper does not work anymore in this case.

It would be good to know how you broke your system: adding random repos? Following some random advice from AI? …

@clive Also check your $PATH echo $PATH Are you switching to root user via su - that output would indicate you only used su

My wild guess: you de-installed all packages with the string rpm it their name.

Maybe not all of them, but, as @hui suggests, at least the package rpm.

But I have nove idea how t install any package when you do not have the rpm package. :unamused:

Hi

Thanks everyone.

I did not add any repo’s.
I did decided I did not need Printer and Scanner options in YAST.

So I selected them to uninstall, and added a coupla things I wanted.

That was it.

So I have downloaded the 16.0 pre-alpha to see if it breaks itself, or do I need to do it.

agama-installer etc.

The path is (and here is one I made earlier) …

IdeaPad:/etc # echo $PATH
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/etc,/etc/lib,/etc/lib64,/usr,/usr/bin:/etc,/etc/lib,/etc/lib64,/usr,/usr/bin,/lib,/lib64:/etc,/etc/lib,/etc/lib64,/usr,/usr/bin,/lib,/lib64,/root,/sbin,/selinux:/etc,/etc/lib,/etc/lib64,/usr,/usr/bin,/lib,/lib64,/root,/sbin,/selinux,/sys
IdeaPad:/etc #

@clive which is not correct, for root user you only need /sbin:/usr/sbin:/usr/local/sbin:/root/bin:/usr/local/bin:/usr/bin:/bin

AND you added all the stuff with commas. I suggest you remove all that stuff and logout of root user and log back in and see if it finds everything.

1 Like

Thank you Malcolm.

clive@IdeaPad:~> sudo export PATH=$PATH:/sbin:/usr/sbin:/usr/local/sbin:/root/bin:/usr/local/bin:/usr/bin:/bin
[sudo] password for root:
sudo: export: command not found

So thanks again.

I now shutdown and re-install, probably.

@clive No re-installed needed, don’t use sudo, use su -.

Run;

/usr/bin/su -
(login with root password)
echo $PATH

If it has all that stuff, then;

export PATH=/sbin:/usr/sbin:/usr/local/sbin:/root/bin:/usr/local/bin:/usr/bin:/bin
echo $PATH

No $PATH in the export else it will keep appending…

Then fix up where ever you installed,

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.