[Bug 686414] Re: dpkg build corrupted packages, if package size is over 2 GB
DoohGuy
686414 at bugs.launchpad.net
Fri Oct 7 21:41:36 UTC 2011
I'm sorry to report that this bug is still unresolved in Natty. I'm
using dpkg 1.16.1 and the procedure to reproduce is:
Create a directory structure like this:
debian/
debian/DEBIAN
debian/DEBIAN/control
debian/DEBIAN/postinst
debian/usr/
debian/usr/local/
debian/usr/local/HUGE-FILE-BIGGER-THAN-2GB
Then create the deb with:
fakeroot dpkg-deb --build debian
Which completes without error, however, the resulting deb is corrupted.
ar -t debian.deb
ar: debian.deb: Malformed archive
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to dpkg in Ubuntu.
https://bugs.launchpad.net/bugs/686414
Title:
dpkg build corrupted packages, if package size is over 2 GB
Status in “dpkg” package in Ubuntu:
Fix Released
Bug description:
Binary package hint: dpkg
I tried to build a binary package from a Xilinx ISE installation. The program have a size about 7.4 GB.
I copied the whole installation tree to a folder in /tmp/ created a DEBIAN folder, the required control file and build the package with:
fakeroot
dpkg -b deb xilinx-ise-12.1-all.deb
As result the package is created, it have a size of 2,5 GB. No error
message occur. So i assumed everything is fine.
But when you try to install the package you get the error message:
(Lese Datenbank ... 125854 Dateien und Verzeichnisse sind derzeit installiert.)
Entpacke xilinx-ise (aus xilinx-ise-12.1-all.deb) ...
dpkg-deb: Datei »xilinx-ise-12.1-all.deb« ist defekt - falsche Kennung am Ende der ersten Kopfzeile
dpkg: Fehler beim Bearbeiten von xilinx-ise-12.1-all.deb (--install):
Unterprozess dpkg-deb --fsys-tarfile gab den Fehlerwert 2 zurück
Fehler traten auf beim Bearbeiten von:
xilinx-ise-12.1-all.deb
Also opening the package with an archive manager fails. I used File
Roller 2.30.1.1 for this task. It reports the error: "... Malformed
archive"
I guess the problem is the size of the archive. So I disperse the installation on three packages each under 1 GB. It works all fine when installing these three packages.
ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: dpkg 1.15.5.6ubuntu4.3
ProcVersionSignature: Ubuntu 2.6.32-21.32-generic 2.6.32.11+drm33.2
Uname: Linux 2.6.32-21-generic i686
Architecture: i386
Date: Tue Dec 7 10:23:07 2010
ProcEnviron:
LANG=de_DE.UTF-8
SHELL=/bin/bash
SourcePackage: dpkg
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dpkg/+bug/686414/+subscriptions
More information about the foundations-bugs
mailing list