[Bug 1058790] Re: package does not uninstall

Daniel Hartwig mandyke at gmail.com
Sat Oct 6 00:37:48 UTC 2012


> status:        Invalid → Confirmed

Please do not confirm your own reports.

> It is still apt's bug if it is unable to uninstall it.

No, it isn't.  See bug #12508, for example, and
<http://www.debian.org/doc/debian-policy/ch-maintainerscripts.html>.

The package maintainer scripts contain instructions on how to remove the
package.  APT and dpkg absolutely rely on those instructions and can not
remove a package if they are broken.  It is not safe otherwise, neither
is it clear *how* to remove the package.

It is not the responsibility of apt to support packages with broken
maintainer scripts.  The package brscan2 comes from a third-party and
you should contact them about this problem.

Similar issues have sometimes been resolved with various hacks.  Use at your own risk:
http://serverfault.com/questions/165890/ubuntu-9-10-unable-to-install-packages-due-to-broken-packages
http://ubuntuforums.org/showthread.php?t=1357523
http://stackoverflow.com/questions/9311627/dpkg-how-to-ignore-error-in-post-pre-scripts


** Changed in: apt (Ubuntu)
       Status: Confirmed => Invalid

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to apt in Ubuntu.
https://bugs.launchpad.net/bugs/1058790

Title:
  package does not uninstall

Status in “apt” package in Ubuntu:
  Invalid

Bug description:
  when attempting to uninstall a package, apt-get fails to remove it. 
  $ sudo apt-get remove brscan2
  Reading package lists... Done
  Building dependency tree       
  Reading state information... Done
  The following packages were automatically installed and are no longer required:
    libjack-jackd2-dev libutouch-evemu1 libutouch-geis1 libutouch-frame1 libsndfile1-dev
    kbuild libreadline6-dev module-assistant libutouch-grail1 libgsoap1 libreadline-dev
  Use 'apt-get autoremove' to remove them.
  The following packages will be REMOVED:
    brscan2
  0 upgraded, 0 newly installed, 1 to remove and 50 not upgraded.
  1 not fully installed or removed.
  After this operation, 0 B of additional disk space will be used.
  Do you want to continue [Y/n]? y
  (Reading database ... 270358 files and directories currently installed.)
  Removing brscan2 ...
  rmdir: failed to remove `/usr/local/Brother/sane/GrayCmData/ALL': No such file or directory
  rmdir: failed to remove `/usr/local/Brother/sane/GrayCmData/AL': No such file or directory
  rmdir: failed to remove `/usr/local/Brother/sane/GrayCmData': No such file or directory
  rmdir: failed to remove `/usr/local/Brother/sane/models2': No such file or directory
  rmdir: failed to remove `/usr/local/Brother/sane': No such file or directory
  rmdir: failed to remove `/usr/local/Brother': No such file or directory
  dpkg: error processing brscan2 (--remove):
   subprocess installed post-removal script returned error exit status 1
  Errors were encountered while processing:
   brscan2
  E: Sub-process /usr/bin/dpkg returned an error code (1)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1058790/+subscriptions




More information about the foundations-bugs mailing list