Bug#2536: dpkg inappropriately marks packages as installed
Package: dpkg
Ian Jackson:
You must have looked while packages were `unpacked'; dpkg chmods
the scripts to make them executable before it runs them, IIRC.
If it doesn't please let me know and report it as a bug :-).
dpkg apparently doesn't necessarily set all the execute bits before it
marks a package as installed. I believe all of these were installed
using version 1.1.0 -- I don't know how I'd verify that.
Below is an automatically generated list of packages which appear to
be installed, and which have associated with them unexecutable
programs in either /var/lib/dpkg/info/ or /usr/bin
I've also included the files which where considered for this report.
[There's a few spurious elements in this list, but I don't think it's
worth bothering to remove those elements for the purpose of this bug
report.]
As an aside: I'm almost (but not quite) certain that dpkg hit a file
system full watermark during the installation run that probably
installed these files. I don't have enough information on this event
to make a real solid bug report, and I don't have the time to play
around with dpkg behavior under partition full conditions. [Briefly,
when a belated df reported I had a couple megs left, I started some
recursive rm's on some junk in some non-critical areas of my system
(e.g. sudo rm -rf /usr/src/ftap*&). It took some time to get
these going ]
--
Raul
bash$ rm -f /tmp/listing; ls -l /usr/bin/* /var/lib/dpkg/info/*.p* | grep -v x | cut -c56-| grep / | while read f; do echo $f >>/tmp/listing; case $f in /var/lib/dpkg/*) p=`basename $f|cut -f1 -d.`;; *) p=`dpkg -S $f | cut -f1 -d:`;; esac; echo $p; done | sort | uniq | while read p; do dpkg -s $p | grep 'Status:.*installed' >/dev/null && dpkg -s $p; done; ls -l `cat /tmp/listing`
Package: doc-debian
Status: install ok installed
Section: doc
Maintainer: Sven Rudolph <sr1@inf.tu-dresden.de>
Version: 1.0-1
Recommends: info-browser
Description: Debian Manual, FAQ and other documents
The doc-debian package provides the current Debian-FAQ (in postscript, dvi, ascii
and GNU info form) and the Debian Manual as well as several other bits of
information about Debian.
.
All files are available at ftp://ftp.debian.org/debian/doc and mirrors thereof.
Package: guile
Status: install ok installed
Priority: optional
Section: devel
Maintainer: Klee Dienes <klee@mit.edu>
Version: 0.4.0-1
Description: The GNU Extension Language.
Package: libgdbm1-dev
Status: install ok installed
Priority: standard
Section: devel
Maintainer: Ray Dassen <jdassen@wi.LeidenUniv.nl>
Version: 1.7.3-9
Provides: libgdbm-dev
Depends: libc5-dev (>=5.2.16), libgdbm1 (>=1.7.3)
Conflicts: libgdbm-dev
Description: GNU dbm database routines (development files)
GNU dbm (`gdbm') is a library of database functions that use extendible
hashing and works similarly to the standard UNIX `dbm' functions.
.
The basic use of `gdbm' is to store key/data pairs in a data file, thus
providing a persistent version of the `dictionary' Abstract Data Type
(`hash' to perl programmers).
Source: libgdbm
Package: win32binutils
Status: install ok installed
Maintainer: Klee Dienes <klee@sedona.com>
Version: 2.6.cygnus-1
Depends: libc5
Recommends: win32binutils, win32gcc
Description: Compilation Utilities for the Win32 Cross-Compiler
-rw-r--r-- 1 root root 22846 Nov 12 11:07 /usr/bin/acs.hlp
-rw-r--r-- 1 root root 57172 Mar 7 17:22 /usr/bin/byacc
-rw-r--r-- 1 root root 23036 Mar 7 17:22 /usr/bin/i386-unknown-cygwin32-c++filt
-rw-r--r-- 1 root root 41060 Mar 7 17:22 /usr/bin/i386-unknown-cygwin32-gasp
-rw-r--r-- 1 root root 241816 Mar 7 17:22 /usr/bin/i386-unknown-cygwin32-objcopy
-rw-r--r-- 1 root root 283532 Mar 7 17:22 /usr/bin/i386-unknown-cygwin32-objdump
-rw-r--r-- 1 root root 140728 Mar 7 17:22 /usr/bin/i386-unknown-cygwin32-size
-rw-r--r-- 1 root root 140688 Mar 7 17:22 /usr/bin/i386-unknown-cygwin32-strings
-rw-r--r-- 1 root root 10295 Dec 1 05:25 /usr/bin/p10cfgd
-rw-r--r-- 1 root root 170 Dec 8 22:55 /var/lib/dpkg/info/cdtool.postinst
-rw-r--r-- 1 root root 299 Jan 27 10:41 /var/lib/dpkg/info/cvs.postinst
-rw-r--r-- 1 root root 52 Mar 6 18:27 /var/lib/dpkg/info/doc-debian.prerm
-rw-r--r-- 1 root root 90 Jan 27 17:33 /var/lib/dpkg/info/guile.prerm
-rw-r--r-- 1 root root 193 Jan 15 18:27 /var/lib/dpkg/info/ispell.postinst
-rw-r--r-- 1 root root 93 Jan 15 18:27 /var/lib/dpkg/info/ispell.prerm
-rw-r--r-- 1 root root 54 Feb 29 16:15 /var/lib/dpkg/info/libgdbm1-dev.postrm
-rw-r--r-- 1 root root 279 Feb 27 14:43 /var/lib/dpkg/info/libreadline2-dev.postinst
-rw-r--r-- 1 root root 96 Feb 27 14:43 /var/lib/dpkg/info/libreadline2-dev.postrm
-rw-r--r-- 1 root root 51 Jan 24 13:03 /var/lib/dpkg/info/mc.postinst
-rw-r--r-- 1 root root 91 Jan 24 13:03 /var/lib/dpkg/info/mc.postrm
-rw-r--r-- 1 root root 42 Jan 24 13:03 /var/lib/dpkg/info/mc.prerm
-rw-r--r-- 1 root root 1267 Mar 7 08:47 /var/lib/dpkg/info/watchdog.postinst
-rw-r--r-- 1 root root 91 Mar 7 08:47 /var/lib/dpkg/info/watchdog.postrm
-rw-r--r-- 1 root root 79 Mar 7 08:47 /var/lib/dpkg/info/watchdog.prerm
-rw-r--r-- 1 root root 1734 Mar 1 05:45 /var/lib/dpkg/info/wenglish.postinst
-rw-r--r-- 1 root root 680 Mar 1 05:45 /var/lib/dpkg/info/wenglish.prerm
-rw-r--r-- 1 root root 17 Mar 7 17:19 /var/lib/dpkg/info/win32binutils.prerm
bash$
Reply to: