Score:0

PostgreSQL installation hangs after password prompt

ru flag

I am trying to install PostgreSQL on an AWS cloud CPU instance (instance type: c5.24xlarge, Ubuntu 20.04 LTS).

I have tried both sudo apt install postgresql postgresql-contrib, as well as installing from the apt repository mentioned in the official documentation.

However, in both cases the installation keeps freezing at this point:

Setting up postgresql-common (247.pgdg20.04+1) ...
Password: 

Here after I enter a password and press enter, nothing happens and the installation seems to be stuck.

Then if I cancel via Ctrl+C or Ctrl+D, it blocks any further installations and I need to kill all apt and dpkg processes, delete the dpkg lock files, and purge postgresql from my system before trying again.

I have been stuck on this for a while...is there any way to fix this issue and install postgresql? Thanks

in flag
Welcome to AskUbuntu! There isn't quite enough info here to offer an answer. Could you [edit] your question to include which cloud provider and which instance size is being used? Could you also explain how you installed PostgreSQL? Is it from the default sources or a 3rd-party source? With this information, it will be easier to offer some useful suggestions
RagingStormlight avatar
ru flag
@matigo Thank you for your comment, I have made the edits as you suggested.
NK_ avatar
ng flag
NK_
Hi, asking just to be sure, did you update repositories with "sudo apt update" before installing?
RagingStormlight avatar
ru flag
Yes, I did run "sudo apt update"
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.