[Bug 1185547] Re: Removing package fails to remove user
Chris Halse Rogers
chris at cooperteam.net
Fri Jun 21 02:17:39 UTC 2013
It's not entirely clear that the apt-cacher-ng user *should* be removed
on package removal. See
http://wiki.debian.org/AccountHandlingInMaintainerScripts for unresolved
discussion of such ☺.
It's also worth noting that the patch as written will fail if adduser is
installed *and* the apt-cacher-ng user is not a system user. You've
traded an error on reinstall for an error on removal.
I've fixed a similar problem in colord recently by just checking whether
the user exists before trying to create it in the postinst.
Finally, this does indeed seem like something that would also apply to
debian - have you filed a Debian bug or contacted the maintainer about
this?
--
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1185547
Title:
Removing package fails to remove user
Status in “apt-cacher-ng” package in Ubuntu:
New
Bug description:
When purging the apt-cacher-ng package, the apt-cacher-ng user is not
removed from the system. This causes reinstalls to fail because the
apt-cacher-ng user already exists. The package should remove the user
when being purged.
Workaround:
After uninstalling, run the command:
sudo userdel apt-cacher-ng
Once the user is removed, the package can be installed again.
Version affected: 12.04.1 Precise
Package version: 0.7.2-1ubuntu2.1
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt-cacher-ng/+bug/1185547/+subscriptions
More information about the Ubuntu-sponsors
mailing list