Comment 12 for bug 276606

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 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