Err:12 http://apt.postgresql.org/pub/repos/apt YOUR_UBUNTU_VERSION_HERE-pgdg Release 404 Not Found [IP: "myip"]

E: The repository 'http://apt.postgresql.org/pub/repos/apt YOUR_UBUNTU_VERSION_HERE-pgdg Release' does not have a Release file.

N: Updating from such a repository can't be done securely, and is therefore disabled by default.

N: See apt-secure(8) manpage for

repository creation and user configuration details.

2 Answers 2


You have somehow added PPA's without changing the text YOUR_UBUNTU_VERSION_HERE-pgdg. remove that lines and add bionic instead. Or complete remove them from the sourcelist.

You can find the file on postgresql in /etc/apt/sources.list.d and delete/edit it.


try this guide, probably it's what your looking for.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.