I used an virtual image which is using, by default, btrfs on root FS.
I have tried to install some packages, including reinstalling sed (as the manual was missing) and exim and when I try to install them with zypper, it installs the binaries but some files are missing afterwards like /usr/share/doc/packages/exim and it’s content.
If I download the RPM package individually and try to install it with rpm -i, all the files are present on the filesystem. I also tried to disable the automatically snapshoting in zypper (removing snapper-zypp-plugin, believing that it has something to do with it), but the behavior is the same.
Also, tried to clear the zypper cache, no changes. It’s for the first time I encounter this issue and I ran out of ideas.
Welcome to the openSUSE Forums,
But be aware to receive best advise you first need to provide detailed information about what you are doing.
You’re going to have to be clear on what you are doing and perhaps your objectives.
When you say you are working on a downloaded image, you need to describe which image, and likely where it came from. Most new installations build an image based on what the hardware that’s discovered. There are pre-built images for virtualization (eg from software.opensuse.org), there are images you can modify for Kiwi (usually installed from an RPM package), Docker images from dockerhub, LXC images, etc and so on. Guessing what image you’re using is not possible.
You will likely have to describe how you are modifying your image. Are you running the image, logging into the system and installing, or are you trying to modify an offline image?
If you tried installing something but was unsuccessful, you need to describe in detail the exact commands or actions and the result of each action.
As always use the
tags created by the hash button (#) in the Forum Post editor to highlight console input and output.
TSU
I am using openSUSE-Leap-15.2-JeOS.x86_64-kvm-and-xen.qcow2, downloaded from http://download.opensuse.org/distribution/leap/15.2/appliances/ and run it in KVM. I have used SUSE/openSUSE since 2005 and openSUSE leap from the beginning. But I never encountered this issue. I usually use ext4 root FS and install it from ISO. However, for this project I chose to use an already built qcow2 image. I have no experience with btrfs/snapshots, but I doubt it has something to do with it.
What’s strange is that the same package installed with rpm -i, manually, put all the files in place. When I install with zypper install package, it misses some files from the filesystem.
I’m pretty proficient with Suse, but I didn’t encounter this until now and I don’t know where to start to look at (except strace which I presumably won’t give me enough useful information). I assumed that it has something to do with the transnational server, feature I never used. But removed the snapshoting from zypper, more that this I couldn’t find Googling nor I don’t know where to start from.
Just installed exim using zypper on a test 15.2 machine, the documentation files are all there.
Hard to say why zypper isn’t installing everything and why that location would be a problem.
In this case, there also shouldn’t be any diffference using zypper or rpm to install.
You might try to try using the “force re-install” option, it shouldn’t matter if you already have a faulty exim installl on your system or not…
zypper in -f exim
Also, am not sure in your first post why you downloaded the exim package using wget first.
If you do that, conceivably you can install the package you downloaded, but then you appeared to run the install commands that download and install from the repository… There should not be a difference in this case.
I didn’t. I downloaded exim for creating the logs for this post, in order to show the differences. It doesn’t matter whether is present on the FS or not.
I’m pretty confused about this issue. I never experienced it before and I though maybe someone, in community, did.
Yes, that’s right. The problem is that some packages, including exim, is copying the default configuration file from /usr/share/doc/packages/*, during post install and, in case of exim, is not happening.