Fail to install base-passwd

Bug #1986619 reported by Frank.D
28
This bug affects 5 people
Affects Status Importance Assigned to Milestone
base-passwd (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

/home/frank/Downloads# dpkg -i base-passwd_3.5.52build1_amd64.deb
(Reading database ... 236425 files and directories currently installed.)
Preparing to unpack base-passwd_3.5.52build1_amd64.deb ...
Unpacking base-passwd (3.5.52build1) over (3.5.52build1) ...
Setting up base-passwd (3.5.52build1) ...
Changing home-directory of irc from /var/run/ircd to /run/ircd
1 changes have been made, rewriting files
Writing passwd-file to /etc/passwd
Failed to open passwd-file /etc/passwd.upwd-write for writing: Permission denied
dpkg: error processing package base-passwd (--install):
 installed base-passwd package post-installation script subprocess returned error exit status 4
Errors were encountered while processing:
 base-passwd
root@CNQDSX:/home/frank/Downloads#

Frank.D (frankdong)
description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in base-passwd (Ubuntu):
status: New → Confirmed
Revision history for this message
Andrea Gambacorta (mrmafaldo) wrote :

Hi,
I had the same problem.
First you can check if your file is "immutable" via:
#> lsattr /etc/passwd
----i-------- /etc/passwd

If is not immutable you dont have any reason for not edit via sudo, so the problem can be, like my case, the antivirus.
I kill all mcafee process multiple time, every 2 seconds, because the process try to becoming up, and then I was able to upgrade the library
I hope it will be usefull for you
Ciao

Revision history for this message
John (vampire77) wrote :

This occurred to me during an apt dist-upgrade.
   The file /etc/passwd.upwd-write does not exist.
   Attempting to "touch /etc/passwd.upwd-write" gives a permission denied error.
   I can write other files to the /etc/ directory.
   Nothing in lsof has and an fd open to this file.
   Forced a file system check made no difference.
   /etc/passwd is not immutable.
   Made a backup and new copy of /etc. No difference.

Revision history for this message
John (vampire77) wrote :

Traced this down in the base-passwd package to /usr/sbin/update-passwd. Ran the command with --verbose and it throws the same error.

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.