Update 2012-02-28: Consider upgrading to BackupPC 3.2.0 to resolve this.
We recently upgraded our BackupPC servers to BackupPC 3.1.0 on Ubuntu 10.04 Lucid Lynx. It’s working almost perfectly. However, the “Download ZIP archive” restore option no longer works. This is due to a bug in recent version of the Archive::Zip Perl module which generates corrupt ZIP archives.
Note to developers: when releasing new versions of your library, try to avoid breaking its core functionality.
If you try decompressing a corrupted file, you’ll see a message like this:
tyler@laptop:~$ unzip restore.zip Archive: restore.zip End-of-central-directory signature not found. Either this file is not a zipfile, or it constitutes one disk of a multi-part archive. In the latter case the central directory and zipfile comment will be found on the last disk(s) of this archive. unzip: cannot find zipfile directory in one of restore.zip or restore.zip.zip, and cannot find restore.zip.ZIP, period.
I posted a solution on the mailing list. I’ve since uploaded an older version (1.18-1) of this package to my repository, so the process is even more streamlined.
If you are using my repo:
apt-get install libarchive-zip-perl=1.18-1
echo "libarchive-zip-perl hold" | dpkg --set-selections
If you aren’t using my repo but want a quick fix:
wget http://www.tolaris.com/apt/pool/main/liba/libarchive-zip-perl/libarchive-zip-perl_1.18-1_all.deb
dpkg -i libarchive-zip-perl_1.18-1_all.deb
echo "libarchive-zip-perl hold" | dpkg --set-selections
-
-
Thank you so much for posting this fix. I’m running Ubuntu 10.04.3 LTS and this has resolved the issue for me.
-
(This comment has been imported from email – please ask questions as comments so others can benefit. -Tyler)
Hi all,
I downloaded the libarchive-zip-perl_1.18-1_all.deb manually then copied it up to the server, then followed the process below from a putty session:
dpkg -i libarchive-zip-perl_1.18-1_all.deb
echo “libarchive-zip-perl hold” | dpkg –set-selections//Rebooted server
Rebootdpkg -s libarchive-zip-perl
//Version Result
Package: libarchive-zip-perl
Status: hold ok installed
Priority: optional
Section: perl
Installed-Size: 376
Maintainer: Ubuntu Core Developers
Architecture: all
Version: 1.18-1
Depends: perl (>= 5.6.0-16), libcompress-zlib-perl
Description: Module for manipulation of ZIP archives
The Archive::Zip module allows a Perl program to create, manipulate,
read, and write Zip archive files.
.
Zip archives can be created, or you can read from existing zip files.
Once created, they can be written to files, streams, or strings.
.
Members can be added, removed, extracted, replaced, rearranged, and
enumerated. They can also be renamed or have their dates, comments,
or other attributes queried or modified. Their data can be
compressed or uncompressed as needed. Members can be created from
members in existing Zip files, or from existing directories, files,
or strings.
Original-Maintainer: Ben BurtonThis tells me that I have downgraded to version: 1.18-1, but I am still getting corruption on a 10GB zip.
Any ideas?
Best regards
Dale
-
-
10 comments
Comments feed for this article
Trackback link: https://www.tolaris.com/2010/07/21/fixing-backuppcs-download-zip-archive-restore-option-in-ubuntu-lucid/trackback/