When trying to unzip some wordpress themes I had the same issue.
I've done some testing and found out why this happens. :)
If you do unzip -l on your zip file and the initial directory doesn't
have a trailing slash, unzip will incorrectly create a file therefore
blocking any attempts to write further files into that directory.
Examples:
1. This zip file causes errors on attempts to expand it.
unzip -l bluedark-10.zip
Archive: bluedark-10.zip
Length Date Time Name
--------- ---------- ----- ----
0 2010-01-21 07:06 bluedark-10 <------------ Notice there's no
trailing slash for directory names
1560 2009-11-09 17:35 bluedark-10/sidebar.php
3375 2009-11-09 17:35 bluedark-10/header1.php
222 2009-11-09 17:35 bluedark-10/links.php
1942 2009-11-09 17:35 bluedark-10/single.php
0 2009-11-09 17:35 bluedark-10/images <------------ Same here too !
2820 2009-11-09 17:35 bluedark-10/images/panel.png
<snip>
2. This one works fine.
unzip -l themorningafter.zip
Archive: themorningafter.zip
Length Date Time Name
--------- ---------- ----- ----
0 2010-09-10 10:16 themorningafter/ <------------ This time, the
trailing slash is present
1124 2010-06-21 11:36 themorningafter/ie.css
4457 2010-09-10 10:12 themorningafter/comments.php
4656 2010-09-10 10:12 themorningafter/home.php
3781 2010-09-10 10:12 themorningafter/archive.php
0 2010-09-10 10:16 themorningafter/styles/ <------------ Here too.
0 2010-09-10 10:16 themorningafter/styles/default/
18 2010-06-21 11:36 themorningafter/styles/default.css
4452 2010-09-10 10:12 themorningafter/header.php
0 2010-09-10 10:16 themorningafter/functions/ <------------ Yada
yada.
1996 2010-06-21 11:36 themorningafter/functions/admin-theme-page.php
<snip>
Hope this helps someone.
I'll check with the upsteam developers, see if this issue is known about and
post back more info.
Regards,
SpamHandle
--
unzip extracts directories as symlinks
https://bugs.launchpad.net/bugs/147866
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs