Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have been using ubuntu 12.04 since its release. All of suddenly I started getting error messages whenever I try to install anything and it fails to install. Below is the output that I get when I run "apt-get install"

Do you want to continue [Y/n]? y
Setting up passwd (1: ...
/var/lib/dpkg/info/passwd.postinst: line 19: /usr/local/bin/getent: No such file or directory
groupadd: group 'shadow' already exists
Group ID 42 has been allocated for the shadow group.  You have either
used 42 yourself or created a shadow group with a different ID.
Please correct this problem and reconfigure with dpkg --configure passwd''.

Note that both user and group IDs in the range 0-99 are globally
allocated by the Debian project and must be the same on every Debian
dpkg: error processing passwd (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)

Can anybody please help me to fix the issue. Thanks

share|improve this question
add comment

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.