/etc/passwd file locked during postinst

Bug #1030766 reported by Dieter Hagen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
adduser (Ubuntu)
New
Undecided
Unassigned
landscape-client (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

habe das Net-book gebraucht gekauft....bin Neueinsteiger von Linux.

ProblemType: Package
DistroRelease: Ubuntu 12.04
Package: landscape-common 12.05-0ubuntu0.12.04
ProcVersionSignature: Ubuntu 3.2.0-27.43-generic 3.2.21
Uname: Linux 3.2.0-27-generic i686
ApportVersion: 2.0.1-0ubuntu11
Architecture: i386
Date: Mon Jul 30 10:07:47 2012
ErrorMessage: ErrorMessage: Unterprozess installiertes post-installation-Skript gab den Fehlerwert 1 zurück
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release i386 (20111012)
SourcePackage: landscape-client
Title: package landscape-common 12.05-0ubuntu0.12.04 failed to install/upgrade: ErrorMessage: Unterprozess installiertes post-installation-Skript gab den Fehlerwert 1 zurück
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Dieter Hagen (dhage) wrote :
Revision history for this message
Andreas Hasenack (ahasenack) wrote :

The problem seems to be that /etc/passwd was locked, and then system users could not be added:
Log started: 2012-07-30 10:07:33
gdm (3.0.4-0ubuntu15) wird eingerichtet ...
Warnung: Das von Ihnen angegebene Home-Verzeichnis /var/lib/gdm existiert bereits.
Lege Systembenutzer »gdm« (UID 114) an ...
Lege neuen Benutzer »gdm« (UID 114) mit Gruppe »gdm« an ...
useradd: /etc/passwd konnte nicht gesperrt werden; versuchen Sie es später noch einmal.
adduser: »/usr/sbin/useradd -d /var/lib/gdm -g gdm -s /bin/false -u 114 gdm« gab den Fehlercode 1 zurück. Programmende.
dpkg: Fehler beim Bearbeiten von gdm (--configure):
 Unterprozess installiertes post-installation-Skript gab den Fehlerwert 1 zurück

Landscape just happened to be the last package trying, but several failed because of that problem.

I *think* the lock is just /etc/passwd copied to a backup file, like /etc/passwd.lock or something like that. I will mark the bug affecting adduser instead for now.

Changed in adduser (Ubuntu):
status: New → Invalid
status: Invalid → New
Changed in landscape-client (Ubuntu):
status: New → Invalid
summary: - package landscape-common 12.05-0ubuntu0.12.04 failed to install/upgrade:
- ErrorMessage: Unterprozess installiertes post-installation-Skript gab
- den Fehlerwert 1 zurück
+ /etc/passwd file locked during postinst
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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