Couldn't parse `/etc/adduser.conf'

Bug #36267 reported by Vincent Untz
24
Affects Status Importance Assigned to Milestone
adduser (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

While installing hplip (in dapper):

Creating/updating hplip user account...
adduser: Couldn't parse `/etc/adduser.conf':29.
adduser: Couldn't parse `/etc/adduser.conf':30.
adduser: Couldn't parse `/etc/adduser.conf':31.
adduser: Couldn't parse `/etc/adduser.conf':32.
adduser: Couldn't parse `/etc/adduser.conf':36.
adduser: Couldn't parse `/etc/adduser.conf':37.
adduser: Couldn't parse `/etc/adduser.conf':38.
adduser: Couldn't parse `/etc/adduser.conf':39.
adduser: Couldn't parse `/etc/adduser.conf':49.
adduser: Couldn't parse `/etc/adduser.conf':57.
adduser: Couldn't parse `/etc/adduser.conf':64.

Revision history for this message
Vincent Untz (vuntz) wrote :

Created an attachment (id=4973)
adduser.conf

FWIW, I never touched this file. So I suppose it's the default one.

Revision history for this message
Markus Jonskog (omljud) wrote :

Got the same error while updating hal.

It's an error in /usr/share/perl5/Debian/AdduserCommon.pm .
The character _ is at the moment not valid in option names in adduser.conf.

In the subroutine read_config, change

if ((($var, $val) = /^\s*([a-zA-Z0-9]+)\s*=\s*(.*)/) != 2) {

to

if ((($var, $val) = /^\s*([_a-zA-Z0-9]+)\s*=\s*(.*)/) != 2) {

Revision history for this message
Sebastien Bacher (seb128) wrote :
Revision history for this message
Sebastien Bacher (seb128) wrote :

Debian has fixed it

Revision history for this message
Matt Zimmerman (mdz) wrote :

...and I've requested a sync

Revision history for this message
Sebastien Bacher (seb128) wrote :

fixed

Revision history for this message
Colin Watson (cjwatson) wrote :

*** Bug 26050 has been marked as a duplicate of this bug. ***

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.