![运行“apt-get update”时出现问题:...没有发布文件](https://linux22.com/image/201695/%E8%BF%90%E8%A1%8C%E2%80%9Capt-get%20update%E2%80%9D%E6%97%B6%E5%87%BA%E7%8E%B0%E9%97%AE%E9%A2%98%EF%BC%9A...%E6%B2%A1%E6%9C%89%E5%8F%91%E5%B8%83%E6%96%87%E4%BB%B6.png)
# apt-get update && apt-get upgrade && apt-get dist-upgrade
Hit:1 http://dl.google.com/linux/chrome/deb stable InRelease
Hit:2 http://packages.microsoft.com/repos/code stable InRelease
Ign:3 http://apt.postgresql.org/pub/repos/apt kali-rolling-pgdg InRelease
Hit:5 https://repo.protonvpn.com/debian stable InRelease
Err:6 http://apt.postgresql.org/pub/repos/apt kali-rolling-pgdg Release
404 Not Found [IP: 147.75.85.69 80]
Get:4 http://mirror.serverius.net/kali kali-rolling InRelease [30.6 kB]
Reading package lists... Done
E: The repository 'http://apt.postgresql.org/pub/repos/apt kali-rolling-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.
答案1
从您的sources.list中删除PostgreSQL存储库,因为它不接受kali-rolling
分发,请参阅这个目录。
postgresql
打包在 Kali Linux 存储库中,您可以通过以下方式安装它:
sudo apt update
sudo apt install postgresql