Thank you for helping me with the solution, but apparently I decided to update Ubuntu to version 24 and it helped me install postgis easily
пн, 23 сент. 2024 г. в 18:57, Christoph Berg <myon@debian.org>:
Re: Pavel Konoplev > I use: > Distributor ID: Ubuntu > Description: Ubuntu 22.04.5 LTS > Release: 22.04 > Codename: jammy > > ahh, i haven't this file (etc/apt/sources.list.d/pgdg.sources)... what > should be in this file?
You should have some file in /etc/apt/sources.list* which mentions focal-pgdg. Update that to jammy-pgdg.