Package: dpkg
Version: 1.16.1
Severity: important

Hello,

  While having a database of packages with status: installed ok unpacked
  $ grep -c unpacked /var/lib/dpkg/status
  129
  $ grep -c installed /var/lib/dpkg/status
  12

  I run 'dpkg --configure -a' to configure the packages:
  # dpkg --configure -a
  # grep -c unpacked var/lib/dpkg/status
  0
  # grep -c installed var/lib/dpkg/status
  141

  But dpkg does not seem to trigger postinst scripts nor place conffiles, as it 
states in
  dpkg(1) manpage:

         --configure package...|-a|--pending
               Configure a package which has been unpacked but not yet 
configured.  If  -a  or  --pending  is  given
               instead of package, all unpacked but unconfigured packages are 
configured.

               To  reconfigure  a  package  which  has  already been 
configured, try the dpkg-reconfigure(8) command
               instead.

               Configuring consists of the following steps:

               1. Unpack the conffiles, and at the same time back up the old 
conffiles, so that they can be restored
               if something goes wrong.

               2. Run postinst script, if provided by the package.

  To be able to reproduce:
  # multistrap -f armhf.conf -d test-chroot
  # cp /usr/bin/qemu-arm-static test-chroot/usr/bin
  # chroot test-chroot dpkg --configure -a

  being armhf.conf as
  # Example multistrap configuration file for a sid build chroot
  # Need to use cascading to select the toolchain for a cross arch.

  [General]
  arch=armhf
  # same as --tidy-up option if set to true
  cleanup=true
  # same as --no-auth option if set to true
  # keyring packages listed in each debootstrap will
  # still be installed.
  noauth=true
  # extract all downloaded archives (default is true)
  unpack=true
  # the order of sections is not important.
  # the debootstrap option determines which repository
  # is used to calculate the list of Priority: required packages.
  debootstrap=Base
  aptsources=Base

  [Base]
  packages=apt dpkg-dev build-essential sudo
  packages=vim fakeroot debfoster debootstrap devscripts
  source=http://debian.advalem.net/debian-ports
  keyring=debian-ports-archive-keyring
  suite=unstable
  omitdebsrc=true

  OTOH, I did a minimal test with wget which seem to work fine:
  # apt-get download wget
  # dpkg --unpack wget_1.13-1_armhf.deb 
  Selecting previously unselected package wget.
  (Reading database ... 14124 files and directories currently installed.)
  Unpacking wget (from wget_1.13-1_armhf.deb) ...
  # dpkg --configure wget
  Setting up wget (1.13-1) ...

  Best regards

-- System Information:
Debian Release: wheezy/sid
  APT prefers stable
  APT policy: (500, 'stable'), (50, 'unstable'), (50, 'testing'), (50, 
'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.39-2-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages dpkg depends on:
ii  coreutils    8.13-2               
ii  libbz2-1.0   1.0.5-7              
ii  libc6        2.13-21              
ii  libselinux1  2.1.0-1              
ii  xz-utils     5.1.1alpha+20110809-2
ii  zlib1g       1:1.2.3.4.dfsg-3     

dpkg recommends no packages.

Versions of packages dpkg suggests:
ii  apt  0.8.15.8

-- Configuration Files:
/etc/dpkg/dpkg.cfg changed:
no-debsig
log /var/log/dpkg.log


-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to