I'm trying to extract a rar archive on my server. This rar archive is of the following structure:
- somefolder *
The * means that these files/folders are password protected.
It appears that the rar command line tool is not able to handle such archives. If i try the following:
rar e myarchive.rar
It gives back an error:
RAR 3.30 Copyright (c) 1993-2004 Eugene Roshal 22 Jan 2004
Shareware version Type RAR -? for help
games.rar is not RAR archive
No files to extract
However, I am able to extract this archive on my Windows Home PC.
On other forums people suggested to use the unrar tool. I need to execute the following command to install that:
apt-get install unrar
Now, i get the following error:
E: Could not open lock file /var/lib/dpkg/lock - open (13 Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
Probably, i don't have sufficient rights to execute this command. Who can tell me who I need to write to to get this tool installed on the server? Or alternatively: how can I solve this problem?