Score:0

Postgres apt upgrade on Ubuntu 18.04 hangs every time

us flag

On Ubuntu 18.04: any time apt lists postgres as available for upgrade, it hangs forever like this:

Setting up postgresql-server-dev-12 (12.9-1.pgdg18.04+1) ...
Setting up postgresql-12 (12.9-1.pgdg18.04+1) ...
(47 years later)

Trying to cancel it usually doesn't work and I have to manually kill the entire upgrade process. It prompts me to run sudo dpkg --configure -a but that has the same problem. This happens on all versions (12, 13, and 14).

I've tried it with postgres both already started and stopped to no avail.

in flag
Is there anything useful in `/var/log/syslog` or in any of the `apt` logs? Was PostgreSQL originally installed via the default repositories or did it come from a different source?
us flag
not really, syslog just has: `Started resolvconf-pull-resolved.service. Started Daily apt download activities.` and dpkg.log just has: `2021-12-04 11:49:25 configure postgresql-12:amd64 12.9-1.pgdg18.04+1 <none> 2021-12-04 11:49:25 status half-configured postgresql-12:amd64 12.9-1.pgdg18.04+1 `
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.