package update-manager 1:0.93.18 failed to install/upgrade: ErrorMessage: SystemError in cache.commit(): E:Sub-process /usr/bin/dpkg returned an error code (1)

Bug #276606 reported by Lutfi
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
openldap (Ubuntu)
Fix Released
High
Unassigned
Declined for Karmic by Mathias Gug
Declined for Lucid by Mathias Gug
rkhunter (Ubuntu)
Invalid
High
adam
Declined for Karmic by Mathias Gug
Declined for Lucid by Mathias Gug
update-manager (Ubuntu)
Invalid
Undecided
Unassigned
Declined for Karmic by Mathias Gug
Declined for Lucid by Mathias Gug

Bug Description

Binary package hint: update-manager

Upgrade fro 8.0.4.1 to 8.10 got this

ProblemType: Package
Architecture: i386
DistroRelease: Ubuntu 8.10
ErrorMessage: ErrorMessage: SystemError in cache.commit(): E:Sub-process /usr/bin/dpkg returned an error code (1)

Package: update-manager 1:0.93.18
PackageArchitecture: all
SourcePackage: update-manager
Title: package update-manager 1:0.93.18 failed to install/upgrade: ErrorMessage: SystemError in cache.commit(): E:Sub-process /usr/bin/dpkg returned an error code (1)
Uname: Linux 2.6.24-21-generic i686

Revision history for this message
Lutfi (lutfiarab) wrote :
Revision history for this message
Michael Vogt (mvo) wrote :

Thanks for your bugreport.

Here is what is causing this error:

Setting up slapd (2.4.11-0ubuntu4) ...
Installing new version of config file /etc/default/slapd ...
Installing new version of config file /etc/init.d/slapd ...
  Backing up /etc/ldap/slapd.conf in /var/backups/slapd-2.4.9-0ubuntu0.8.04.2...
  Backing up /etc/ldap/slapd.conf in /var/backups/slapd-2.4.9-0ubuntu0.8.04.2... done.
failed.
Migrating slapd.conf file (/tmp/upgrade_slapd.conf.feMGo20863) to slapd.d failed with the following error while running slaptest:
    /tmp/upgrade_slapd.conf.feMGo20863: line 55: keyword <rootpw> missing <password> argument
    slaptest: bad configuration directory!
dpkg: error processing slapd (--configure):
 subprocess post-installation script returned error exit status 1

Changed in update-manager:
importance: Undecided → High
milestone: none → ubuntu-8.10
status: New → Triaged
Revision history for this message
Michael Vogt (mvo) wrote :

There is anohter failure in the log:

