Installation hangs at password prompt
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pam (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
postgresql-common (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
1) sudo apt-get install postgresql (on a fresh install of Ubuntu 15.10)
2) Give Password as requested for the configuration of postgresql-common package. (Entered password is visible.)
3) Hit Enter -> process hangs (Ctrl+C or +D do not work either).
4) Only option to exit apt-get is to kill it and delete lock files manually.
Full output of apt-get:
...@...:...$ sudo apt-get install postgresql-9.4
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
postgresql-
Suggested packages:
oidentd ident-server locales-all libdbd-pg-perl
The following NEW packages will be installed:
postgresql-9.4 postgresql-common postgresql-
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/3'433 kB of archives.
After this operation, 14.8 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Preconfiguring packages ...
Selecting previously unselected package postgresql-common.
(Reading database ... 321682 files and directories currently installed.)
Preparing to unpack .../postgresql-
Adding 'diversion of /usr/bin/pg_config to /usr/bin/
Unpacking postgresql-common (169git1) ...
Selecting previously unselected package postgresql-9.4.
Preparing to unpack .../postgresql-
Unpacking postgresql-9.4 (9.4.5-1) ...
Selecting previously unselected package postgresql-
Preparing to unpack .../postgresql-
Unpacking postgresql-
Processing triggers for man-db (2.7.4-1) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for systemd (225-1ubuntu9) ...
Setting up postgresql-common (169git1) ...
Password:
The configuration via dpkg of postgresql-common also hangs after "Password:" prompt. The password can be entered, but is visible and after hitting enter, nothing happens. Can be aborted by Ctrl+C.
$ sudo dpkg --configure -a
Setting up postgresql-common (169git1) ...
Password: hallo
^CPassword change aborted.
dpkg: error processing package postgresql-common (--configure):
subprocess installed post-installation script was interrupted
dpkg: dependency problems prevent configuration of postgresql-9.4:
postgresql-9.4 depends on postgresql-common (>= 142~); however:
Package postgresql-common is not configured yet.
System: Ubuntu 15.10
Package: postgresql-common
Version: 169git1
description: | updated |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
summary: |
- Configuration hangs at password change + Configuration hangs at password prompt |
summary: |
- Configuration hangs at password prompt + Installation hangs at password prompt |
Changed in postgresql-common (Ubuntu): | |
status: | New → Invalid |
I'd think the problem is somewhere in your PAM setup. For some reason "su" is asking for a password even when running as root:
su -s /bin/sh postgres -c "test -O /var/lib/postgresql && postgresql" || \
test -G /var/lib/
chown postgres:postgres /var/lib/postgresql
To be sure where it is really asking, add "set -x" to the beginning of /var/lib/ dpkg/info/ postgresql- common. postinst and do the dpkg --configure -a again.