I'm getting
E: The repository 'https://apt.postgresql.org/pub/repos/apt bionic-pgdg Release' no longer has a Release file.
on sudo apt update. That means that repo for bionic is not accessible.
In my case for this time I can't upgrade Ubuntu version to a newer one and somehow need to manage that. In this case I suppose I need to remove file from /etc/apt/sources.list.d which contains:
deb https://apt.postgresql.org/pub/repos/apt bionic-pgdg main
But then how can I have a possibility to install Postgresql on Bionic? Is there any way e.g. to download and install from source?