Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

intrepidws's avatar

When Updating, Repository does not have a Release file

I have a few older servers that are throwing the following error when I run sudo apt-get update:

W: The repository 'http://apt.postgresql.org/pub/repos/apt xenial-pgdg Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch http://apt.postgresql.org/pub/repos/apt/dists/xenial-pgdg/main/binary-amd64/Packages  404  Not Found [IP: 217.196.149.55 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.

Without getting into details, updating these servers to a more recent version of Ubuntu isn't an option (at least immediately) so I'd like to be able to fix this error and apply updates on these servers.

Anyone know what I need to do?

0 likes
2 replies
sada's avatar

Hi, we faced the same issue, check the version and distribution of ubuntu you are using, if it is not xenial then you need replace xenial with whatever codename is in use and try again

intrepidws's avatar

@sada Thanks for the reply! Where would I make that replacement though?

Please or to participate in this conversation.