[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#354401: Error "chown: `root:UNKNOWN': invalid group" when setting up tex-common



This one time, at band camp, Norbert Preining said:
> On Son, 26 Feb 2006, Stephen Gran wrote:
> > > >   tex-common/groupname: UNKNOWN
> > 
> > That looks like an untrapped error from debconf, off-hand.  debconf will
> > return strings like "UNKNOWN THIS OR THAT" on error, and it looks like
> > it was truncated to just UNKNOWN.
>
> and in postinst:
>     db_get tex-common/managecache || true
>     if [ $RET = true ] ; then
>       db_get tex-common/groupname || true
>       GROUP="$RET"
>       if [ -n "$GROUP" ] ; then

This is exactly what I was expecting to see.  Wrap the last bit in an 
`if getent group $RET` or similar to do some error checking on what
debconf gives back.  I can't remember now where I've seen this sort of
debconf breakage in the past, so I can't immediately give you a usable
reference now, sorry.  I only have this faint idea that I have seen
exactly this sort of thing before.

Take care,
-- 
 -----------------------------------------------------------------
|   ,''`.                                            Stephen Gran |
|  : :' :                                        sgran@debian.org |
|  `. `'                        Debian user, admin, and developer |
|    `-                                     http://www.debian.org |
 -----------------------------------------------------------------

Attachment: signature.asc
Description: Digital signature


Reply to: