Unable to extract 7z files with 7zip package

For a while now I have noticed that whenever I try to view a 7z file with ark it does not show anything. When I try to archive a file with 7z, there is no output. Apps that relies on downloading a 7z file for extraction fails because 7zip is not working. The console isn’t outputting any error apart from OS Error 13.

When I switched to p7zip-full from the windows:mingw repo, things started working normally again.

I just wanted to post this in case someone is having the same issue as me.

How long is this “while”?

I cannot reproduce it on a clean Tumbleweed without any third-party repositories.

I also could not reproduce this on my 2nd machine. 7zip (7zz) works fine on it.

I don’t know when the issue itself started as I have never touched a 7z file in a long time until yesterday. I thought the 7z file itself was corrupted but that was not the case because p7zip works fine.

I downloaded 7zip from the official sourceforge and it works. The system 7zip is not working though. Always error 13

7-Zip (z) 23.01 (x64) : Copyright (c) 1999-2023 Igor Pavlov : 2023-06-20
 64-bit locale=en_US.UTF-8 Threads:4 OPEN_MAX:1024, ASM

Scanning the drive for archives:
1 file, 1365807 bytes (1334 KiB)

Testing archive: 7z2301-src.7z
ERROR: 7z2301-src.7z
Cannot open the file as archive

errno=13 : Permission denied
    
Can't open as archive: 1
Files: 0
Size:       0
Compressed: 0

Update

apparmor was the cause of the issue

AppArmor cannot be the cause of the issue. AppArmor profile may. But without any information what profile you mean and where it comes from this topic is not really helpful to others.

Post

zypper se -si 7z

Thats what i meant. I have not configured apparmor nor do I have a reason to use it so I just disabled it and now 7z is working

though i dont know why p7zip was working but not 7zip with apparmor enabled

S | Name | Type    | Version   | Arch   | Repository
--+------+---------+-----------+--------+----------------------
i | 7zip | package | 23.01-2.3 | x86_64 | Main Repository (OSS)
i | 7zip | package | 23.01-2.3 | x86_64 | openSUSE-20231113-0

I went and check and it seems that 7zz was in the apparmor profile list

And the reason you continue to keep the top secret the name of this profile or package it belongs to?

There is no 7zz AppArmor profile in openSUSE Tumbleweed.

Try to use p7zip and J7Z (available in Main repo) instead of 7zip.

no worries i got it working already