package mpd 0.13.1-3ubuntu1 failed to install/upgrade: subprocess post-installation script returned error exit status 1

Bug #240356 reported by Chi
46
This bug affects 3 people
Affects Status Importance Assigned to Milestone
mpd (Ubuntu)
Fix Released
Undecided
David Futcher
Nominated for Hardy by TJ

Bug Description

Binary package hint: mpd

release: 8.04.1
version:
mpd:
  Installed: 0.13.1-3ubuntu1
  Candidate: 0.13.1-3ubuntu1
  Version table:
 *** 0.13.1-3ubuntu1 0
        500 http://us.archive.ubuntu.com hardy/universe Packages
        100 /var/lib/dpkg/status
I ran:
$ sudo dpkg -P mpd
and got this
(Reading database ... 123041 files and directories currently installed.)
Removing mpd ...
 * /etc/mpd.conf must have pid_file set; cannot stop daemon.
invoke-rc.d: initscript mpd, action "stop" failed.
dpkg: error processing mpd (--purge):
 subprocess pre-removal script returned error exit status 1
action: abort-remove not supported
Errors were encountered while processing:
 mpd

ProblemType: Package
Architecture: amd64
Date: Mon Jun 16 05:33:35 2008
DistroRelease: Ubuntu 8.04
ErrorMessage: subprocess post-installation script returned error exit status 1
NonfreeKernelModules: ath_hal
Package: mpd 0.13.1-3ubuntu1
PackageArchitecture: amd64
SourcePackage: mpd
Title: package mpd 0.13.1-3ubuntu1 failed to install/upgrade: subprocess post-installation script returned error exit status 1
Uname: Linux 2.6.24-19-generic x86_64

Related branches

Revision history for this message
Chi (zhangchipku) wrote :
Revision history for this message
Chi (zhangchipku) wrote :

after removing /etc/init.d/mpd, the uninstall was sucessful.

Revision history for this message
Sharar Ravitz (jewfro-macabbi) wrote :

Thank you Chi - removing /etc/init.d/mpd does allow for uninstall.

Revision history for this message
Chi (zhangchipku) wrote : Re: [Bug 240356] Re: package mpd 0.13.1-3ubuntu1 failed to install/upgrade: subprocess post-installation script returned error exit status 1

My pleasure! :-)

On Sat, Jul 12, 2008 at 10:16 AM, Yeshara Ravitz <email address hidden> wrote:
> Thank you Chi - removing /etc/init.d/mpd does allow for uninstall.
>
> --
> package mpd 0.13.1-3ubuntu1 failed to install/upgrade: subprocess post-installation script returned error exit status 1
> https://bugs.launchpad.net/bugs/240356
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in "mpd" source package in Ubuntu: New
>
> Bug description:
> Binary package hint: mpd
>
> release: 8.04.1
> version:
> mpd:
> Installed: 0.13.1-3ubuntu1
> Candidate: 0.13.1-3ubuntu1
> Version table:
> *** 0.13.1-3ubuntu1 0
> 500 http://us.archive.ubuntu.com hardy/universe Packages
> 100 /var/lib/dpkg/status
> I ran:
> $ sudo dpkg -P mpd
> and got this
> (Reading database ... 123041 files and directories currently installed.)
> Removing mpd ...
> * /etc/mpd.conf must have pid_file set; cannot stop daemon.
> invoke-rc.d: initscript mpd, action "stop" failed.
> dpkg: error processing mpd (--purge):
> subprocess pre-removal script returned error exit status 1
> action: abort-remove not supported
> Errors were encountered while processing:
> mpd
>
> ProblemType: Package
> Architecture: amd64
> Date: Mon Jun 16 05:33:35 2008
> DistroRelease: Ubuntu 8.04
> ErrorMessage: subprocess post-installation script returned error exit status 1
> NonfreeKernelModules: ath_hal
> Package: mpd 0.13.1-3ubuntu1
> PackageArchitecture: amd64
> SourcePackage: mpd
> Title: package mpd 0.13.1-3ubuntu1 failed to install/upgrade: subprocess post-installation script returned error exit status 1
> Uname: Linux 2.6.24-19-generic x86_64
>

Revision history for this message
David Futcher (bobbo) wrote :

Will be fixed when latest version is merged from Debian (Bug #274457)

Changed in mpd:
assignee: nobody → bobbo
status: New → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package mpd - 0.13.2-2ubuntu1

---------------
mpd (0.13.2-2ubuntu1) intrepid; urgency=low

  * Merge from debian unstable, remaining changes
   (LP: #274457, #240356, #273586, #230740)
    - debian/mpd.init.d: read mpd user from mpd.conf
    - debian/control: set Maintainer to Ubuntu MOTU Developers
    - debian/control: Recommends: avahi-daemon

mpd (0.13.2-2) unstable; urgency=low

  * Don't die if start-stop-daemon fails (Closes: #478018, #498911)

 -- David Futcher <email address hidden> Thu, 25 Sep 2008 16:50:03 +0100

Changed in mpd:
status: In Progress → Fix Released
Revision history for this message
TJ (tj) wrote :

The needs back-porting to Hardy, where it still causes failure to remove the package.

Revision history for this message
TJ (tj) wrote :

A quick patch to get the Hardy package to uninstall is to edit /etc/init.d/mpd and in the mpd_stop() function edit the start-stop-daemon command-line, adding "--oknodo", so it looks like this:

    log_daemon_msg "Stopping $DESC" "$NAME"
    start-stop-daemon --stop --oknodo --quiet --retry 5 --pidfile "$PIDFILE" \
        --exec $DAEMON
    log_end_msg $?

Revision history for this message
TJ (tj) wrote :

I've posted a Hardy back-port request in bug #282003

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.