LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS
User Name
Password
CentOS This forum is for the discussion of CentOS Linux. Note: This forum does not have any official participation.

Notices


Reply
  Search this Thread
Old 07-26-2022, 03:56 PM   #1
notooth
Member
 
Registered: Apr 2005
Posts: 192

Rep: Reputation: 15
Cannot open encrypted 7z file


When I clicked an encrypted 7z file in the Files Manager, it did not ask for the password but returned the error "empty archive". Can anyone help?
 
Old 07-26-2022, 04:12 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,666

Rep: Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970
Quote:
Originally Posted by notooth View Post
When I clicked an encrypted 7z file in the Files Manager, it did not ask for the password but returned the error "empty archive". Can anyone help?
Since you provide no details at all, no. You don't say how big this file is (does it actually HAVE data in it??), what you're clicking on, in what program, etc.
 
Old 07-26-2022, 04:22 PM   #3
notooth
Member
 
Registered: Apr 2005
Posts: 192

Original Poster
Rep: Reputation: 15
I clicked on the encrypted 7z file in the Files Manager (Dolphin). The file size is 8KB, and it has data in it.

Last edited by notooth; 07-26-2022 at 04:29 PM.
 
Old 07-26-2022, 04:46 PM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,666

Rep: Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970
Quote:
Originally Posted by notooth View Post
I clicked on the encrypted 7z file in the Files Manager (Dolphin). The file size is 8KB, and it has data in it.
8KB for a 7z file?? Are you *SURE* it has data in it?? And have you tried typing in "7z e <filename>.7z" at the command line??? Tried any other utilities like ark??

Sorry, but 8kb is incredibly small for an encrypted, compressed file that has actual data in it.
 
Old 07-26-2022, 05:28 PM   #5
notooth
Member
 
Registered: Apr 2005
Posts: 192

Original Poster
Rep: Reputation: 15
The command 7z and Ark can extract the encrypted 7z.

Last edited by notooth; 07-26-2022 at 05:41 PM.
 
Old 07-27-2022, 08:12 AM   #6
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,666

Rep: Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970
Quote:
Originally Posted by notooth View Post
The command 7z and Ark can extract the encrypted 7z.
Then you need to go into KDE system settings (assuming you're using that, since you mention Dolphin..you don't actually tell us), and define what program to use for opening 7z files.
 
Old 07-27-2022, 08:15 AM   #7
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,627

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
8 Kb is a bit on the very small size .
Are you sure this is correct ?
 
Old 07-27-2022, 01:52 PM   #8
boughtonp
Senior Member
 
Registered: Feb 2007
Location: UK
Distribution: Debian
Posts: 3,616

Rep: Reputation: 2554Reputation: 2554Reputation: 2554Reputation: 2554Reputation: 2554Reputation: 2554Reputation: 2554Reputation: 2554Reputation: 2554Reputation: 2554Reputation: 2554
Quote:
Originally Posted by TB0ne View Post
Sorry, but 8kb is incredibly small for an encrypted, compressed file that has actual data in it.
Quote:
Originally Posted by John VV View Post
8 Kb is a bit on the very small size .
Are you sure this is correct ?

I don't understand these remarks. How big does a 7z file have to be before you guys accept it has actual data in it?

I can only assume you do not know how big a 7z file containing a single empty file is? Or an actually empty 7z file (achieved by deleting contents)?

Put differently: the only way an empty archive would appear to be 8KB is on a filesystem with a non-default block size and using a tool that displays disk usage rather than file size. (Such a case is unlikely but could be confirmed with "ls" or "stat".)


An 8 KB archive could easily contain anything from 8,000 bytes to 200,000 bytes of actual data, depending on the file types and compressability.

(This thread has a compression ratio of ~14% - it shrank from ~204KB to ~15KB, whilst three similar-to-each-other HTML files in my home directory had a ratio of ~4% - they shrunk from ~129KB to ~5KB.)

For the record, an actually empty 7z archive is 32 bytes, and Ark will display the message "This archive is empty or Ark could not open its content." whilst for a manually corrupted encrypted 7z file, Ark said "Loading the Archive FILENAME failed with the following error: Listing the archive failed."

 
Old 07-27-2022, 02:15 PM   #9
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,666

Rep: Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970
Quote:
Originally Posted by boughtonp View Post
I don't understand these remarks. How big does a 7z file have to be before you guys accept it has actual data in it? I can only assume you do not know how big a 7z file containing a single empty file is? Or an actually empty 7z file (achieved by deleting contents)?

Put differently: the only way an empty archive would appear to be 8KB is on a filesystem with a non-default block size and using a tool that displays disk usage rather than file size. (Such a case is unlikely but could be confirmed with "ls" or "stat".)

An 8 KB archive could easily contain anything from 8,000 bytes to 200,000 bytes of actual data, depending on the file types and compressability. (This thread has a compression ratio of ~14% - it shrank from ~204KB to ~15KB, whilst three similar-to-each-other HTML files in my home directory had a ratio of ~4% - they shrunk from ~129KB to ~5KB.)

For the record, an actually empty 7z archive is 32 bytes, and Ark will display the message "This archive is empty or Ark could not open its content." whilst for a manually corrupted encrypted 7z file, Ark said "Loading the Archive FILENAME failed with the following error: Listing the archive failed."
Understand totally, and it *COULD* have data in it...however, given the lack of information about where the file was obtained or any other pertinent details (post #1), the OP was asked to provide details. If it was downloaded from a website, it's entirely possible that it was corrupted, leading to errors in decompression, especially through Dolphin (which may not have the appropriate program associated to open 7z files by default). That is why I asked if it could be opened with ark or CLI. After the OP confirmed that it could, it was then suggested they associate the appropriate program to the file type in KDE.

Didn't think that given the lack of details from the OP it was inappropriate to confirm the file wasn't corrupted/zero bytes, and could actually be opened with another utility...how would you determine those things without asking???
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can I have an encrypted HD and a non-encrypted HD in the same computer? grumpyskeptic Linux Mint 1 02-15-2017 05:21 PM
LXer: Two Tips to Keep Your Phone's Encrypted Messages Encrypted LXer Syndicated Linux News 0 05-02-2016 11:21 PM
Shrink partition (LVM encrypted PVs + encrypted LVs) gedaj Linux - Newbie 2 05-22-2013 03:44 AM
Resizable encrypted LVM requiring just one password on boot (encrypted volume group)? Nyyr Linux - Software 9 01-24-2013 05:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS

All times are GMT -5. The time now is 11:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration