[Debconf-devel] Bug#487300: debconf: purging a package doesn't always purge the template space if d-s-s is run after package installation

Bryan McLellan btm at loftninjas.org
Fri Jun 20 21:42:06 UTC 2008


Package: debconf
Version: 1.5.11etch1
Severity: minor


While trying to preseed ocsinventory-server_1.01-5_all to use a remote mysql server I found under certain circumstances I would receive:

  error: Cannot find a question for ocsinventory-server/mysql/admin-pass

Shortest steps to reproduce seem to be:
  installing the package, using dbconfig-common but letting it fail, choose ignore.
  run debconf-set-selections against a seed file
  purge the package
  trying to run debconf-set-selections again produces the above error

Running '/usr/share/debconf/fix_db.pl' will correct the problem and produces:
  debconf: template "ocsinventory-server/mysql/admin-pass" claims to be used by nonexistant question "ocsinventory-server/mysql/admin-pass"; removing 
that.

If debconf-set-selections is run before package installation rather than after, the problem doesn't appear.

-- System Information:
Debian Release: 4.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-6-686
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages debconf depends on:
ii  debconf-i18n                1.5.11etch1  full internationalization support 
ii  perl-base                   5.8.8-7etch3 The Pathologically Eclectic Rubbis

Versions of packages debconf recommends:
ii  apt-utils                   0.6.46.4-0.1 APT utility programs

-- debconf information:
  debconf-apt-progress/preparing:
  debconf-apt-progress/title:
  debconf-apt-progress/info:
  debconf-apt-progress/media-change:
* debconf/frontend: Dialog
* debconf/priority: high

-- partial debconf_debug on dpkg -P package
debconf (developer): <-- UNREGISTER ocsinventory-server/mysql/admin-pass
debconf (db configdb): trying to getfield(ocsinventory-server/mysql/admin-pass template) ..
debconf (db config): cache miss on ocsinventory-server/mysql/admin-pass
debconf (db configdb): getfield done by passwords
debconf (db configdb): trying to removeowner(ocsinventory-server/mysql/admin-pass ocsinventory-server) ..
debconf (db configdb): passing to passwords ..
debconf (developer): --> 0





More information about the Debconf-devel mailing list