LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-23-2005, 07:43 AM   #1
gtludwig
Member
 
Registered: Oct 2005
Location: Ireland
Distribution: Slackware64-current
Posts: 233

Rep: Reputation: 18
tar problems [Solved]


Hello, guys,

I'm having a problem that may seem trivial to some but I've no idea how to solve.

I've downloaded a library and it was compressed as .tar.gz. So, I tried:

Quote:
tar -xvzf package_name.tar.gz
And this is what returned from the terminal:

Quote:
tar: Mesa-6.3.2/src/glw/README: Cannot change ownership to uid 2001, gid 100: Operation not permitted
Mesa-6.3.2/src/glw/depend
tar: Mesa-6.3.2/src/glw/depend: Cannot change ownership to uid 2001, gid 100: Operation not permitted
tar: Mesa-6.3.2/src/glx/x11/glcontextmodes.c: Cannot create symlink to `../../../src/mesa/drivers/dri/common/glcontextmodes.c': Operation not permitted
tar: Mesa-6.3.2/src/glx/x11/dispatch.c: Cannot create symlink to `../../../src/mesa/main/dispatch.c': Operation not permitted
tar: Error exit delayed from previous errors
There were a lot of such errors, I've posted just the last lines. The package's md5sum is ok.

I ran the tar command as root and there's no user on my system with this id (uid 2001). Also there's plenty of space left in the directory and the user (root) has permission to view & chance contents.

Anyone has any idea?

Thanks

Last edited by gtludwig; 10-24-2005 at 05:00 PM.
 
Old 10-23-2005, 07:46 AM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Looks to me like your trying to unpack this tarball in a directory that you don't have adequate permissions in.
 
Old 10-23-2005, 07:52 AM   #3
gtludwig
Member
 
Registered: Oct 2005
Location: Ireland
Distribution: Slackware64-current
Posts: 233

Original Poster
Rep: Reputation: 18
How do I check that? As root?
 
Old 10-23-2005, 08:03 AM   #4
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Quote:
Originally posted by gustaveiras
How do I check that? As root?
No, ls -al . will print out the present working directory permissions and ownership.
 
Old 10-23-2005, 08:12 AM   #5
gtludwig
Member
 
Registered: Oct 2005
Location: Ireland
Distribution: Slackware64-current
Posts: 233

Original Poster
Rep: Reputation: 18
There's a lot of stuff in this directory - actually some of the stuff here should be deleted (specially the hidden files). It was a home directory for my user on my ext3 partition /dev/hda2 and I backed it up at /dev/hda5 that has about 100Gb of space. Now I use this folder to download the programs I use. But I really need to perform a 5S on this folder...

