Thread: Ubuntu 20.04: Problem with postgresql-client-common and postgresql-common upgrade

Ubuntu 20.04: Problem with postgresql-client-common and postgresql-common upgrade

From
Rafał Kędziorski
Date:
Hi,

since 2 hours I can't upgrade

$ apt list --upgradable
Auflistung... Fertig
postgresql-client-common/focal-pgdg-testing,focal-pgdg 246.pgdg20.04+1 all [aktualisierbar von: 244.pgdg20.04+1]
postgresql-common/focal-pgdg-testing,focal-pgdg 246.pgdg20.04+1 all [aktualisierbar von: 244.pgdg20.04+1]

$ sudo apt upgrade postgresql-client-common postgresql-common
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen.... Fertig
Paketaktualisierung (Upgrade) wird berechnet... Fertig
Einige Pakete konnten nicht installiert werden. Das kann bedeuten, dass
Sie eine unmögliche Situation angefordert haben oder, wenn Sie die
Unstable-Distribution verwenden, dass einige erforderliche Pakete noch
nicht erstellt wurden oder Incoming noch nicht verlassen haben.
Die folgenden Informationen helfen Ihnen vielleicht, die Situation zu lösen:

Die folgenden Pakete haben unerfüllte Abhängigkeiten:
 postgresql-common : Kollidiert mit: pgdg-keyring aber 2018.2 soll installiert werden
E: Beschädigte Pakete

$ uname -a
Linux nuc-mini-data-server 5.15.0-52-generic #58~20.04.1-Ubuntu SMP Thu Oct 13 13:09:46 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 20.04.5 LTS
Release:        20.04
Codename:       focal

I have the same problem on three different servers.


Best Reagrds,
Rafal
Am 11.11.22 um 19:11 schrieb Rafał Kędziorski:
> Hi,
>
> since 2 hours I can't upgrade
>
> $ apt list --upgradable
> Auflistung... Fertig
> postgresql-client-common/focal-pgdg-testing,focal-pgdg 246.pgdg20.04+1 
> all [aktualisierbar von: 244.pgdg20.04+1]
> postgresql-common/focal-pgdg-testing,focal-pgdg 246.pgdg20.04+1 all 
> [aktualisierbar von: 244.pgdg20.04+1]
>
> $ sudo apt upgrade postgresql-client-common postgresql-common
> Paketlisten werden gelesen... Fertig
> Abhängigkeitsbaum wird aufgebaut.
> Statusinformationen werden eingelesen.... Fertig
> Paketaktualisierung (Upgrade) wird berechnet... Fertig
> Einige Pakete konnten nicht installiert werden. Das kann bedeuten, dass
> Sie eine unmögliche Situation angefordert haben oder, wenn Sie die
> Unstable-Distribution verwenden, dass einige erforderliche Pakete noch
> nicht erstellt wurden oder Incoming noch nicht verlassen haben.
> Die folgenden Informationen helfen Ihnen vielleicht, die Situation zu 
> lösen:
>
> Die folgenden Pakete haben unerfüllte Abhängigkeiten:
>  postgresql-common : Kollidiert mit: pgdg-keyring aber 2018.2 soll 
> installiert werden
> E: Beschädigte Pakete
>
> $ uname -a
> Linux nuc-mini-data-server 5.15.0-52-generic #58~20.04.1-Ubuntu SMP 
> Thu Oct 13 13:09:46 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
>
> $ lsb_release -a
> No LSB modules are available.
> Distributor ID: Ubuntu
> Description:    Ubuntu 20.04.5 LTS
> Release:        20.04
> Codename:       focal
>
> I have the same problem on three different servers.
>
>
> Best Reagrds,
> Rafal

When I do the apt list command, I get the following:

postgresql-client-common/focal-pgdg 246.pgdg20.04+1 all [aktualisierbar 
von: 244.pgdg20.04+1]
postgresql-common/focal-pgdg 246.pgdg20.04+1 all [aktualisierbar von: 
244.pgdg20.04+1]

So the names differ, you have something with 
postgresql-client-common/focal-pgdg-testing, I don't have any name 
including "testing" on my systems.

Do you have the same content in /etc/apt/sources.list.d/pgdg.list (and 
no other PostgreSQL related source)?

deb http://apt.postgresql.org/pub/repos/apt focal-pgdg main

There the culprit could lie,

Best Regards,

Holger


-- 
Holger Jakobs, Bergisch Gladbach, Tel. +49-178-9759012


Attachment

Re: Ubuntu 20.04: Problem with postgresql-client-common and postgresql-common upgrade

From
Rafał Kędziorski
Date:
Hi Holger,

yes:

deb http://apt.postgresql.org/pub/repos/apt/ focal-pgdg main
/etc/apt/sources.list.d/pgdg.list (END)

I got the info today. But both packages couldn't be updated.

Die folgenden Pakete sind zurückgehalten worden:
  postgresql-client-common postgresql-common
Die folgenden Pakete werden aktualisiert (Upgrade):
  libpq5 postgresql-13 postgresql-client-13

3 aktualisiert, 0 neu installiert, 0 zu entfernen und 2 nicht aktualisiert.

Es müssen 16,8 MB an Archiven heruntergeladen werden.
Nach dieser Operation werden 74,8 kB Plattenplatz zusätzlich benutzt.
Möchten Sie fortfahren? [J/n] j
Holen:1 http://apt.postgresql.org/pub/repos/apt focal-pgdg-testing/main amd64 libpq5 amd64 15.1-1.pgdg20.04+1 [183 kB]
Holen:2 http://apt.postgresql.org/pub/repos/apt focal-pgdg-testing/main amd64 postgresql-client-13 amd64 13.9-1.pgdg20.04+1 [1.503 kB]
Holen:3 http://apt.postgresql.org/pub/repos/apt focal-pgdg-testing/main amd64 postgresql-13 amd64 13.9-1.pgdg20.04+1 [15,1 MB]
Es wurden 16,8 MB in 1 s geholt (20,3 MB/s).
Vorkonfiguration der Pakete ...
(Lese Datenbank ... 198218 Dateien und Verzeichnisse sind derzeit installiert.)
Vorbereitung zum Entpacken von .../libpq5_15.1-1.pgdg20.04+1_amd64.deb ...
Entpacken von libpq5:amd64 (15.1-1.pgdg20.04+1) über (15.0-1.pgdg20.04+1) ...
Vorbereitung zum Entpacken von .../postgresql-client-13_13.9-1.pgdg20.04+1_amd64.deb ...
Entpacken von postgresql-client-13 (13.9-1.pgdg20.04+1) über (13.8-1.pgdg20.04+1) ...
Vorbereitung zum Entpacken von .../postgresql-13_13.9-1.pgdg20.04+1_amd64.deb ...
Entpacken von postgresql-13 (13.9-1.pgdg20.04+1) über (13.8-1.pgdg20.04+1) ...
libpq5:amd64 (15.1-1.pgdg20.04+1) wird eingerichtet ...
postgresql-client-13 (13.9-1.pgdg20.04+1) wird eingerichtet ...
postgresql-13 (13.9-1.pgdg20.04+1) wird eingerichtet ...
Trigger für postgresql-common (244.pgdg20.04+1) werden verarbeitet ...
Building PostgreSQL dictionaries from installed myspell/hunspell packages...
Removing obsolete dictionary files:
Trigger für libc-bin (2.31-0ubuntu9.9) werden verarbeitet ...
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen.... Fertig
0 aktualisiert, 0 neu installiert, 0 zu entfernen und 2 nicht aktualisiert.

I had no problems in the last 3 years.


Best Regards,
Rafal

Am Fr., 11. Nov. 2022 um 19:25 Uhr schrieb Holger Jakobs <holger@jakobs.com>:
Am 11.11.22 um 19:11 schrieb Rafał Kędziorski:
> Hi,
>
> since 2 hours I can't upgrade
>
> $ apt list --upgradable
> Auflistung... Fertig
> postgresql-client-common/focal-pgdg-testing,focal-pgdg 246.pgdg20.04+1
> all [aktualisierbar von: 244.pgdg20.04+1]
> postgresql-common/focal-pgdg-testing,focal-pgdg 246.pgdg20.04+1 all
> [aktualisierbar von: 244.pgdg20.04+1]
>
> $ sudo apt upgrade postgresql-client-common postgresql-common
> Paketlisten werden gelesen... Fertig
> Abhängigkeitsbaum wird aufgebaut.
> Statusinformationen werden eingelesen.... Fertig
> Paketaktualisierung (Upgrade) wird berechnet... Fertig
> Einige Pakete konnten nicht installiert werden. Das kann bedeuten, dass
> Sie eine unmögliche Situation angefordert haben oder, wenn Sie die
> Unstable-Distribution verwenden, dass einige erforderliche Pakete noch
> nicht erstellt wurden oder Incoming noch nicht verlassen haben.
> Die folgenden Informationen helfen Ihnen vielleicht, die Situation zu
> lösen:
>
> Die folgenden Pakete haben unerfüllte Abhängigkeiten:
>  postgresql-common : Kollidiert mit: pgdg-keyring aber 2018.2 soll
> installiert werden
> E: Beschädigte Pakete
>
> $ uname -a
> Linux nuc-mini-data-server 5.15.0-52-generic #58~20.04.1-Ubuntu SMP
> Thu Oct 13 13:09:46 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
>
> $ lsb_release -a
> No LSB modules are available.
> Distributor ID: Ubuntu
> Description:    Ubuntu 20.04.5 LTS
> Release:        20.04
> Codename:       focal
>
> I have the same problem on three different servers.
>
>
> Best Reagrds,
> Rafal

When I do the apt list command, I get the following:

postgresql-client-common/focal-pgdg 246.pgdg20.04+1 all [aktualisierbar
von: 244.pgdg20.04+1]
postgresql-common/focal-pgdg 246.pgdg20.04+1 all [aktualisierbar von:
244.pgdg20.04+1]

So the names differ, you have something with
postgresql-client-common/focal-pgdg-testing, I don't have any name
including "testing" on my systems.

Do you have the same content in /etc/apt/sources.list.d/pgdg.list (and
no other PostgreSQL related source)?

deb http://apt.postgresql.org/pub/repos/apt focal-pgdg main

There the culprit could lie,

Best Regards,

Holger


--
Holger Jakobs, Bergisch Gladbach, Tel. +49-178-9759012

Am 11.11.22 um 19:30 schrieb Rafał Kędziorski:
Hi Holger,

yes:

deb http://apt.postgresql.org/pub/repos/apt/ focal-pgdg main
/etc/apt/sources.list.d/pgdg.list (END)

I got the info today. But both packages couldn't be updated.

Die folgenden Pakete sind zurückgehalten worden:
  postgresql-client-common postgresql-common
Die folgenden Pakete werden aktualisiert (Upgrade):
  libpq5 postgresql-13 postgresql-client-13

3 aktualisiert, 0 neu installiert, 0 zu entfernen und 2 nicht aktualisiert.

Es müssen 16,8 MB an Archiven heruntergeladen werden.
Nach dieser Operation werden 74,8 kB Plattenplatz zusätzlich benutzt.
Möchten Sie fortfahren? [J/n] j
Holen:1 http://apt.postgresql.org/pub/repos/apt focal-pgdg-testing/main amd64 libpq5 amd64 15.1-1.pgdg20.04+1 [183 kB]
Holen:2 http://apt.postgresql.org/pub/repos/apt focal-pgdg-testing/main amd64 postgresql-client-13 amd64 13.9-1.pgdg20.04+1 [1.503 kB]
Holen:3 http://apt.postgresql.org/pub/repos/apt focal-pgdg-testing/main amd64 postgresql-13 amd64 13.9-1.pgdg20.04+1 [15,1 MB]
Es wurden 16,8 MB in 1 s geholt (20,3 MB/s).
Vorkonfiguration der Pakete ...
(Lese Datenbank ... 198218 Dateien und Verzeichnisse sind derzeit installiert.)
Vorbereitung zum Entpacken von .../libpq5_15.1-1.pgdg20.04+1_amd64.deb ...
Entpacken von libpq5:amd64 (15.1-1.pgdg20.04+1) über (15.0-1.pgdg20.04+1) ...
Vorbereitung zum Entpacken von .../postgresql-client-13_13.9-1.pgdg20.04+1_amd64.deb ...
Entpacken von postgresql-client-13 (13.9-1.pgdg20.04+1) über (13.8-1.pgdg20.04+1) ...
Vorbereitung zum Entpacken von .../postgresql-13_13.9-1.pgdg20.04+1_amd64.deb ...
Entpacken von postgresql-13 (13.9-1.pgdg20.04+1) über (13.8-1.pgdg20.04+1) ...
libpq5:amd64 (15.1-1.pgdg20.04+1) wird eingerichtet ...
postgresql-client-13 (13.9-1.pgdg20.04+1) wird eingerichtet ...
postgresql-13 (13.9-1.pgdg20.04+1) wird eingerichtet ...
Trigger für postgresql-common (244.pgdg20.04+1) werden verarbeitet ...
Building PostgreSQL dictionaries from installed myspell/hunspell packages...
Removing obsolete dictionary files:
Trigger für libc-bin (2.31-0ubuntu9.9) werden verarbeitet ...
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen.... Fertig
0 aktualisiert, 0 neu installiert, 0 zu entfernen und 2 nicht aktualisiert.

I had no problems in the last 3 years.


Best Regards,
Rafal

Am Fr., 11. Nov. 2022 um 19:25 Uhr schrieb Holger Jakobs <holger@jakobs.com>:
Am 11.11.22 um 19:11 schrieb Rafał Kędziorski:
> Hi,
>
> since 2 hours I can't upgrade
>
> $ apt list --upgradable
> Auflistung... Fertig
> postgresql-client-common/focal-pgdg-testing,focal-pgdg 246.pgdg20.04+1
> all [aktualisierbar von: 244.pgdg20.04+1]
> postgresql-common/focal-pgdg-testing,focal-pgdg 246.pgdg20.04+1 all
> [aktualisierbar von: 244.pgdg20.04+1]
>
> $ sudo apt upgrade postgresql-client-common postgresql-common
> Paketlisten werden gelesen... Fertig
> Abhängigkeitsbaum wird aufgebaut.
> Statusinformationen werden eingelesen.... Fertig
> Paketaktualisierung (Upgrade) wird berechnet... Fertig
> Einige Pakete konnten nicht installiert werden. Das kann bedeuten, dass
> Sie eine unmögliche Situation angefordert haben oder, wenn Sie die
> Unstable-Distribution verwenden, dass einige erforderliche Pakete noch
> nicht erstellt wurden oder Incoming noch nicht verlassen haben.
> Die folgenden Informationen helfen Ihnen vielleicht, die Situation zu
> lösen:
>
> Die folgenden Pakete haben unerfüllte Abhängigkeiten:
>  postgresql-common : Kollidiert mit: pgdg-keyring aber 2018.2 soll
> installiert werden
> E: Beschädigte Pakete
>
> $ uname -a
> Linux nuc-mini-data-server 5.15.0-52-generic #58~20.04.1-Ubuntu SMP
> Thu Oct 13 13:09:46 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
>
> $ lsb_release -a
> No LSB modules are available.
> Distributor ID: Ubuntu
> Description:    Ubuntu 20.04.5 LTS
> Release:        20.04
> Codename:       focal
>
> I have the same problem on three different servers.
>
>
> Best Reagrds,
> Rafal

When I do the apt list command, I get the following:

postgresql-client-common/focal-pgdg 246.pgdg20.04+1 all [aktualisierbar
von: 244.pgdg20.04+1]
postgresql-common/focal-pgdg 246.pgdg20.04+1 all [aktualisierbar von:
244.pgdg20.04+1]

So the names differ, you have something with
postgresql-client-common/focal-pgdg-testing, I don't have any name
including "testing" on my systems.

Do you have the same content in /etc/apt/sources.list.d/pgdg.list (and
no other PostgreSQL related source)?

deb http://apt.postgresql.org/pub/repos/apt focal-pgdg main

There the culprit could lie,

Best Regards,

Holger




Still, "testing" are development snapshots, not releases. Don't use testing on production systems.

There must be a reason why you get the "testing" packages. I have never used any.

Deleting the packages and re-installing shouldn't cause any problems, because (unless you purge the packages) the configuration files are kept. Still, making a backup of them is a good ideas. And, of course, don't delete the cluster when deleting the packages.

After having removed the packages completely (except configuration), there can hardly be any conflicts.

Best Regards,

Holger

-- 
Holger Jakobs, Bergisch Gladbach, Tel. +49-178-9759012
Attachment

Re: Ubuntu 20.04: Problem with postgresql-client-common and postgresql-common upgrade

From
Rafał Kędziorski
Date:
hm ... I'm not using testing packages. This is strange.

On other server I had this

Die folgenden Pakete sind zurückgehalten worden:
  postgresql-client-common postgresql-common
Die folgenden Pakete werden aktualisiert (Upgrade):
  postgresql-13 postgresql-client-13
2 aktualisiert, 0 neu installiert, 0 zu entfernen und 2 nicht aktualisiert.
Es müssen 16,6 MB an Archiven heruntergeladen werden.
Nach dieser Operation werden 39,9 kB Plattenplatz zusätzlich benutzt.
Möchten Sie fortfahren? [J/n] j
Holen:1 http://apt.postgresql.org/pub/repos/apt focal-pgdg/main amd64 postgresql-client-13 amd64 13.9-1.pgdg20.04+1 [1.503 kB]
Holen:2 http://apt.postgresql.org/pub/repos/apt focal-pgdg/main amd64 postgresql-13 amd64 13.9-1.pgdg20.04+1 [15,1 MB]
Es wurden 16,6 MB in 3 s geholt (6.277 kB/s).
Vorkonfiguration der Pakete ...
(Lese Datenbank ... 218011 Dateien und Verzeichnisse sind derzeit installiert.)
Vorbereitung zum Entpacken von .../postgresql-client-13_13.9-1.pgdg20.04+1_amd64.deb ...
Entpacken von postgresql-client-13 (13.9-1.pgdg20.04+1) über (13.8-1.pgdg20.04+1) ...
Vorbereitung zum Entpacken von .../postgresql-13_13.9-1.pgdg20.04+1_amd64.deb ...
Entpacken von postgresql-13 (13.9-1.pgdg20.04+1) über (13.8-1.pgdg20.04+1) ...
postgresql-client-13 (13.9-1.pgdg20.04+1) wird eingerichtet ...
postgresql-13 (13.9-1.pgdg20.04+1) wird eingerichtet ...

I will probably wait until tomorrow and if the problem occurs I can reinstall it.


Best Regards,
Rafal

Am Fr., 11. Nov. 2022 um 19:37 Uhr schrieb Holger Jakobs <holger@jakobs.com>:
Am 11.11.22 um 19:30 schrieb Rafał Kędziorski:
Hi Holger,

yes:

deb http://apt.postgresql.org/pub/repos/apt/ focal-pgdg main
/etc/apt/sources.list.d/pgdg.list (END)

I got the info today. But both packages couldn't be updated.

Die folgenden Pakete sind zurückgehalten worden:
  postgresql-client-common postgresql-common
Die folgenden Pakete werden aktualisiert (Upgrade):
  libpq5 postgresql-13 postgresql-client-13

3 aktualisiert, 0 neu installiert, 0 zu entfernen und 2 nicht aktualisiert.

Es müssen 16,8 MB an Archiven heruntergeladen werden.
Nach dieser Operation werden 74,8 kB Plattenplatz zusätzlich benutzt.
Möchten Sie fortfahren? [J/n] j
Holen:1 http://apt.postgresql.org/pub/repos/apt focal-pgdg-testing/main amd64 libpq5 amd64 15.1-1.pgdg20.04+1 [183 kB]
Holen:2 http://apt.postgresql.org/pub/repos/apt focal-pgdg-testing/main amd64 postgresql-client-13 amd64 13.9-1.pgdg20.04+1 [1.503 kB]
Holen:3 http://apt.postgresql.org/pub/repos/apt focal-pgdg-testing/main amd64 postgresql-13 amd64 13.9-1.pgdg20.04+1 [15,1 MB]
Es wurden 16,8 MB in 1 s geholt (20,3 MB/s).
Vorkonfiguration der Pakete ...
(Lese Datenbank ... 198218 Dateien und Verzeichnisse sind derzeit installiert.)
Vorbereitung zum Entpacken von .../libpq5_15.1-1.pgdg20.04+1_amd64.deb ...
Entpacken von libpq5:amd64 (15.1-1.pgdg20.04+1) über (15.0-1.pgdg20.04+1) ...
Vorbereitung zum Entpacken von .../postgresql-client-13_13.9-1.pgdg20.04+1_amd64.deb ...
Entpacken von postgresql-client-13 (13.9-1.pgdg20.04+1) über (13.8-1.pgdg20.04+1) ...
Vorbereitung zum Entpacken von .../postgresql-13_13.9-1.pgdg20.04+1_amd64.deb ...
Entpacken von postgresql-13 (13.9-1.pgdg20.04+1) über (13.8-1.pgdg20.04+1) ...
libpq5:amd64 (15.1-1.pgdg20.04+1) wird eingerichtet ...
postgresql-client-13 (13.9-1.pgdg20.04+1) wird eingerichtet ...
postgresql-13 (13.9-1.pgdg20.04+1) wird eingerichtet ...
Trigger für postgresql-common (244.pgdg20.04+1) werden verarbeitet ...
Building PostgreSQL dictionaries from installed myspell/hunspell packages...
Removing obsolete dictionary files:
Trigger für libc-bin (2.31-0ubuntu9.9) werden verarbeitet ...
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen.... Fertig
0 aktualisiert, 0 neu installiert, 0 zu entfernen und 2 nicht aktualisiert.

I had no problems in the last 3 years.


Best Regards,
Rafal

Am Fr., 11. Nov. 2022 um 19:25 Uhr schrieb Holger Jakobs <holger@jakobs.com>:
Am 11.11.22 um 19:11 schrieb Rafał Kędziorski:
> Hi,
>
> since 2 hours I can't upgrade
>
> $ apt list --upgradable
> Auflistung... Fertig
> postgresql-client-common/focal-pgdg-testing,focal-pgdg 246.pgdg20.04+1
> all [aktualisierbar von: 244.pgdg20.04+1]
> postgresql-common/focal-pgdg-testing,focal-pgdg 246.pgdg20.04+1 all
> [aktualisierbar von: 244.pgdg20.04+1]
>
> $ sudo apt upgrade postgresql-client-common postgresql-common
> Paketlisten werden gelesen... Fertig
> Abhängigkeitsbaum wird aufgebaut.
> Statusinformationen werden eingelesen.... Fertig
> Paketaktualisierung (Upgrade) wird berechnet... Fertig
> Einige Pakete konnten nicht installiert werden. Das kann bedeuten, dass
> Sie eine unmögliche Situation angefordert haben oder, wenn Sie die
> Unstable-Distribution verwenden, dass einige erforderliche Pakete noch
> nicht erstellt wurden oder Incoming noch nicht verlassen haben.
> Die folgenden Informationen helfen Ihnen vielleicht, die Situation zu
> lösen:
>
> Die folgenden Pakete haben unerfüllte Abhängigkeiten:
>  postgresql-common : Kollidiert mit: pgdg-keyring aber 2018.2 soll
> installiert werden
> E: Beschädigte Pakete
>
> $ uname -a
> Linux nuc-mini-data-server 5.15.0-52-generic #58~20.04.1-Ubuntu SMP
> Thu Oct 13 13:09:46 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
>
> $ lsb_release -a
> No LSB modules are available.
> Distributor ID: Ubuntu
> Description:    Ubuntu 20.04.5 LTS
> Release:        20.04
> Codename:       focal
>
> I have the same problem on three different servers.
>
>
> Best Reagrds,
> Rafal

When I do the apt list command, I get the following:

postgresql-client-common/focal-pgdg 246.pgdg20.04+1 all [aktualisierbar
von: 244.pgdg20.04+1]
postgresql-common/focal-pgdg 246.pgdg20.04+1 all [aktualisierbar von:
244.pgdg20.04+1]

So the names differ, you have something with
postgresql-client-common/focal-pgdg-testing, I don't have any name
including "testing" on my systems.

Do you have the same content in /etc/apt/sources.list.d/pgdg.list (and
no other PostgreSQL related source)?

deb http://apt.postgresql.org/pub/repos/apt focal-pgdg main

There the culprit could lie,

Best Regards,

Holger




Still, "testing" are development snapshots, not releases. Don't use testing on production systems.

There must be a reason why you get the "testing" packages. I have never used any.

Deleting the packages and re-installing shouldn't cause any problems, because (unless you purge the packages) the configuration files are kept. Still, making a backup of them is a good ideas. And, of course, don't delete the cluster when deleting the packages.

After having removed the packages completely (except configuration), there can hardly be any conflicts.

Best Regards,

Holger

-- 
Holger Jakobs, Bergisch Gladbach, Tel. +49-178-9759012

Re: Ubuntu 20.04: Problem with postgresql-client-common and postgresql-common upgrade

From
Rafał Kędziorski
Date:
I had the testing repo (but I don't know why) only on one of three servers.

-rw-r--r-- 1 root root   61 Nov 11 20:06 pgdg.list
-rw-r--r-- 1 root root   61 Okt  3 22:04 pgdg.list.save
-rw-r--r-- 1 root root   72 Okt  3 22:04 pgdg-testing.list
-rw-r--r-- 1 root root   72 Okt  3 22:04 pgdg-testing.list.save

Now I removed it.

But the problem still exists.


Best Regards,
Rafal

Am Fr., 11. Nov. 2022 um 19:53 Uhr schrieb Rafał Kędziorski <rafal.kedziorski@gmail.com>:
hm ... I'm not using testing packages. This is strange.

On other server I had this

Die folgenden Pakete sind zurückgehalten worden:
  postgresql-client-common postgresql-common
Die folgenden Pakete werden aktualisiert (Upgrade):
  postgresql-13 postgresql-client-13
2 aktualisiert, 0 neu installiert, 0 zu entfernen und 2 nicht aktualisiert.
Es müssen 16,6 MB an Archiven heruntergeladen werden.
Nach dieser Operation werden 39,9 kB Plattenplatz zusätzlich benutzt.
Möchten Sie fortfahren? [J/n] j
Holen:1 http://apt.postgresql.org/pub/repos/apt focal-pgdg/main amd64 postgresql-client-13 amd64 13.9-1.pgdg20.04+1 [1.503 kB]
Holen:2 http://apt.postgresql.org/pub/repos/apt focal-pgdg/main amd64 postgresql-13 amd64 13.9-1.pgdg20.04+1 [15,1 MB]
Es wurden 16,6 MB in 3 s geholt (6.277 kB/s).
Vorkonfiguration der Pakete ...
(Lese Datenbank ... 218011 Dateien und Verzeichnisse sind derzeit installiert.)
Vorbereitung zum Entpacken von .../postgresql-client-13_13.9-1.pgdg20.04+1_amd64.deb ...
Entpacken von postgresql-client-13 (13.9-1.pgdg20.04+1) über (13.8-1.pgdg20.04+1) ...
Vorbereitung zum Entpacken von .../postgresql-13_13.9-1.pgdg20.04+1_amd64.deb ...
Entpacken von postgresql-13 (13.9-1.pgdg20.04+1) über (13.8-1.pgdg20.04+1) ...
postgresql-client-13 (13.9-1.pgdg20.04+1) wird eingerichtet ...
postgresql-13 (13.9-1.pgdg20.04+1) wird eingerichtet ...

I will probably wait until tomorrow and if the problem occurs I can reinstall it.


Best Regards,
Rafal

Am Fr., 11. Nov. 2022 um 19:37 Uhr schrieb Holger Jakobs <holger@jakobs.com>:
Am 11.11.22 um 19:30 schrieb Rafał Kędziorski:
Hi Holger,

yes:

deb http://apt.postgresql.org/pub/repos/apt/ focal-pgdg main
/etc/apt/sources.list.d/pgdg.list (END)

I got the info today. But both packages couldn't be updated.

Die folgenden Pakete sind zurückgehalten worden:
  postgresql-client-common postgresql-common
Die folgenden Pakete werden aktualisiert (Upgrade):
  libpq5 postgresql-13 postgresql-client-13

3 aktualisiert, 0 neu installiert, 0 zu entfernen und 2 nicht aktualisiert.

Es müssen 16,8 MB an Archiven heruntergeladen werden.
Nach dieser Operation werden 74,8 kB Plattenplatz zusätzlich benutzt.
Möchten Sie fortfahren? [J/n] j
Holen:1 http://apt.postgresql.org/pub/repos/apt focal-pgdg-testing/main amd64 libpq5 amd64 15.1-1.pgdg20.04+1 [183 kB]
Holen:2 http://apt.postgresql.org/pub/repos/apt focal-pgdg-testing/main amd64 postgresql-client-13 amd64 13.9-1.pgdg20.04+1 [1.503 kB]
Holen:3 http://apt.postgresql.org/pub/repos/apt focal-pgdg-testing/main amd64 postgresql-13 amd64 13.9-1.pgdg20.04+1 [15,1 MB]
Es wurden 16,8 MB in 1 s geholt (20,3 MB/s).
Vorkonfiguration der Pakete ...
(Lese Datenbank ... 198218 Dateien und Verzeichnisse sind derzeit installiert.)
Vorbereitung zum Entpacken von .../libpq5_15.1-1.pgdg20.04+1_amd64.deb ...
Entpacken von libpq5:amd64 (15.1-1.pgdg20.04+1) über (15.0-1.pgdg20.04+1) ...
Vorbereitung zum Entpacken von .../postgresql-client-13_13.9-1.pgdg20.04+1_amd64.deb ...
Entpacken von postgresql-client-13 (13.9-1.pgdg20.04+1) über (13.8-1.pgdg20.04+1) ...
Vorbereitung zum Entpacken von .../postgresql-13_13.9-1.pgdg20.04+1_amd64.deb ...
Entpacken von postgresql-13 (13.9-1.pgdg20.04+1) über (13.8-1.pgdg20.04+1) ...
libpq5:amd64 (15.1-1.pgdg20.04+1) wird eingerichtet ...
postgresql-client-13 (13.9-1.pgdg20.04+1) wird eingerichtet ...
postgresql-13 (13.9-1.pgdg20.04+1) wird eingerichtet ...
Trigger für postgresql-common (244.pgdg20.04+1) werden verarbeitet ...
Building PostgreSQL dictionaries from installed myspell/hunspell packages...
Removing obsolete dictionary files:
Trigger für libc-bin (2.31-0ubuntu9.9) werden verarbeitet ...
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen.... Fertig
0 aktualisiert, 0 neu installiert, 0 zu entfernen und 2 nicht aktualisiert.

I had no problems in the last 3 years.


Best Regards,
Rafal

Am Fr., 11. Nov. 2022 um 19:25 Uhr schrieb Holger Jakobs <holger@jakobs.com>:
Am 11.11.22 um 19:11 schrieb Rafał Kędziorski:
> Hi,
>
> since 2 hours I can't upgrade
>
> $ apt list --upgradable
> Auflistung... Fertig
> postgresql-client-common/focal-pgdg-testing,focal-pgdg 246.pgdg20.04+1
> all [aktualisierbar von: 244.pgdg20.04+1]
> postgresql-common/focal-pgdg-testing,focal-pgdg 246.pgdg20.04+1 all
> [aktualisierbar von: 244.pgdg20.04+1]
>
> $ sudo apt upgrade postgresql-client-common postgresql-common
> Paketlisten werden gelesen... Fertig
> Abhängigkeitsbaum wird aufgebaut.
> Statusinformationen werden eingelesen.... Fertig
> Paketaktualisierung (Upgrade) wird berechnet... Fertig
> Einige Pakete konnten nicht installiert werden. Das kann bedeuten, dass
> Sie eine unmögliche Situation angefordert haben oder, wenn Sie die
> Unstable-Distribution verwenden, dass einige erforderliche Pakete noch
> nicht erstellt wurden oder Incoming noch nicht verlassen haben.
> Die folgenden Informationen helfen Ihnen vielleicht, die Situation zu
> lösen:
>
> Die folgenden Pakete haben unerfüllte Abhängigkeiten:
>  postgresql-common : Kollidiert mit: pgdg-keyring aber 2018.2 soll
> installiert werden
> E: Beschädigte Pakete
>
> $ uname -a
> Linux nuc-mini-data-server 5.15.0-52-generic #58~20.04.1-Ubuntu SMP
> Thu Oct 13 13:09:46 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
>
> $ lsb_release -a
> No LSB modules are available.
> Distributor ID: Ubuntu
> Description:    Ubuntu 20.04.5 LTS
> Release:        20.04
> Codename:       focal
>
> I have the same problem on three different servers.
>
>
> Best Reagrds,
> Rafal

When I do the apt list command, I get the following:

postgresql-client-common/focal-pgdg 246.pgdg20.04+1 all [aktualisierbar
von: 244.pgdg20.04+1]
postgresql-common/focal-pgdg 246.pgdg20.04+1 all [aktualisierbar von:
244.pgdg20.04+1]

So the names differ, you have something with
postgresql-client-common/focal-pgdg-testing, I don't have any name
including "testing" on my systems.

Do you have the same content in /etc/apt/sources.list.d/pgdg.list (and
no other PostgreSQL related source)?

deb http://apt.postgresql.org/pub/repos/apt focal-pgdg main

There the culprit could lie,

Best Regards,

Holger




Still, "testing" are development snapshots, not releases. Don't use testing on production systems.

There must be a reason why you get the "testing" packages. I have never used any.

Deleting the packages and re-installing shouldn't cause any problems, because (unless you purge the packages) the configuration files are kept. Still, making a backup of them is a good ideas. And, of course, don't delete the cluster when deleting the packages.

After having removed the packages completely (except configuration), there can hardly be any conflicts.

Best Regards,

Holger

-- 
Holger Jakobs, Bergisch Gladbach, Tel. +49-178-9759012

Re: Ubuntu 20.04: Problem with postgresql-client-common and postgresql-common upgrade

From
Rafał Kędziorski
Date:
I reinstalled both packages

sudo apt reinstall postgresql-client-common postgresql-common

and it worked.


Best Regards,
Rafal

Am Fr., 11. Nov. 2022 um 20:15 Uhr schrieb Rafał Kędziorski <rafal.kedziorski@gmail.com>:
I had the testing repo (but I don't know why) only on one of three servers.

-rw-r--r-- 1 root root   61 Nov 11 20:06 pgdg.list
-rw-r--r-- 1 root root   61 Okt  3 22:04 pgdg.list.save
-rw-r--r-- 1 root root   72 Okt  3 22:04 pgdg-testing.list
-rw-r--r-- 1 root root   72 Okt  3 22:04 pgdg-testing.list.save

Now I removed it.

But the problem still exists.


Best Regards,
Rafal

Am Fr., 11. Nov. 2022 um 19:53 Uhr schrieb Rafał Kędziorski <rafal.kedziorski@gmail.com>:
hm ... I'm not using testing packages. This is strange.

On other server I had this

Die folgenden Pakete sind zurückgehalten worden:
  postgresql-client-common postgresql-common
Die folgenden Pakete werden aktualisiert (Upgrade):
  postgresql-13 postgresql-client-13
2 aktualisiert, 0 neu installiert, 0 zu entfernen und 2 nicht aktualisiert.
Es müssen 16,6 MB an Archiven heruntergeladen werden.
Nach dieser Operation werden 39,9 kB Plattenplatz zusätzlich benutzt.
Möchten Sie fortfahren? [J/n] j
Holen:1 http://apt.postgresql.org/pub/repos/apt focal-pgdg/main amd64 postgresql-client-13 amd64 13.9-1.pgdg20.04+1 [1.503 kB]
Holen:2 http://apt.postgresql.org/pub/repos/apt focal-pgdg/main amd64 postgresql-13 amd64 13.9-1.pgdg20.04+1 [15,1 MB]
Es wurden 16,6 MB in 3 s geholt (6.277 kB/s).
Vorkonfiguration der Pakete ...
(Lese Datenbank ... 218011 Dateien und Verzeichnisse sind derzeit installiert.)
Vorbereitung zum Entpacken von .../postgresql-client-13_13.9-1.pgdg20.04+1_amd64.deb ...
Entpacken von postgresql-client-13 (13.9-1.pgdg20.04+1) über (13.8-1.pgdg20.04+1) ...
Vorbereitung zum Entpacken von .../postgresql-13_13.9-1.pgdg20.04+1_amd64.deb ...
Entpacken von postgresql-13 (13.9-1.pgdg20.04+1) über (13.8-1.pgdg20.04+1) ...
postgresql-client-13 (13.9-1.pgdg20.04+1) wird eingerichtet ...
postgresql-13 (13.9-1.pgdg20.04+1) wird eingerichtet ...

I will probably wait until tomorrow and if the problem occurs I can reinstall it.


Best Regards,
Rafal

Am Fr., 11. Nov. 2022 um 19:37 Uhr schrieb Holger Jakobs <holger@jakobs.com>:
Am 11.11.22 um 19:30 schrieb Rafał Kędziorski:
Hi Holger,

yes:

deb http://apt.postgresql.org/pub/repos/apt/ focal-pgdg main
/etc/apt/sources.list.d/pgdg.list (END)

I got the info today. But both packages couldn't be updated.

Die folgenden Pakete sind zurückgehalten worden:
  postgresql-client-common postgresql-common
Die folgenden Pakete werden aktualisiert (Upgrade):
  libpq5 postgresql-13 postgresql-client-13

3 aktualisiert, 0 neu installiert, 0 zu entfernen und 2 nicht aktualisiert.

Es müssen 16,8 MB an Archiven heruntergeladen werden.
Nach dieser Operation werden 74,8 kB Plattenplatz zusätzlich benutzt.
Möchten Sie fortfahren? [J/n] j
Holen:1 http://apt.postgresql.org/pub/repos/apt focal-pgdg-testing/main amd64 libpq5 amd64 15.1-1.pgdg20.04+1 [183 kB]
Holen:2 http://apt.postgresql.org/pub/repos/apt focal-pgdg-testing/main amd64 postgresql-client-13 amd64 13.9-1.pgdg20.04+1 [1.503 kB]
Holen:3 http://apt.postgresql.org/pub/repos/apt focal-pgdg-testing/main amd64 postgresql-13 amd64 13.9-1.pgdg20.04+1 [15,1 MB]
Es wurden 16,8 MB in 1 s geholt (20,3 MB/s).
Vorkonfiguration der Pakete ...
(Lese Datenbank ... 198218 Dateien und Verzeichnisse sind derzeit installiert.)
Vorbereitung zum Entpacken von .../libpq5_15.1-1.pgdg20.04+1_amd64.deb ...
Entpacken von libpq5:amd64 (15.1-1.pgdg20.04+1) über (15.0-1.pgdg20.04+1) ...
Vorbereitung zum Entpacken von .../postgresql-client-13_13.9-1.pgdg20.04+1_amd64.deb ...
Entpacken von postgresql-client-13 (13.9-1.pgdg20.04+1) über (13.8-1.pgdg20.04+1) ...
Vorbereitung zum Entpacken von .../postgresql-13_13.9-1.pgdg20.04+1_amd64.deb ...
Entpacken von postgresql-13 (13.9-1.pgdg20.04+1) über (13.8-1.pgdg20.04+1) ...
libpq5:amd64 (15.1-1.pgdg20.04+1) wird eingerichtet ...
postgresql-client-13 (13.9-1.pgdg20.04+1) wird eingerichtet ...
postgresql-13 (13.9-1.pgdg20.04+1) wird eingerichtet ...
Trigger für postgresql-common (244.pgdg20.04+1) werden verarbeitet ...
Building PostgreSQL dictionaries from installed myspell/hunspell packages...
Removing obsolete dictionary files:
Trigger für libc-bin (2.31-0ubuntu9.9) werden verarbeitet ...
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen.... Fertig
0 aktualisiert, 0 neu installiert, 0 zu entfernen und 2 nicht aktualisiert.

I had no problems in the last 3 years.


Best Regards,
Rafal

Am Fr., 11. Nov. 2022 um 19:25 Uhr schrieb Holger Jakobs <holger@jakobs.com>:
Am 11.11.22 um 19:11 schrieb Rafał Kędziorski:
> Hi,
>
> since 2 hours I can't upgrade
>
> $ apt list --upgradable
> Auflistung... Fertig
> postgresql-client-common/focal-pgdg-testing,focal-pgdg 246.pgdg20.04+1
> all [aktualisierbar von: 244.pgdg20.04+1]
> postgresql-common/focal-pgdg-testing,focal-pgdg 246.pgdg20.04+1 all
> [aktualisierbar von: 244.pgdg20.04+1]
>
> $ sudo apt upgrade postgresql-client-common postgresql-common
> Paketlisten werden gelesen... Fertig
> Abhängigkeitsbaum wird aufgebaut.
> Statusinformationen werden eingelesen.... Fertig
> Paketaktualisierung (Upgrade) wird berechnet... Fertig
> Einige Pakete konnten nicht installiert werden. Das kann bedeuten, dass
> Sie eine unmögliche Situation angefordert haben oder, wenn Sie die
> Unstable-Distribution verwenden, dass einige erforderliche Pakete noch
> nicht erstellt wurden oder Incoming noch nicht verlassen haben.
> Die folgenden Informationen helfen Ihnen vielleicht, die Situation zu
> lösen:
>
> Die folgenden Pakete haben unerfüllte Abhängigkeiten:
>  postgresql-common : Kollidiert mit: pgdg-keyring aber 2018.2 soll
> installiert werden
> E: Beschädigte Pakete
>
> $ uname -a
> Linux nuc-mini-data-server 5.15.0-52-generic #58~20.04.1-Ubuntu SMP
> Thu Oct 13 13:09:46 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
>
> $ lsb_release -a
> No LSB modules are available.
> Distributor ID: Ubuntu
> Description:    Ubuntu 20.04.5 LTS
> Release:        20.04
> Codename:       focal
>
> I have the same problem on three different servers.
>
>
> Best Reagrds,
> Rafal

When I do the apt list command, I get the following:

postgresql-client-common/focal-pgdg 246.pgdg20.04+1 all [aktualisierbar
von: 244.pgdg20.04+1]
postgresql-common/focal-pgdg 246.pgdg20.04+1 all [aktualisierbar von:
244.pgdg20.04+1]

So the names differ, you have something with
postgresql-client-common/focal-pgdg-testing, I don't have any name
including "testing" on my systems.

Do you have the same content in /etc/apt/sources.list.d/pgdg.list (and
no other PostgreSQL related source)?

deb http://apt.postgresql.org/pub/repos/apt focal-pgdg main

There the culprit could lie,

Best Regards,

Holger




Still, "testing" are development snapshots, not releases. Don't use testing on production systems.

There must be a reason why you get the "testing" packages. I have never used any.

Deleting the packages and re-installing shouldn't cause any problems, because (unless you purge the packages) the configuration files are kept. Still, making a backup of them is a good ideas. And, of course, don't delete the cluster when deleting the packages.

After having removed the packages completely (except configuration), there can hardly be any conflicts.

Best Regards,

Holger

-- 
Holger Jakobs, Bergisch Gladbach, Tel. +49-178-9759012