Hello everyone.
Ever since I upgraded to LEAP42.3, I have had issues installing software.
My zypper would be unable to use rpm. (yes I used sudo).
I found a workaround for this with the ‘su -’ command, to simulate an actual login, thinking i needed to fix my rpm.
Now i tried to unpack a .tar.bz2 file (hoping to re-install rpm that way), but my command failed. The tar command could not call the bzip
Below you’ll find the code i had issues with. For testing purposes I will use neovim.
As regular user with sudo access:
$ sudo zypper install neovim
Loading repository data...
Reading installed packages...
Resolving package dependencies...
The following 16 NEW packages are going to be installed:
libjemalloc2 libmsgpackc2 libtermkey1 libunibilium0 libuv1 libvterm0 neovim neovim-lang python3-greenlet python3-msgpack-python python3-neovim python-greenlet python-msgpack-python python-neovim python-trollius xsel
The following 4 recommended packages were automatically selected:
neovim-lang python3-neovim python-neovim xsel
16 new packages to install.
Overall download size: 0 B. Already cached: 5,0 MiB. After the operation, additional 20,4 MiB will be used.
**Continue? [y/n/...? shows all options] (y): **y
In cache libjemalloc2-4.0.3-4.1.x86_64.rpm (1/16), 118,8 KiB (310,4 KiB unpacked)
[cut out some stuff due to character limit]
(15/16), 64,1 KiB (225,4 KiB unpacked)
In cache neovim-lang-0.2.0-1.8.noarch.rpm (16/16), 430,8 KiB ( 2,2 MiB unpacked)
Checking for file conflicts: ..........................................................................................................................................................................................................[done]
( 1/16) Installing: libjemalloc2-4.0.3-4.1.x86_64 ....................................................................................................................................................................................[error]
Installation of libjemalloc2-4.0.3-4.1.x86_64 failed:
Error: Subprocess failed. Error: RPM failed: Can't exec 'rpm' (No such file or directory).
As superuser, logged in with the command ‘su -’:
$ su -
Password:
nick-LNX.local:/root # zypper install neovim
Loading repository data...
Reading installed packages...
Resolving package dependencies...
The following 16 NEW packages are going to be installed:
libjemalloc2 libmsgpackc2 libtermkey1 libunibilium0 libuv1 libvterm0 neovim neovim-lang python-greenlet python-msgpack-python python-neovim python-trollius python3-greenlet python3-msgpack-python python3-neovim xsel
The following 4 recommended packages were automatically selected:
neovim-lang python-neovim python3-neovim xsel
16 new packages to install.
Overall download size: 0 B. Already cached: 5.0 MiB. After the operation, additional 20.4 MiB will be used.
**Continue? [y/n/...? shows all options] (y): **y
In cache libjemalloc2-4.0.3-4.1.x86_64.rpm (1/16), 118.8 KiB (310.4 KiB unpacked)
In cache libmsgpackc2-1.4.1-3.1.x86_64.rpm (2/16), 19.0 KiB ( 28.6 KiB unpacked)
[cut out some stuff due to character limit]
In cache python-neovim-0.1.13-1.2.noarch.rpm (15/16), 64.1 KiB (225.4 KiB unpacked)
In cache neovim-lang-0.2.0-1.8.noarch.rpm (16/16), 430.8 KiB ( 2.2 MiB unpacked)
Checking for file conflicts: ..........................................................................................................................................................................................................[done]
( 1/16) Installing: libjemalloc2-4.0.3-4.1.x86_64 .....................................................................................................................................................................................[done]
( 2/16) Installing: libmsgpackc2-1.4.1-3.1.x86_64 .....................................................................................................................................................................................[done]
[cut out some stuff due to character limit]
(16/16) Installing: neovim-lang-0.2.0-1.8.noarch ......................................................................................................................................................................................[done]
trying to extract rpm tar.bz2 as user with sudo access:
$ sudo tar xvfj ~/Downloads/general/rpm-4.13.0.1.tar.bz2 -C /opt
tar (child): bzip2: Cannot exec: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
What could be causing this? How can I fix it?