checkinstall cannot install

Bug #115107 reported by permafrost91
6
Affects Status Importance Assigned to Milestone
CheckInstall
Fix Released
Unknown
checkinstall (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: checkinstall

Running 32-bit Feisty.

When I try to install a self-compiled package with checkinstall, I get this error message:

(Reading database ... 134050 files and directories currently installed.)
Unpacking pidgin (from .../pidgin_2.0.0-1_i386.deb) ...
dpkg: error processing /home/*****/Downloads/pidgin-2.0.0/pidgin_2.0.0-1_
i386.deb (--install):
 trying to overwrite `/usr/bin/nm', which is also in package binutils
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Errors were encountered while processing:
 /home/*****/Downloads/pidgin-2.0.0/pidgin_2.0.0-1_i386.deb

The above example is for Pidgin but I have had the same problem with The Gimp development branch. I don't have this problem with all packages, however (Murrine theme, for example, worked fine, as did Bluefish CVS). All packages (except the Murrine theme) were compiled with --prefix=/usr/local.

So I decided to run checkinstall with --exclude=/usr/bin/nm. Now checkinstall simply complains about a different file from a different package. These are the files checkinstall complains about in order they came up as errors with Pidgin (same error messages as above, just different files and different packages):

- /usr/bin/nm
- /usr/bin/ld
- /usr/bin/strip
- /usr/lib/libgconf2-4/2/libgconfbackend-xml.so
- /usr/lib/gcc/i486-linux-gnu/4.1.2/crtbeginS.o
- /usr/lib/gcc/i486-linux-gnu/4.1.2/collect2
- /usr/lib/gcc/i486-linux-gnu/4.1.2/crtendS.o
- /usr/bin/gcc

Now that all these files are excluded, checkinstall hangs at the following step although the package (Pidgin in this case) seems to be installed (I can run Pidgin and it appears in Synaptic):

Copying files to the temporary directory...OK
Striping ELF binaries and libraries...OK
Compressing man pages...OK
Building file list...OK
Building Debian package...OK
Installing Debian package...

The Gimp followed a similar install procedure, with the following files that needed to be excluded:

- /usr/bin/nm
- /usr/bin/ld
- /usr/bin/strip
- /usr/lib/gcc/i486-linux-gnu/4.1.2/crtbeginS.o
- /lib/crti.o

At this point, checkinstall refuses to go any further because of /lib/crti.o even though I excluded (it is, apparently, in the Pidgin package I just installed).

I have not compiled any other packages as far as these two so I cannot comment on anything else. I do know that ffmpeg did not work with checkinstall for me either though.

Checkinstall did not have these problems in previous versions (Edgy, Dapper). I will gladly provide any more information if requested.

Revision history for this message
Adric Riedel (adric-riedel) wrote :

I have also experienced this exact problem when trying to build a newer version of Filelight (1.0 is not in the repositories yet) and xsidplay (to get libsidplay2 support). I get failures upon trying to overwrite /bin/ld.

Upon examination of the filelight .deb, I noticed that it also included all the files the above poster listed, and a couple of files from my home directory in the .qt configuration settings. I have no idea why it decided it needed to do that either. Most of these extraneous files, such as /usr/bin/ld, had zero size.

Now, in the case of xsidplay I've done it often enough I actually made a script to do most of it for me. This script was unaltered, and worked before but does not now.
In the case of Filelight, I downloaded the new source and the source deb currently in the repositories (from which I copied the debian/ folder) and ran ./configure and then checkinstall -D. The configure appeared to work perfectly.

Revision history for this message
Jorge Maturana (jorge-maturana) wrote :

I had a similar problem installing gnuplot 4.2 on Feisty:

(Reading database ... 132385 files and directories currently installed.)
Unpacking gnuplot (from .../gnuplot_4.2.0-1_i386.deb) ...
dpkg: error processing /home/***/Sources/gnuplot4.2/gnuplot-4.2.0/gnuplot_4.2.0-1_i386.deb (--install):
 trying to overwrite `/usr/share/texmf/ls-R', which is also in package tex-common
Errors were encountered while processing:
 /home/***/Sources/gnuplot4.2/gnuplot-4.2.0/gnuplot_4.2.0-1_i386.deb
/var/tmp/XPOHLAMWPQVpCeHYohHVX/dpkginstall.log (END)

From a newbie point of view, and following the directions in http://whiterosecreations.nl/linux/index.php (an explanation is offered there) i did:

$ sudo dpkg --force-overwrite -i /home/***/Sources/gnuplot4.2/gnuplot-4.2.0/gnuplot_4.2.0-1_i386.deb
$ auto-apt run ./configure
$ make
$ sudo checkinstall -D

It worked for me, hope it helps.

Revision history for this message
Nicola Ferralis (feranick) wrote :

I have the same problem, trying to produce a deb for the scientific program Gwyddion (gwyddion.net). doing a "make install" works though. Using the deb from the checkinstall website, works too.

Revision history for this message
Nicola Ferralis (feranick) wrote : Known bug from upstream

It is a well known bug from upstream, in checkinstall version 1.6.1.

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=404542

Version 1.6.0 ported from Edgy works perfectly. Since 1.6.1 is basically unusable, I'd strongly recommend to downgrade to version 1.6.0-2ubuntu1

http://packages.ubuntu.com/edgy/admin/checkinstall

It would be nice if the downgrade would be made available through the official repos.

Changed in checkinstall:
status: Unknown → Confirmed
Changed in checkinstall:
status: Confirmed → Fix Released
Revision history for this message
Albin Tonnerre (lutin) wrote :

checkinstall (1.6.1-4ubuntu1) gutsy; urgency=low

  * Merge from Debian unstable. Remaining Ubuntu changes:
    - Use /usr/bin/which instead of which. (LP: #4423)
    - add make to Depends, checkinstall doesn't work without it. (LP: #3142)
    - Modify Maintainer value to match Debian-Maintainer-Field Spec
  * Debian version fixes LP: #115107

 -- Albin Tonnerre <email address hidden> Wed, 22 Aug 2007 11:59:23 +0200

Changed in checkinstall:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.