Please always copy/paste complete. Not only the output (as you did above), but starting with the line with the prompt and the command, all output up to and including the line with the next prompt. Now we have no idea what you did.
Sorry. There is full input/output. But nothing strange or non tipical, what can be important apart error message:
viktor-pc:~ # zypper in wiresharkLoading repository data...
Reading installed packages...
Resolving package dependencies...
The following recommended package was automatically selected:
wireshark-ui-qt
The following 2 NEW packages are going to be installed:
wireshark wireshark-ui-qt
2 new packages to install.
Overall download size: 0 B. Already cached: 6.8 MiB. After the operation, additional 19.4 MiB will be used.
Continue? [y/n/v/...? shows all options] (y):
In cache wireshark-4.0.0-394.1.x86_64.rpm (1/2), 2.7 MiB ( 11.2 MiB unpacked)
In cache wireshark-ui-qt-4.0.0-394.1.x86_64.rpm (2/2), 4.1 MiB ( 8.2 MiB unpacked)
Checking for file conflicts: ................................................................................................................................[done]
error: unpacking of archive failed on file /usr/bin/dumpcap;63414df9: cpio: cap_set_file failed - Operation not permitted
error: wireshark-4.0.0-394.1.x86_64: install failed
(1/2) Installing: wireshark-4.0.0-394.1.x86_64 .............................................................................................................[error]
Installation of wireshark-4.0.0-394.1.x86_64 failed:
Error: Subprocess failed. Error: RPM failed: Command exited with status 1.
Abort, retry, ignore? [a/r/i] (a):
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.
viktor-pc:~ #
Your conclusion of what is important and what not is only a conclusion. People here like to come to their own conclusions, or at least like it to have the chance to come to their own conclusions. We now see e.g. exactly what you did. Only when you think that you never make mistakes (and others believe that) and that others always do everything the same way as you, that might be superfluous. And this request is not just for this case or for your person. It is a good practice here to do so.
Remember that we can not look over your shoulder and completely depend on your report on what you did, got and saw.
This implies that process that unpacks RPM payload lacks CAP_SETFCAP capability, either because it is non-root or because its capabilities are restricted. Run your zypper command, when it pauses with an error, show current capabilities for all processes starting with your current shell ($$) up to zypper and output of “id -a” in the same shell. Always provide full command invocations including final command promps. Also explain how you access your system. Is it local GUI session (which DM, which DE), is it local console login or is it remote network login (SSH or something else?).
Here is what is expected of unrestricted process with UID 0:
I did exactly what you asked - downloaded and tried to install it locally with rpm. What any further steps can be here? Same issue, means same issue. Same error.
viktor-pc:~ # touch test.bin
viktor-pc:~ # chmod +x test.bin
viktor-pc:~ # setcap cap_net_raw,cap_net_admin+ep test.bin
Failed to set capabilities on file 'test.bin': Operation not permitted
viktor-pc:~ # pwd
/root
viktor-pc:~ #
Same on all physicall mounted file systems, except on efi. On efi i don’t tried. all rest are ext4:
viktor-pc:~ # mount | grep \/dev\/ | grep noatime
/dev/nvme0n1p2 on / type ext4 (rw,noatime)
/dev/sdb1 on /mnt/Data type ext4 (rw,noatime)
/dev/nvme0n1p1 on /boot/efi type vfat (rw,noatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
/dev/sdc1 on /mnt/VMs type ext4 (rw,noatime)
/dev/sda1 on /home type ext4 (rw,noatime)
setcap for /tmp/foo is still works. I can copy output here, but is totally same as in you quote. But i have /tmp with tmpfs in memory, not on disk.
aa-teardown command doesn’t exist in my system. I have been deleted everything related with AppArmor and selinux, except shared libraries related with other apps.