Quote:
root@MCLAREN:/mnt/MCLAREN_D/home/gtl# ls -al
total 1074368
drwxrwxrwx 35 root root 65536 2005-10-23 11:02 ./
drwxrwxrwx 4 root root 65536 2005-10-22 13:03 ../
drwxrwxrwx 9 root root 65536 2005-10-09 20:40 .Azureus/
-rwxrwxrwx 1 root root 53 2005-10-09 19:38 .DCOPserver_(none)__0*
-rwxrwxrwx 1 root root 189 2005-10-09 19:38 .ICEauthority*
-rwxrwxrwx 1 root root 0 2005-10-20 21:35 .Xauthority-c*
-rwxrwxrwx 1 root root 787 2005-10-20 21:36 .bash_history*
drwxrwxrwx 3 root root 65536 2005-10-09 20:19 .emacs.d/
drwxrwxrwx 3 root root 65536 2005-10-09 20:19 .firefox/
drwxrwxrwx 4 root root 65536 2005-10-09 20:19 .fullcircle/
drwxrwxrwx 4 root root 65536 2005-10-20 00:24 .gaim/
drwxrwxrwx 2 root root 65536 2005-10-09 20:40 .gftp/
drwxrwxrwx 2 root root 65536 2005-10-09 20:40 .gxine/
drwxrwxrwx 3 root root 65536 2005-10-09 20:19 .java/
drwxrwxrwx 5 root root 65536 2005-10-19 13:48 .kde/
-rwxrwxrwx 1 root root 158 2005-10-05 20:12 .kderc*
drwxrwxrwx 2 root root 65536 2005-10-17 12:54 .links/
drwxrwxrwx 3 root root 65536 2005-10-09 20:19 .local/
-rwxrwxrwx 1 root root 1980 2005-10-05 20:40 .mailcap*
drwxrwxrwx 3 root root 65536 2005-10-09 20:40 .mcop/
drwxrwxrwx 5 root root 65536 2005-10-09 20:40 .mozilla/
drwxrwxrwx 2 root root 65536 2005-10-19 18:45 .qt/
-rwxrwxrwx 1 root root 0 2005-10-19 13:45 .screenrc*
drwxrwxrwx 4 root root 65536 2005-10-09 20:19 .thumbnails/
drwxrwxrwx 4 root root 65536 2005-10-17 10:34 .thunderbird/
drwxrwxrwx 8 root root 65536 2005-10-17 10:34 .vegastrike.4.x/
drwxrwxrwx 2 root root 65536 2005-10-09 20:40 .xine/
drwxrwxrwx 2 root root 65536 2005-10-09 20:40 Desktop/
-rwxrwxrwx 1 root root 16867 2005-10-05 20:58 Guia\ Completo\ Linux.zip.to
rrent*
drwxrwxrwx 20 root root 65536 2005-10-17 08:47 MPlayer-1.0pre7try2/
-rwxrwxrwx 1 root root 6868786 2005-10-10 12:10 MPlayer-1.0pre7try2.tar.bz2*
drwxrwxrwx 10 root root 65536 2005-10-23 10:33 Mesa-6.3.2/
-rwxrwxrwx 1 root root 4041081 2005-10-23 09:53 MesaLib-6.3.2.tar.gz*
-rwxrwxrwx 1 root root 13514756 2005-10-20 01:05 Moto\ 336\ kmh.mpg*
-rwxrwxrwx 1 root root 11340128 2005-10-05 20:36 NVIDIA-Linux-x86-1.0-7676-pk
g1.run*
-rwxrwxrwx 1 root root 214522211 2005-10-13 17:46 OpenCASCADE_Linux.tgz*
-rwxrwxrwx 1 root root 80302 2005-10-10 23:12 Servidor.jpg*
-rwxrwxrwx 1 root root 3007553 2005-10-20 01:05 apollon-installer-0.8.1.run*
-rwxrwxrwx 1 root root 4175943 2005-10-23 11:02 audacity-src-1.2.3.tar.gz*
drwxrwxrwx 3 root root 65536 2005-10-09 20:40 azureus/
-rwxrwxrwx 1 root root 492 2005-10-16 11:55 dhcpd.rar*
-rwxrwxrwx 1 root root 533771799 2005-10-12 17:37 econquer0628.rar*
drwxrwxrwx 3 root root 65536 2005-10-09 20:19 firefox-1.0.7.installer/
drwxrwxrwx 3 root root 65536 2005-10-09 20:40 firefox-installer/
drwxrwxrwx 10 root root 65536 2005-10-20 15:18 gift-0.11.8.1/
drwxrwxrwx 5 root root 65536 2005-10-20 15:20 gift-gnutella-0.0.10.1/
drwxrwxrwx 6 root root 65536 2005-10-20 15:19 gift-openft-0.2.1.6/
-rwxrwxrwx 1 root root 237 2005-10-16 12:01 ifcfg-eth0.rar*
drwxrwxrwx 7 root root 65536 2005-10-20 01:23 kguitar-0.5/
-rwxrwxrwx 1 root root 794803 2005-10-17 09:27 kguitar-0.5.tar.bz2*
-rwxrwxrwx 1 root root 48000634 2005-10-17 23:15 linux-2.6.13.3.tar.gz*
-rwxrwxrwx 1 root root 38375371 2005-10-17 15:10 linux-2.6.13.4.tar.bz2*
-rwxrwxrwx 1 root root 183 2005-10-16 12:00 network.rar*
drwxrwxrwx 2 root root 65536 2005-10-20 00:58 normal/
-rwxrwxrwx 1 root root 159 2005-10-16 12:00 resolv.rar*
-rwxrwxrwx 1 root root 2103 2005-10-06 09:54 samba.txt*
-rwxrwxrwx 1 root root 33101 2005-10-16 11:49 squid.rar*
-rwxrwxrwx 1 root root 147232 2005-10-10 11:16 swaret-1.6.2-noarch-1.tgz.ta r*
drwxrwxrwx 10 root root 65536 2005-10-09 20:41 thunderbird/
-rwxrwxrwx 1 root root 151671859 2005-10-05 23:18 vegastrike-0.4.3-base.bz2.ru n*
-rwxrwxrwx 1 root root 63505311 2005-10-12 12:49 vegastrike-0.4.3-music.bz2.r un*
drwxrwxrwx 13 root root 65536 2005-10-23 11:00 wxGTK-2.6.2/
drwxrwxrwx 7 root root 65536 2005-10-17 08:20 xmule-1.10.0b/
-rwxrwxrwx 1 root root 1366907 2005-10-20 15:51 xmule-1.10.1.tar.bz2*
drwxrwxrwx 8 root root 65536 2005-10-20 18:51 xmule-1.10.2/
-rwxrwxrwx 1 root root 1289442 2005-10-20 18:52 xmule-1.10.2.tar.bz2*
root@MCLAREN:/mnt/MCLAREN_D/home/gtl#
 
