Cannot purge configuration files

Bug #317792 reported by Johan
66
This bug affects 9 people
Affects Status Importance Assigned to Milestone
angband (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: angband

Removed angband using apt-get remove angband

Tryed to purge config files using synaptic : Mark for complete removal

Occured in 8.04
Upgraded to 8.10 with same issue
Tried again to "Mark for complete removal" with same result

ProblemType: Package
Architecture: i386
Dependencies:

DistroRelease: Ubuntu 8.10
ErrorMessage: subprocess post-removal script returned error exit status 1
NonfreeKernelModules: fglrx
Package: angband None
SourcePackage: angband
Title: package angband None failed to install/upgrade: subprocess post-removal script returned error exit status 1
Uname: Linux 2.6.27-9-generic i686

Revision history for this message
Johan (johanb) wrote :
Revision history for this message
Johan (johanb) wrote :

angband version:

1:3.0.9b-2

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

Thanks for your report.

The error is :
=====
Removing angband ...

Purging configuration files for angband ...

rmdir: failed to remove `/var/games/angband': Directory not empty

dpkg: error processing angband (--purge):

 subprocess post-removal script returned error exit status 1
=====

Could someone with this issue open a terminal and provide the output of the following command:
find /var/games/angband

Thanks.

Changed in angband (Ubuntu):
status: New → Incomplete
Revision history for this message
Brian Barry (brian-p-barry) wrote : Re: [Bug 317792] Re: Cannot purge configuration files

brian@brian-laptop:~$ find /var/games/angband
/var/games/angband
/var/games/angband/data
/var/games/angband/data/spell.raw

Brian

On Sun, Nov 22, 2009 at 10:13 AM, Jean-Baptiste Lallement <
<email address hidden>> wrote:

> Thanks for your report.
>
> The error is :
> =====
> Removing angband ...
>
> Purging configuration files for angband ...
>
> rmdir: failed to remove `/var/games/angband': Directory not empty
>
> dpkg: error processing angband (--purge):
>
> subprocess post-removal script returned error exit status 1
> =====
>
> Could someone with this issue open a terminal and provide the output of the
> following command:
> find /var/games/angband
>
> Thanks.
>
> ** Changed in: angband (Ubuntu)
> Status: New => Incomplete
>
> --
> Cannot purge configuration files
> https://bugs.launchpad.net/bugs/317792
> You received this bug notification because you are a direct subscriber
> of a duplicate bug.
>
> Status in “angband” package in Ubuntu: Incomplete
>
> Bug description:
> Binary package hint: angband
>
> Removed angband using apt-get remove angband
>
> Tryed to purge config files using synaptic : Mark for complete removal
>
> Occured in 8.04
> Upgraded to 8.10 with same issue
> Tried again to "Mark for complete removal" with same result
>
> ProblemType: Package
> Architecture: i386
> Dependencies:
>
> DistroRelease: Ubuntu 8.10
> ErrorMessage: subprocess post-removal script returned error exit status 1
> NonfreeKernelModules: fglrx
> Package: angband None
> SourcePackage: angband
> Title: package angband None failed to install/upgrade: subprocess
> post-removal script returned error exit status 1
> Uname: Linux 2.6.27-9-generic i686
>

Revision history for this message
Magnate (rantingman) wrote :

Brian Barry wrote:
> brian@brian-laptop:~$ find /var/games/angband
> /var/games/angband
> /var/games/angband/data
> /var/games/angband/data/spell.raw

Ok, this is a hangover from

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=490871

This removal error does not occur in Debian.

CC

> Brian
>
> On Sun, Nov 22, 2009 at 10:13 AM, Jean-Baptiste Lallement <
> <email address hidden>> wrote:
>
>> Thanks for your report.
>>
>> The error is :
>> =====
>> Removing angband ...
>>
>> Purging configuration files for angband ...
>>
>> rmdir: failed to remove `/var/games/angband': Directory not empty
>>
>> dpkg: error processing angband (--purge):
>>
>> subprocess post-removal script returned error exit status 1
>> =====
>>
>> Could someone with this issue open a terminal and provide the output of the
>> following command:
>> find /var/games/angband
>>
>> Thanks.
>>
>> ** Changed in: angband (Ubuntu)
>> Status: New => Incomplete
>>
>> --
>> Cannot purge configuration files
>> https://bugs.launchpad.net/bugs/317792
>> You received this bug notification because you are a direct subscriber
>> of a duplicate bug.
>>
>> Status in “angband” package in Ubuntu: Incomplete
>>
>> Bug description:
>> Binary package hint: angband
>>
>> Removed angband using apt-get remove angband
>>
>> Tryed to purge config files using synaptic : Mark for complete removal
>>
>> Occured in 8.04
>> Upgraded to 8.10 with same issue
>> Tried again to "Mark for complete removal" with same result
>>
>> ProblemType: Package
>> Architecture: i386
>> Dependencies:
>>
>> DistroRelease: Ubuntu 8.10
>> ErrorMessage: subprocess post-removal script returned error exit status 1
>> NonfreeKernelModules: fglrx
>> Package: angband None
>> SourcePackage: angband
>> Title: package angband None failed to install/upgrade: subprocess
>> post-removal script returned error exit status 1
>> Uname: Linux 2.6.27-9-generic i686
>>
>

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

Thanks.

This bug has been fixed in the latest development release Lucid Lynx and the directory /var/games/angband/data is now correctly removed.

=====
diff -Nru /tmp/JyTztnBSIn/angband-3.0.9b/debian/postrm /tmp/uts0sQ5ctW/angband-3.1.1.1626/debian/postrm
--- angband-3.0.9b/debian/postrm 2009-11-04 02:00:59.000000000 +0000
+++ angband-3.1.1.1626/debian/postrm 2009-11-04 02:01:00.000000000 +0000
@@ -57,7 +57,7 @@
 # the debian-policy package

 # Ensure the menu system is updated
-[ ! -x /usr/bin/update-menus ] || /usr/bin/update-menus
+[ ! -x /usr/bin/update-menus ] || update-menus

 case "$1" in
   remove)
@@ -129,6 +129,12 @@
      if [ -d /var/games/angband/info ]; then
   rm -rf /var/games/angband/info
      fi
+ if [ -d /var/games/angband/data ]; then
+ rm -rf /var/games/angband/data
+ fi
+ if [ -e /etc/angband/edit/cost_adj.txt ]; then
+ rm /etc/angband/edit/cost_adj.txt
+ fi
      rmdir /var/games/angband
  fi
     ;;
=====

A workaround is to remove by hand the directory /var/games/angband/data before purging the package.

Changed in angband (Ubuntu):
status: Incomplete → 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.