Setting up rkhunter (1.3.2-6) ...
Installing new version of config file /etc/default/rkhunter ...
Configuration file `/etc/rkhunter.conf'
 ==> Modified (by you or by a script) since installation.
 ==> Package distributor has shipped an updated version.
   What would you like to do about it ? Your options are:
    Y or I : install the package maintainer's version
    N or O : keep your currently-installed version
      D : show the differences between the versions
      Z : background this process to examine the situation
 The default action is to keep your current version.
*** rkhunter.conf (Y/I/N/O/D/Z) [default=N] ?
*** rkhunter.conf (Y/I/N/O/D/Z) [default=N] ? y
Installing new version of config file /etc/rkhunter.conf ...
Installing new version of config file /etc/cron.daily/rkhunter ...
Updating the file properties database:
[ Rootkit Hunter version 1.3.2 ]
File updated: searched for 152 files, found 128, missing hashes 23
dpkg: error processing rkhunter (--configure):
 subprocess post-installation script returned error exit status 1

Changed in rkhunter:
importance: Undecided → High
milestone: none → ubuntu-8.10
status: New → Triaged
Revision history for this message
Michael Vogt (mvo) wrote :

Can you reproduce the rkhunter failure btw? I.e. does:
$ sudo apt-get install --reinstall rkhunter
give you the failure again?

Changed in rkhunter:
assignee: nobody → mvo
status: Triaged → Incomplete
Revision history for this message
Lutfi (lutfiarab) wrote : Re: [Bug 276606] Re: package update-manager 1:0.93.18 failed to install/upgrade: ErrorMessage: SystemError in cache.commit(): E:Sub-process /usr/bin/dpkg returned an error code (1)

On Wed, Oct 1, 2008 at 4:53 PM, Michael Vogt <email address hidden> wrote:
> Can you reproduce the rkhunter failure btw? I.e. does:
> $ sudo apt-get install --reinstall rkhunter
> give you the failure again?
>
> ** Changed in: rkhunter (Ubuntu)
> Assignee: (unassigned) => Michael Vogt (mvo)
> Status: Triaged => Incomplete
>
> --
> package update-manager 1:0.93.18 failed to install/upgrade: ErrorMessage: SystemError in cache.commit(): E:Sub-process /usr/bin/dpkg returned an error code (1)
> https://bugs.launchpad.net/bugs/276606
> You received this bug notification because you are a direct subscriber
> of the bug.
>

root@djin:~# apt-get install --reinstall rkhunter
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
  bsd-mailx
The following NEW packages will be installed:
  rkhunter
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/178kB of archives.
After this operation, 754kB of additional disk space will be used.
Preconfiguring packages ...
Selecting previously deselected package rkhunter.
(Reading database ... 451625 files and directories currently installed.)
Unpacking rkhunter (from .../rkhunter_1.3.2-6_all.deb) ...
Processing triggers for man-db ...
Setting up rkhunter (1.3.2-6) ...
Updating the file properties database:
[ Rootkit Hunter version 1.3.2 ]
File created: searched for 153 files, found 130, missing hashes 23
dpkg: error processing rkhunter (--configure):
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 rkhunter
E: Sub-process /usr/bin/dpkg returned an error code (1)

Revision history for this message
Mathias Gug (mathiaz) wrote :

While upgrading, did you enter a blank password when prompted for the cn=config password?

Changed in openldap:
status: Triaged → Incomplete
Revision history for this message
Lutfi (lutfiarab) wrote :

On Sat, Oct 11, 2008 at 8:27 AM, Mathias Gug <email address hidden> wrote:
> While upgrading, did you enter a blank password when prompted for the
> cn=config password?
>
> ** Changed in: openldap (Ubuntu)
> Status: Triaged => Incomplete
>
> --
> package update-manager 1:0.93.18 failed to install/upgrade: ErrorMessage: SystemError in cache.commit(): E:Sub-process /usr/bin/dpkg returned an error code (1)
> https://bugs.launchpad.net/bugs/276606
> You received this bug notification because you are a direct subscriber
> of the bug.
>

yes. press enter only

Revision history for this message
Michael Vogt (mvo) wrote :

@Lutfi: could you please run (in a terminal):
$ sudo sh -x /var/lib/dpkg/info/rkhunter.postinst configure

and post what it prints then?

Thanks,
 michael

Revision history for this message
Lutfi (lutfiarab) wrote :

On Mon, Oct 13, 2008 at 7:25 PM, Michael Vogt <email address hidden> wrote:
> @Lutfi: could you please run (in a terminal):
> $ sudo sh -x /var/lib/dpkg/info/rkhunter.postinst configure
>
> and post what it prints then?
>
> Thanks,
> michael
>
> --
> package update-manager 1:0.93.18 failed to install/upgrade: ErrorMessage: SystemError in cache.commit(): E:Sub-process /usr/bin/dpkg returned an error code (1)
> https://bugs.launchpad.net/bugs/276606
> You received this bug notification because you are a direct subscriber
> of the bug.
>

root@djin:~# sudo sh -x /var/lib/dpkg/info/rkhunter.postinst configure
+ set -e
+ . /usr/share/debconf/confmodule
+ [ ! ]
+ PERL_DL_NONLAZY=1
+ export PERL_DL_NONLAZY
+ [ ]
+ exec /usr/share/debconf/frontend
/var/lib/dpkg/info/rkhunter.postinst configure
Updating the file properties database:
[ Rootkit Hunter version 1.3.2 ]
File updated: searched for 153 files, found 130

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package openldap - 2.4.11-0ubuntu5

---------------
openldap (2.4.11-0ubuntu5) intrepid; urgency=low

  * Don't set admin passwords in ldif files if adminpw is empty.
    (LP: #273988 - LP: #276606).

 -- Mathias Gug <email address hidden> Mon, 13 Oct 2008 19:31:15 -0400

Changed in openldap:
status: Incomplete → Fix Released
Revision history for this message
Michael Vogt (mvo) wrote :

Thanks, in this case, please run:

$ sudo -s
# export DEBCONF_DEBUG=developer
# export DEBIAN_HAS_FRONTEND=1
# /usr/share/debconf/frontend sh -ex /var/lib/dpkg/info/rkhunter.postinst configure

That should give us a good debug output.

Revision history for this message
Lutfi (lutfiarab) wrote :

On Tue, Oct 14, 2008 at 4:44 PM, Michael Vogt <email address hidden> wrote:
> Thanks, in this case, please run:
>
> $ sudo -s
> # export DEBCONF_DEBUG=developer
> # export DEBIAN_HAS_FRONTEND=1
> # /usr/share/debconf/frontend sh -ex /var/lib/dpkg/info/rkhunter.postinst configure
>
> That should give us a good debug output.
>
> --
> package update-manager 1:0.93.18 failed to install/upgrade: ErrorMessage: SystemError in cache.commit(): E:Sub-process /usr/bin/dpkg returned an error code (1)
> https://bugs.launchpad.net/bugs/276606
> You received this bug notification because you are a direct subscriber
> of the bug.
>

lutfi@djin:~$ sudo -s
root@djin:~# export DEBCONF_DEBUG=developer
root@djin:~# export DEBIAN_HAS_FRONTEND=1
root@djin:~# /usr/share/debconf/frontend sh -ex
/var/lib/dpkg/info/rkhunter.postinst configure
debconf (developer): frontend started
debconf (developer): Trying to find a templates file..
debconf (developer): Trying sh.templates
debconf (developer): Trying /usr/share/debconf/templates/sh.templates
debconf (developer): Couldn't find a templates file.
debconf (developer): frontend running, package name is
debconf (developer): starting sh -ex
/var/lib/dpkg/info/rkhunter.postinst configure
+ set -e
+ . /usr/share/debconf/confmodule
+ [ ! 1 ]
+ [ -z ]
+ exec
+ [ ]
+ exec
+ DEBCONF_REDIR=1
+ export DEBCONF_REDIR
+ DF=/etc/default/rkhunter
+ APT_CONF=/etc/apt/apt.conf.d/90rkhunter
+ db_get rkhunter/cron_db_update
+ _db_cmd GET rkhunter/cron_db_update
+ IFS= printf %s\n GET rkhunter/cron_db_update
+ IFS=
 read -r _db_internal_line
debconf (developer): <-- GET rkhunter/cron_db_update
debconf (developer): --> 0
+ RET=
+ return 0
+ db_get rkhunter/cron_daily_run
+ _db_cmd GET rkhunter/cron_daily_run
+ IFS= printf %s\n GET rkhunter/cron_daily_run
+ IFS=
 read -r _db_internal_line
debconf (developer): <-- GET rkhunter/cron_daily_run
debconf (developer): --> 0
+ RET=
+ return 0
+ db_get rkhunter/apt_autogen
+ _db_cmd GET rkhunter/apt_autogen
+ IFS= printf %s\n GET rkhunter/apt_autogen
+ IFS=
 read -r _db_internal_line
debconf (developer): <-- GET rkhunter/apt_autogen
debconf (developer): --> 0 false
+ RET=false
+ return 0
+ rm -f /etc/apt/apt.conf.d/90rkhunter
+ grep ^TMPDIR /etc/rkhunter.conf
+ sed s/TMPDIR=//
+ RKH_TMP_DIR=/var/lib/rkhunter/tmp
+ cp -p /etc/passwd /var/lib/rkhunter/tmp
+ cp -p /etc/group /var/lib/rkhunter/tmp
+ db_get rkhunter/apt_autogen
+ _db_cmd GET rkhunter/apt_autogen
+ IFS= printf %s\n GET rkhunter/apt_autogen
debconf (developer): <-- GET rkhunter/apt_autogen
debconf (developer): --> 0 false
+ IFS=
 read -r _db_internal_line
+ RET=false
+ return 0
+ [ false = false ]
+ grep -q -E ^DISABLE_TESTS=.*(hashes.*attributes|attributes.*hashes|properties)
/etc/rkhunter.conf
+ echo Updating the file properties database:
Updating the file properties database:
+ /usr/bin/rkhunter --propupd
[ Rootkit Hunter version 1.3.2 ]
File updated: searched for 153 files, found 130, missing hashes 3

Revision history for this message
Michael Vogt (mvo) wrote :

Hm, that looks like it did not crash with a error this time?

Revision history for this message
Lutfi (lutfiarab) wrote :

On Thu, Oct 16, 2008 at 12:41 AM, Michael Vogt <email address hidden> wrote:
> Hm, that looks like it did not crash with a error this time?
>
> --
> package update-manager 1:0.93.18 failed to install/upgrade: ErrorMessage: SystemError in cache.commit(): E:Sub-process /usr/bin/dpkg returned an error code (1)
> https://bugs.launchpad.net/bugs/276606
> You received this bug notification because you are a direct subscriber
> of the bug.
>

i dunno. it's like ok now

Michael Vogt (mvo)
Changed in rkhunter:
assignee: mvo → nobody
adam (adamwscott21)
Changed in rkhunter (Ubuntu):
assignee: nobody → adam (adamwscott21)
status: Incomplete → Fix Committed
Changed in openldap (Ubuntu):
status: Fix Released → New
status: New → In Progress
tags: added: i386
tags: added: update-manager
Changed in update-manager (Ubuntu):
assignee: nobody → Ubuntu Development Team (ubuntu-dev)
Changed in openldap (Ubuntu):
assignee: nobody → Ubuntu Development Team (ubuntu-dev)
Colin Watson (cjwatson)
Changed in openldap (Ubuntu):
assignee: Ubuntu Development Team (ubuntu-dev) → nobody
Changed in update-manager (Ubuntu):
assignee: Ubuntu Development Team (ubuntu-dev) → nobody
Changed in update-manager (Ubuntu):
status: New → Invalid
Mathias Gug (mathiaz)
Changed in rkhunter (Ubuntu):
status: Fix Committed → Invalid
Changed in openldap (Ubuntu):
status: In Progress → 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.