"An error occurred while loading the archive" when extracting Kali Linux.7z on Ubuntu

5,878

When you run a terminal command giving it a file as input, the file must exist. If the file is in your current directory, it is enough to give the file name (command file). If, however, the file is in another directory, you need to give its path (command /path/to/file).

In your case, you have saved the archive in $HOME/Downloads/Kali-Linux-2016.1-vbox-i686/Kali-Linux-2016.1-vbox-i686.7z, so you need to do one of:

  1. Use the file's path

    7za e  $HOME/Downloads/Kali-Linux-2016.1-vbox-i686/Kali-Linux-2016.1-vbox-i686.7z
    
  2. Move into the directory before running the command:

    cd $HOME/Downloads/Kali-Linux-2016.1-vbox-i686/
    7za e Kali-Linux-2016.1-vbox-i686.7z
    
Share:
5,878

Related videos on Youtube

Zach
Author by

Zach

Updated on September 18, 2022

Comments

  • Zach
    Zach over 1 year

    I'm downloading Kali Linux 2016.1 for Virtual Box, which only had a torrented .7z file available, but I'm not able to extract it with Archive manager or p7zip.

    After installing sudo apt-get install p7zip-full I tried these two commands:

    7za e  Kali-Linux-2016.1-vbox-i686.7z
    7za x  Kali-Linux-2016.1-vbox-i686.7z
    

    The error I get is:

    error: there is no such archive
    

    The path of the file is Home/Downloads/Kali-Linux-2016.1-vbox-i686/Kali-Linux-2016.1-vbox-i686.7z

    • terdon
      terdon over 7 years
      and does that file actually exist? Where did you save it? That error suggests there is simply no file of that name. Please edit your question and give us the full path to the archive and the output of ls -l on it.
    • Zach
      Zach over 7 years
      @terdon I added the path, not sure what the ls -l is... Sorry I'm new with this sort of thing.
    • David Foerster
      David Foerster over 7 years
      ls is a terminal command that will list files. Without other arguments it lists those in the current directory. It's a way to reassure that the a file exists where you expect it to exist. May I suggest however, that you use Archive Manager instead of terminal programs if you don't know how to use them? The former actually uses the latter any way so for a simple archive extraction there's no advantage. If the extraction didn't work there should be a pop-up window with an error message. What exactly did you do to try to extract the archive with Archive Manager?