gpt4 book ai didi

postgresql - 无法在 Ubuntu 中通过终端安装 postgresql

转载 作者:行者123 更新时间:2023-12-04 19:25:11 24 4
gpt4 key购买 nike

我试图在我的桌面上重新安装 postgresql [之前它实际上工作正常],输入 sudo apt-get install postgresql 后出现以下错误
我尝试了很多可能性,我删除了以前安装版本的所有痕迹,如本教程所示 https://askubuntu.com/questions/1052079/unable-to-install-postgresql-9-6-in-ubuntu-18-04

Reading package lists... Done
Building dependency tree
**Reading state information... Done
The following additional packages will be installed:
pgdg-keyring postgresql-14 postgresql-client-14 postgresql-client-common postgresql-common
Suggested packages:
postgresql-doc postgresql-doc-14
The following NEW packages will be installed:
pgdg-keyring postgresql postgresql-14 postgresql-client-14 postgresql-client-common postgresql-common
0 upgraded, 6 newly installed, 0 to remove and 6 not upgraded.
Need to get 17.7 MB/17.7 MB of archives.
After this operation, 59.4 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Err:1 http://apt.postgresql.org/pub/repos/apt focal-pgdg/main amd64 postgresql-client-common all 232.pgdg20.04+1
404 Not Found [IP: 217.196.149.55 80]
Err:2 http://apt.postgresql.org/pub/repos/apt focal-pgdg/main amd64 postgresql-client-14 amd64 14.1-2.pgdg20.04+1
404 Not Found [IP: 217.196.149.55 80]
Err:3 http://apt.postgresql.org/pub/repos/apt focal-pgdg/main amd64 postgresql-common all 232.pgdg20.04+1
404 Not Found [IP: 217.196.149.55 80]
Err:4 http://apt.postgresql.org/pub/repos/apt focal-pgdg/main amd64 postgresql-14 amd64 14.1-2.pgdg20.04+1
404 Not Found [IP: 217.196.149.55 80]
E: Failed to fetch http://apt.postgresql.org/pub/repos/apt/pool/main/p/postgresql-common/postgresql-client-common_232.pgdg20.04+1_all.deb 404 Not Found [IP: 217.196.149.55 80]
E: Failed to fetch http://apt.postgresql.org/pub/repos/apt/pool/main/p/postgresql-14/postgresql-client-14_14.1-2.pgdg20.04+1_amd64.deb 404 Not Found [IP: 217.196.149.55 80]
E: Failed to fetch http://apt.postgresql.org/pub/repos/apt/pool/main/p/postgresql-common/postgresql-common_232.pgdg20.04+1_all.deb 404 Not Found [IP: 217.196.149.55 80]
E: Failed to fetch http://apt.postgresql.org/pub/repos/apt/pool/main/p/postgresql-14/postgresql-14_14.1-2.pgdg20.04+1_amd64.deb 404 Not Found [IP: 217.196.149.55 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?**

最佳答案

如果存储库服务器已过时/关闭,则可能会发生这种情况。尝试选择不同的存储库镜像。
changing mirror

关于postgresql - 无法在 Ubuntu 中通过终端安装 postgresql,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/71842433/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com