Reply
Thread Tools
rokafellaskank's Avatar
Posts: 83 | Thanked: 4 times | Joined on Mar 2010 @ Birmingham England
#1
can anyone help, it was working before, then it just stopped working.
here's what I get

~ $ cd /home/user/MyDocs/Downloads
~/MyDocs/Downloads $ 7z e set.7z
/usr/bin/7z: exec: line 2: /usr/lib/p7zip/7z: Too many levels of symbolic links
~/MyDocs/Downloads $

anyone got any ideas?
 
Posts: 726 | Thanked: 345 times | Joined on Apr 2010 @ Sweden
#2
Just guessing:

The /usr/bin/7z file is a shell script that starts the binary that does the actual work. /usr/lib/p7zip/7z might also be a shell script for all I know.

Somewhere in this chain, something has changed, making it go in a loop trying to resolve the actual place where the binary is.

My suggestion would be to look at these files, follow the chain and see where it loops and break that loop.
 

The Following User Says Thank You to Joorin For This Useful Post:
rokafellaskank's Avatar
Posts: 83 | Thanked: 4 times | Joined on Mar 2010 @ Birmingham England
#3
Originally Posted by Joorin View Post
Just guessing:

The /usr/bin/7z file is a shell script that starts the binary that does the actual work. /usr/lib/p7zip/7z might also be a shell script for all I know.

Somewhere in this chain, something has changed, making it go in a loop trying to resolve the actual place where the binary is.

My suggestion would be to look at these files, follow the chain and see where it loops and break that loop.

thanks for the prompt response, but I wouldn't know where to look.
 
Posts: 726 | Thanked: 345 times | Joined on Apr 2010 @ Sweden
#4
Use the file command to find out what kind of files you're going to investigate:
Code:
file /usr/bin/7z
If it's identified as a text file or shell script, look in it with
Code:
cat /usr/bin/7z
Now you 'll see what it does. Now have a look at /usr/lib/p7zip/7z in the same way.
 
rokafellaskank's Avatar
Posts: 83 | Thanked: 4 times | Joined on Mar 2010 @ Birmingham England
#5
Originally Posted by Joorin View Post
Use the file command to find out what kind of files you're going to investigate:
Code:
file /usr/bin/7z
If it's identified as a text file or shell script, look in it with
Code:
cat /usr/bin/7z
Now you 'll see what it does. Now have a look at /usr/lib/p7zip/7z in the same way.

~ $ file /usr/bin/7z
-sh: file: not found
~ $ cat /usr/bin/7z
#! /bin/sh
exec /usr/lib/p7zip/7z "$@"
~ $ /usr/lib/p7zip/7z
-sh: /usr/lib/p7zip/7z: Too many levels of symbolic links
~ $

that's what I got after them, I'm sorry, but I am a complete novice.
 
Posts: 726 | Thanked: 345 times | Joined on Apr 2010 @ Sweden
#6
Originally Posted by rokafellaskank View Post
~ $ file /usr/bin/7z
-sh: file: not found
Ah, I assumed the file command would be installed. My bad but no worries.

~ $ cat /usr/bin/7z
#! /bin/sh
exec /usr/lib/p7zip/7z "$@"
This means that every time that you use the 7z command, the file /usr/lib/p7zip/7z will be called with all the arguments that you supplied.

~ $ /usr/lib/p7zip/7z
-sh: /usr/lib/p7zip/7z: Too many levels of symbolic links
~ $

that's what I got after them, I'm sorry, but I am a complete novice.
The next step is to look at that special file:
Code:
cd /usr/lib/p7zip
ls -l
This will show you what is stored in that folder together with information about who can do what with the files. If I were to guess, you'll find something along the lines of
Code:
lrwxrwxrwx 1 root root <some date> 7z -> 7z
and that's a problem.
 

The Following User Says Thank You to Joorin For This Useful Post:
rokafellaskank's Avatar
Posts: 83 | Thanked: 4 times | Joined on Mar 2010 @ Birmingham England
#7
~ $ cd /usr/lib/p7zip
/opt/maemo/usr/lib/p7zip $ ls -l
lrwxrwxrwx 1 root root 27 Jul 7 01:05 7z -> /opt/maemo/usr/lib/p7zip/7z
lrwxrwxrwx 1 root root 30 Jul 7 01:05 7z.so -> /opt/maemo/usr/lib/p7zip/7z.so
lrwxrwxrwx 1 root root 34 Jul 7 01:05 7zCon.sfx -> /opt/maemo/usr/lib/p7zip/7zCon.sfx
lrwxrwxrwx 1 root root 28 Jul 7 01:05 7za -> /opt/maemo/usr/lib/p7zip/7za
-rwxr-xr-x 1 root root 685292 Jan 11 16:53 7zr
/opt/maemo/usr/lib/p7zip $


so I guess it's not looking too good then. could I not uninstall 7z then re-install it, or is that too easy.
 
Posts: 726 | Thanked: 345 times | Joined on Apr 2010 @ Sweden
#8
Three days a go someone, or something, messed up your 7zip installation. Uninstalling and installing might very well be the easiest way to fix it.

But depending on how messed up it is, the uninstalling might give some complaints, so be prepared for that.
 

The Following User Says Thank You to Joorin For This Useful Post:
rokafellaskank's Avatar
Posts: 83 | Thanked: 4 times | Joined on Mar 2010 @ Birmingham England
#9
yea, that sounds about right, I was downloading ScummVm game torrents, that's when it stopped working.

so to uninstall it do I type

sudo gainroot
apt-get uninstall p7zip

that doesn't work, does anybody know how to un-install it?
cheers.

Last edited by rokafellaskank; 2010-07-10 at 15:05.
 
Posts: 65 | Thanked: 27 times | Joined on Jun 2010
#10
Use the remove or purge switch, like
apt-get remove X
apt-get purge X
 

The Following User Says Thank You to barzam For This Useful Post:
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 23:27.