Martin-Éric, the Debian bug you refer to has this:

Unpacking cups-pdf (from .../cups-pdf_1.6.3-2_i386.deb) ...
chown: `root:lpadmin': invalid group
dpkg: error processing
/var/cache/apt/archives/cups-pdf_1.6.3-2_i386.deb (--unpack):
 subprocess pre-installation script returned error exit status 1

Back then, cups-pdf clearly had a preinst script. Back then it is
possible that a Pre-Depends was the right solution (though I doubt it,
since Pre-Depends is so rarely the right solution). Today, there is no
preinst script, so Pre-Depends is not necessary at all.

>From the Debian bug, I guess (not being interested in digging up the
five year old package) that the preinst script did a "chgrp lpadmin"
without ensuring that the group exists. Pre-Depending on cupsys fixed
this, since cupsys's maintainer scripts created the group.

Today, cups-pdf does that chown. The package already depends on cups-
client, which creates the group. Since postinst will only be run after
dependencies have been configured, the cups-pdf postinst can rely on the
lpadmin group existing.

I hope this clarifies the situation.

-- 
8.04->9.04 cups-pdf prevents upgrade (pre-depends error) for some users
https://bugs.launchpad.net/bugs/356781
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to