[apport] package sensors-applet 2.2.1-1ubuntu3 failed to install/upgrade: underprosessen post-installation script returnerte feilstatus 139

Bug #254515 reported by Alexander Rødseth
2
Affects Status Importance Assigned to Milestone
scrollkeeper (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: sensors-applet

I installed sensors-applet through synaptic, then tried to remove it.
This error-message appears at both installation and uninstallation.
I can't remove the package now.

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=8.04
DISTRIB_CODENAME=hardy
DISTRIB_DESCRIPTION="Ubuntu 8.04.1"

2.6.24-19-generic #1 SMP Fri Jul 11 21:01:46 UTC 2008 x86_64 GNU/Linux

apt-cache policy sensors-applet:

sensors-applet:
  Installert: 2.2.1-1ubuntu3
  Kandidat: 2.2.1-1ubuntu3
  Versjonstabell:
 *** 2.2.1-1ubuntu3 0
        500 http://no.archive.ubuntu.com hardy/universe Packages
        100 /var/lib/dpkg/status

* I expected to be able to install and uninstall it, and that it would cooperate with hddtemp.
* Instead, it would neither.

ProblemType: Package
Architecture: amd64
Date: Mon Aug 4 01:41:14 2008
DistroRelease: Ubuntu 8.04
ErrorMessage: underprosessen post-installation script returnerte feilstatus 139
NonfreeKernelModules: fglrx
Package: sensors-applet 2.2.1-1ubuntu3
PackageArchitecture: amd64
SourcePackage: sensors-applet
Title: package sensors-applet 2.2.1-1ubuntu3 failed to install/upgrade: underprosessen post-installation script returnerte feilstatus 139
Uname: Linux 2.6.24-19-generic x86_64

Revision history for this message
Alexander Rødseth (alexanro) wrote :
Revision history for this message
Alexander Rødseth (alexanro) wrote :

Trying to force/remove it results in a segfault:

sudo dpkg --force-all -r sensors-applet
(Leser database ... 103140 filer og kataloger er installerte.)
Fjerner sensors-applet ...
Segmentation fault
dpkg: Feil ved behandling av sensors-applet (--remove):
 underprosessen post-removal script returnerte feilstatus 139
Det oppsto feil ved behandling av:
 sensors-applet

(There is probably a more correct way to force a removal, but I tried all I could think of)

Revision history for this message
Alexander Rødseth (alexanro) wrote :

This file:
/var/lib/dpkg/info/sensors-applet.postinst
Contains this:
#!/bin/sh
set -e
# Automatically added by dh_scrollkeeper
if [ "$1" = "configure" ] && which scrollkeeper-update >/dev/null 2>&1; then
 scrollkeeper-update -q >/dev/null 2>&1
fi
# End automatically added section
# Automatically added by dh_icons
if which update-icon-caches >/dev/null 2>&1 ; then
 update-icon-caches /usr/share/icons/hicolor
fi
# End automatically added section

After trying to run both scrollkeeper-update and update-icon-caches, I discover that scollkeeper-update sefaults:
$ scrollkeeper-update
Segmentation fault

And finally, here's a workaround:
1. Comment out three lines from /var/lib/dpkg/info/sensors-applet.postrm so that it looks like this:
#!/bin/sh
set -e
# Automatically added by dh_scrollkeeper
#if [ "$1" = "remove" ] && which scrollkeeper-update >/dev/null 2>&1; then
# scrollkeeper-update -q
#fi
# End automatically added section
# Automatically added by dh_icons
if which update-icon-caches >/dev/null 2>&1 ; then
        update-icon-caches /usr/share/icons/hicolor
fi
# End automatically added section
2. sudo aptitude remove sensors-applet

Revision history for this message
Cesare Tirabassi (norsetto) wrote :

This workaround may permit you to remove sensors-applet but doesn't cure what seems to be a more serious problem in your system (which will resurface later on).
I´m therefore changing this as a bug to scrollkeeper. Could you perhaps obtain a backtrace of the scrollkeeper-update crash so that we can debug this issue?

Changed in sensors-applet:
status: New → Incomplete
Revision history for this message
Alexander Rødseth (alexanro) wrote : Re: [Bug 254515] Re: [apport] package sensors-applet 2.2.1-1ubuntu3 failed to install/upgrade: underprosessen post-installation script returnerte feilstatus 139

I found that the issue appeared after my system have frozen repeatedly
because 64-bit Ubuntu is having trouble with my WDC WD1500ADFD-0
harddrive. (The drive does support NCQ, but it doesn't get that at
boot according to dmesg, which I think is the source of that problem).
This in turn lead to some files being corrupted, which is the cause of
this bug. I have reinstalled since this happened and are upgrading to
intrepid right now, in hope that a later kernel will fix the issue.

I don't know where to report the harddrive-issue, if it's the kernel,
acpid or something else.

Anyways, I guess this bug can be closed, since it's unrelated.

Revision history for this message
Alexander Rødseth (alexanro) wrote :

Upgrading to intrepid (with the kernel that follows) has solved the issue here.

Revision history for this message
Cesare Tirabassi (norsetto) wrote :

OK, closing this then. You may want to open another bug for the kernel in case the file corruption problem reappears.

Changed in scrollkeeper:
status: Incomplete → Invalid
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.