LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Can't unpack certain archives (https://www.linuxquestions.org/questions/slackware-14/cant-unpack-certain-archives-4175553181/)

MRZA 09-10-2015 11:48 PM

Can't unpack certain archives
 
Hello. I'm trying to compile qt5 on Slackware64-current, but source archives fail to unpack.

Code:

$ tar xvf qt-everywhere-opensource-src-5.5.0.tar.gz 2> error.log
...
$ cat error.log
tar: qt-everywhere-opensource-src-5.5.0/qtdeclarative/examples/quick/text/fonts/content/fonts: Cannot mkdir: Not a directory
tar: Exiting with failure status due to previous errors
$ tar xvf qt-everywhere-opensource-src-5.4.2.tar.xz 2> error.log
...
$ cat error.log
tar: qt-everywhere-opensource-src-5.4.2/qtwayland/src/qtwaylandscanner: Cannot utime: Not a directory
tar: qt-everywhere-opensource-src-5.4.2/qtdeclarative/examples/quick/scenegraph/sgengine/window.cpp: Cannot open: Not a directory
tar: qt-everywhere-opensource-src-5.4.2/qtdeclarative/examples/quick/demos/samegame/content/SmokeText.qml: Cannot open: Not a directory
tar: qt-everywhere-opensource-src-5.4.2/qtdeclarative/examples/quick/shadereffects/content/qt-logo.png: Cannot open: Not a directory
tar: qt-everywhere-opensource-src-5.4.2/qtlocation/tests/auto/qplaceimage/qplaceimage.pro: Cannot open: Not a directory
tar: qt-everywhere-opensource-src-5.4.2/qtlocation/src/3rdparty/poly2tri/sweep/sweep.h: Cannot open: Not a directory
tar: qt-everywhere-opensource-src-5.4.2/qtsvg/examples/svg/embeddedsvgviewer/embeddedsvgviewer.cpp: Cannot open: Not a directory
tar: qt-everywhere-opensource-src-5.4.2/qtwebengine/src/3rdparty/chromium/base/win/scoped_comptr.h: Cannot open: Not a directory
tar: qt-everywhere-opensource-src-5.4.2/qtwebengine/src/3rdparty/chromium/chrome/app/theme/default_200_percent/common/omnibox_star.png: Cannot open: Not a directory
tar: qt-everywhere-opensource-src-5.4.2/qtwebengine/src/3rdparty/chromium/sandbox/win/src/ipc_unittest.cc: Cannot open: Not a directory
tar: qt-everywhere-opensource-src-5.4.2/qtwebengine/src/3rdparty/chromium/ui/resources/default_200_percent/common/checkbox_pressed.png: Cannot open: Not a directory
tar: qt-everywhere-opensource-src-5.4.2/qtwebengine/src/3rdparty/chromium/sdch/open-vcdiff/aclocal.m4: Cannot open: Not a directory
tar: qt-everywhere-opensource-src-5.4.2/qtwebengine/src/3rdparty/chromium/third_party/icu/source/i18n/i18n.vcxproj.filters: Cannot open: Not a directory
tar: qt-everywhere-opensource-src-5.4.2/qtwebengine/src/3rdparty/chromium/third_party/icu/source/data/lang/ja.txt: Cannot open: Not a directory
tar: qt-everywhere-opensource-src-5.4.2/qtwebengine/src/3rdparty/chromium/third_party/WebKit/Source/core/html/HTMLDirectoryElement.idl: Cannot open: Not a directory
tar: qt-everywhere-opensource-src-5.4.2/qtwebengine/src/3rdparty/chromium/third_party/fips181/convert.cc: Cannot open: Not a directory
tar: qt-everywhere-opensource-src-5.4.2/qtwebengine/src/3rdparty/chromium/third_party/protobuf/src/google/protobuf/repeated_field_reflection_unittest.cc: Cannot open: Not a directory
tar: qt-everywhere-opensource-src-5.4.2/qtwebengine/src/3rdparty/chromium/third_party/protobuf/src/google/protobuf/message_unittest.cc: Cannot open: Not a directory
tar: qt-everywhere-opensource-src-5.4.2/qtwebengine/src/3rdparty/chromium/third_party/protobuf/src/google/protobuf/compiler/code_generator.cc: Cannot open: Not a directory
tar: qt-everywhere-opensource-src-5.4.2/qtwebengine/src/3rdparty/chromium/third_party/pywebsocket/src/mod_pywebsocket/mux.py: Cannot open: Not a directory
tar: qt-everywhere-opensource-src-5.4.2/qtwebengine/src/3rdparty/chromium/third_party/libjingle/source/talk/base/httpbase.h: Cannot open: Not a directory
tar: qt-everywhere-opensource-src-5.4.2/qtwebengine/src/3rdparty/chromium/third_party/libjingle/source/talk/media/other/linphonemediaengine.h: Cannot open: Not a directory
tar: qt-everywhere-opensource-src-5.4.2/qtwebengine/src/3rdparty/chromium/third_party/mesa/src/src/glx/dri2.h: Cannot open: Not a directory
tar: qt-everywhere-opensource-src-5.4.2/qtwebengine/src/3rdparty/chromium/third_party/mesa/src/src/mesa/swrast/s_zoom.c: Cannot open: Not a directory
tar: qt-everywhere-opensource-src-5.4.2/qtwebengine/src/3rdparty/chromium/third_party/freetype2/src/src/type42/type42.c: Cannot open: Not a directory
tar: qt-everywhere-opensource-src-5.4.2/qtwebengine/src/3rdparty/chromium/third_party/freetype2/src/src/pfr/pfrload.c: Cannot open: Not a directory
tar: qt-everywhere-opensource-src-5.4.2/qtwebengine/src/3rdparty/chromium/third_party/webrtc/base/crc32_unittest.cc: Cannot open: Not a directory
tar: qt-everywhere-opensource-src-5.4.2/qtwebengine/src/3rdparty/chromium/third_party/webrtc/base/basictypes.h: Cannot open: Not a directory
tar: qt-everywhere-opensource-src-5.4.2/qtwebengine/src/3rdparty/chromium/third_party/webrtc/modules/video_capture/ios/rtc_video_capture_ios_objc.mm: Cannot open: Not a directory
tar: qt-everywhere-opensource-src-5.4.2/qtwebengine/src/3rdparty/chromium/third_party/fontconfig/src/conf.d/49-sansserif.conf: Cannot open: Not a directory
tar: qt-everywhere-opensource-src-5.4.2/qtwebengine/src/3rdparty/chromium/net/base/host_mapping_rules.h: Cannot open: Not a directory
tar: qt-everywhere-opensource-src-5.4.2/qtwebengine/src/3rdparty/chromium/cc/resources/managed_tile_state.h: Cannot open: Not a directory
$ tar --version
tar (GNU tar) 1.26
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by John Gilmore and Jay Fenlason.