Old 10-23-2005, 08:43 AM   #6
gtludwig
Member
 
Registered: Oct 2005
Location: Ireland
Distribution: Slackware64-current
Posts: 233

Original Poster
Rep: Reputation: 18
could it be something I did not compile in my kernel (2.6.13.3) as built-in or module???
 
Old 10-23-2005, 09:24 AM   #7
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Everything is owned by root, are you root when untarring this file?
 
Old 10-23-2005, 09:25 AM   #8
gtludwig
Member
 
Registered: Oct 2005
Location: Ireland
Distribution: Slackware64-current
Posts: 233

Original Poster
Rep: Reputation: 18
yes, I'm logged in as root.
 
Old 10-23-2005, 09:27 AM   #9
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Quote:
Originally posted by gustaveiras
yes, I'm logged in as root.
Are you mounting this from another source since you have this in your /mnt directory path? If so, how is it mounted?
 
Old 10-23-2005, 09:36 AM   #10
gtludwig
Member
 
Registered: Oct 2005
Location: Ireland
Distribution: Slackware64-current
Posts: 233

Original Poster
Rep: Reputation: 18
this device is mounted in /etc/fstab as
Quote:
/dev/hda5 /mnt/MCLAREN_D vfat defaults,umask=000 1 0
 
Old 10-23-2005, 09:47 AM   #11
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Quote:
Originally posted by gustaveiras
this device is mounted in /etc/fstab as
type mount to see if this mount is read only or rewriteable..
 
Old 10-23-2005, 09:52 AM   #12
gtludwig
Member
 
Registered: Oct 2005
Location: Ireland
Distribution: Slackware64-current
Posts: 233

Original Poster
Rep: Reputation: 18
/dev/hda5 on /mnt/MCLAREN_D type vfat (rw,umask=000)
 
Old 10-24-2005, 04:42 PM   #13
gtludwig
Member
 
Registered: Oct 2005
Location: Ireland
Distribution: Slackware64-current
Posts: 233

Original Poster
Rep: Reputation: 18
Hello,

I tried to untar another package on /mnt/MCLAREN_D and the same error returned. Then I copied the very file to /home/gtl (my user account) and tried to untar. Worked perfectly! No errors at all! Does anyone has any clue to what happened???

Thanks!
 
Old 10-24-2005, 04:55 PM   #14
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
The problem is vfat

Linux' tar will try to set permissions and ownerships
which is IMPOSSIBLE on vfat, hence the failure.
Use a decent file-system instead.


Cheers,
Tink
 
Old 10-24-2005, 04:59 PM   #15
gtludwig
Member
 
Registered: Oct 2005
Location: Ireland
Distribution: Slackware64-current
Posts: 233

Original Poster
Rep: Reputation: 18
Ah! Now things are clearer! I use vfat on this partition so I can share it with my brothers who are pagans and use Windows...

Thanks for the hint!
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how can i decompress this tar.tar file? hmmm sounds new.. tar.tar.. help ;) kublador Linux - Software 14 10-25-2016 02:48 AM
tar tar cvf - . | (cd /root/; tar xvf -) ewt3y Linux - General 10 02-19-2014 10:55 AM
installation problems with libxml2-2.2.66.tar.gz and libxml2-devel2-2.6.20-3.tar.gz g-string 3 Linux - Software 6 11-24-2005 11:39 AM
tar problems yanik Debian 13 09-08-2005 04:11 PM
Diferance between rpm, tar, tar.gz, scr.tar, etc mobassir Linux - General 12 08-21-2003 06:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:46 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