Issues Extracting a Password-Protected .rar File with p7zip
Hello everyone,
I'm trying to extract a password-protected .rar file. After looking through various bundles, I found that p7zip is available. Once installed, I ran the command:
$ 7z x WinPE11_10_8_Sergei_Strelec_x86_x64_2025.02.17_English.rar -pstrelec
However, I received the following error:
7-Zip [64] 17.04 : Copyright (c) 1999-2021 Igor Pavlov : 2017-08-28
p7zip Version 17.04 (locale=it_IT.UTF-8,Utf16=on,HugeFiles=on,64 bits,12 CPUs AMD Ryzen 5 7530U with Radeon Graphics (A50F00),ASM,AES-NI)
Scanning the drive for archives:
1 file, 4797211366 bytes (4575 MiB)
Extracting archive: WinPE11_10_8_Sergei_Strelec_x86_x64_2025.02.17_English.rar
ERROR: WinPE11_10_8_Sergei_Strelec_x86_x64_2025.02.17_English.rar
Can not open the file as archive
Can't open as archive: 1
Files: 0
Size: 0
Compressed: 0
I tried renaming the archive, thinking it might be a character issue, but I got the same result. I also tried modifying the permissions:
chmod 644 WinPE11_10_8_Sergei_Strelec_x86_x64_2025.02.17_English.rar
What could be causing this? initially it look p7zip because it was a dependency for WineGUI.
P.S. On Github i just find repository of https://github.com/ip7z/7zip/commit/e5431fa6f5505e385c6f9367260717e9c47dc2ee
Thanks in advance for your help!
You may try and see if p7zip installed on other distros provide different results. I am of the belief that p7zip is too old, and that installing another extractor (like the official 7zip source you just linked) would be best
Hi, unfortunately I don't have another Linux distribution. However, I tried extracting it on Windows, and it works correctly.
I agree with you that an official package would be necessary.
We updated, let us know if it solves the issue.
We updated, let us know if it solves the issue.
Hi, i try now, but i not solved
$ 7z x WinPE11_10_8_Sergei_Strelec_x86_x64_2025.02.17_English.rar -pstrelec
7-Zip [64] 17.05 : Copyright (c) 1999-2021 Igor Pavlov : 2017-08-28
p7zip Version 17.05 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,64 bits,4 CPUs Intel(R) Core(TM) i5-5300U CPU @ 2.30GHz (306D4),ASM,AES-NI)
Scanning the drive for archives:
1 file, 4797211366 bytes (4575 MiB)
Extracting archive: WinPE11_10_8_Sergei_Strelec_x86_x64_2025.02.17_English.rar
ERROR: WinPE11_10_8_Sergei_Strelec_x86_x64_2025.02.17_English.rar
Can not open the file as archive
Can't open as archive: 1
Files: 0
Size: 0
Compressed: 0
sudo swupd search p7zip
Password:
Bundle with the best search result:
p7zip - 7-zip file compression program (installed)