Skip to content

apt Release file 錯誤 ​

在 Ubuntu 20.04(focal)跑 apt update 出現:

E: The repository 'http://apt.postgresql.org/pub/repos/apt xenial-pgdg Release' no longer has a Release file.

原因:sources.list.d 裡還留著舊版本(xenial)的 repo。

解法:到 /etc/apt/sources.list.d 找到那一行刪掉,再 apt update。

頁面歷史

Just observe 👀