package kdm (not installed) failed to install/upgrade: subprocess installed post-removal script returned error exit status 1

Bug #634707 reported by Anduu
320
This bug affects 43 people
Affects Status Importance Assigned to Milestone
kdebase-workspace (Ubuntu)
Fix Released
Medium
Felix Geyer

Bug Description

Binary package hint: kdm

Package kdm 4:4.5.1-0ubuntu1

While trying to purge the package it fails with could not remove /etc/init/kdm.conf no such file or directory.

It appears that dpkg tries to remove the file twice.When i create the file manually it gets deleted but the cannot delete error still appears.

ProblemType: Package
DistroRelease: Ubuntu 10.10
Package: kdm (not installed)
ProcVersionSignature: Ubuntu 2.6.35-20.29-generic 2.6.35.4
Uname: Linux 2.6.35-20-generic x86_64
Architecture: amd64
Date: Thu Sep 9 23:52:56 2010
ErrorMessage: subprocess installed post-removal script returned error exit status 1
SourcePackage: kdebase-workspace
Title: package kdm (not installed) failed to install/upgrade: subprocess installed post-removal script returned error exit status 1

Revision history for this message
Anduu (anduu) wrote :
Revision history for this message
Eyad Salah (eyad-salah) wrote :

I keep getting this error when trying to purge kdm package. I use gnome mainly but when trying out kde (KDM) was installed but when asked I kept GDM as default (If this helps)

Revision history for this message
Eyad Salah (eyad-salah) wrote :

Ok, simple workaround 'sudo rm /var/lib/dpkg/info/kdm.postrm' then retry to purge. Works like a charm

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

Thanks for your report.

Setting to confirmed/medium because of duplicates.

Changed in kdebase-workspace (Ubuntu):
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
Drew Snellgrove (forkinme-deactivatedaccount) wrote :

Less simple but less abrasive workaround to try before purging.

edit /var/lib/dpkg/info/kdm.postrm and comment out the following three lines since they're apparently unnecessary:

if [ "$1" = "purge" ] ; then
        rm /etc/init/kdm.conf || exit $?
fi

Revision history for this message
rod singleton (rod40cool) wrote :

Thank you. I had this exact problem too. Tried #3 suggestion and was able to remove residual config from Synaptic.

Felix Geyer (debfx)
Changed in kdebase-workspace (Ubuntu):
assignee: nobody → Felix Geyer (debfx)
status: Triaged → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package kdebase-workspace - 4:4.6.0a-0ubuntu1

---------------
kdebase-workspace (4:4.6.0a-0ubuntu1) natty; urgency=low

  [ Jonathan Riddell ]
  * New upstream release
  * Update kubuntu_103_kdm_theme.diff for 4.6 horos theme
  * Move ethais kdm theme to kdebase-workspace-wallpapers
  * Add link usr/share/wallpapers/kde-default.png into kdebase-workspace-data.links
    so we don't have to update Ubiquity and other bits each release

  [ Felix Geyer ]
  * Invoke global X session scripts on startup. (LP: #688393)
  * Don't remove the kdm upstart job when the package is purged as config
    files are already removed by dpkg. This made it impossible to purge kdm.
    (LP: #634707)
 -- Felix Geyer <email address hidden> Sat, 22 Jan 2011 17:36:22 +0100

Changed in kdebase-workspace (Ubuntu):
status: In Progress → Fix Released
Revision history for this message
Ruben (info-rubenfelix) wrote : Re: [Bug 634707] Re: package kdm (not installed) failed to install/upgrade: subprocess installed post-removal script returned error exit status 1

Hey!

Bedankt voor je mail! Ik ben er even tussenuit geknepen naar een lekker warm land! Ik beantwoord je mail na mijn vakantie (11 oktober).

Groetjes!

Ruben

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

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in kdebase-workspace (Ubuntu Maverick):
status: New → Confirmed
no longer affects: kdebase-workspace (Ubuntu Maverick)
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.