I can't find anything useful regarding these errors. I tried to untar on SSD and external USB-HDD, no luck :(

chris.willing 09-11-2015 12:54 AM

Are you certain the download was complete?
Where did you download from? I used the url from the Sbo qt5.info file - just changed the version numbers i.e.
Code:

wget http://download.qt-project.org/official_releases/qt/5.5/5.5.0/single/qt-everywhere-opensource-src-5.5.0.tar.xz
File size is
Code:

chris@d6:/storage/distfiles$ ls -l qt-everywhere-opensource-src-5.5.0.tar.xz
-rw-r--r-- 1 chris vislab 319474656 Jul  1 16:44 qt-everywhere-opensource-src-5.5.0.tar.xz

(notice tar.xz not tar.gz). It unpacks normally.

chris

MRZA 09-11-2015 07:35 AM

At least one of these archives is consistent (md5sum ok).
On another PC with Slackware64 14.1 I don't get any errors.

gnashley 09-11-2015 02:18 PM

I have occasionally run into *.tar.*z archives which I could only untar by decompressing them first and then using tar on them.

ReaperX7 09-11-2015 03:55 PM

Usually,

Code:

tar -xf *.*
works for anything. The only time an archive won't decompress is if the download was incomplete, or the archive was corrupted.

dugan 09-11-2015 04:32 PM

You didn't run out of disk space, did you?

MRZA 09-12-2015 03:33 AM

Quote:

Originally Posted by gnashley (Post 5419034)
I have occasionally run into *.tar.*z archives which I could only untar by decompressing them first and then using tar on them.

Wow. That works! But why?

Quote:

Originally Posted by dugan (Post 5419085)
You didn't run out of disk space, did you?


I have plenty of free space. That's definitely not a problem.

ReaperX7 09-12-2015 09:53 AM

Check the package's md5 checksum.

gnashley 09-13-2015 02:31 AM

I think that it may be because of creating the archives with BSD tar or some other variety of packer. There is/was a project called 'defora' where all his source archives are like that. Worth keeping in mind if anyone is scripting routines to unpack archives...

55020 09-13-2015 05:16 AM

Quote:

Originally Posted by MRZA (Post 5418775)
I tried to untar on SSD and external USB-HDD, no luck :(

Is that a clue? What filesystems do the SSD and external USB-HDD use? Are they formatted with FAT or EXFAT, and does the extract work on a proper filesystem like ext4? :scratch:

MRZA 09-14-2015 07:16 AM

Quote:

Originally Posted by ReaperX7 (Post 5419394)
Check the package's md5 checksum.

md5 checksum is correct.
Quote:

Originally Posted by 55020 (Post 5419691)
Is that a clue? What filesystems do the SSD and external USB-HDD use? Are they formatted with FAT or EXFAT, and does the extract work on a proper filesystem like ext4? :scratch:

reiserfs 3.6 on SSD and ext4 on USB-HDD

I still can't figure out what is wrong. I can untar the same package on another system with the same version of tar (both systems run slackware-current).

55020 09-14-2015 09:34 AM

Try strace.
http://linux.die.net/man/1/strace

MRZA 09-27-2015 11:06 AM

Now I can't unpack libreoffice archive :(

And unfortunately, I have no idea how to use strace in this case, because I get enormous amount of debug data. And I simply don't know what to look for.

zakame 09-28-2015 03:04 AM

Its probably because of either (a), murderfs, (b) murdered ssd/hdd, or (c) both.

Have you tried moving the ssd and hdd somewhere else?

baldzhang 09-28-2015 03:55 AM

I found a tar problem with largefile in -current

when run tar -czf a.tgz some-file-large-than-2G
tar told me "File too large"

after some research and compare,
I found this problem is occur after glibc upgrade to 2.22
tar with glibc 2.21 is OK.


All times are GMT -5. The time now is 02:31 PM.