在 Ubuntu 中无法通过终端安装 postgresql
Unable to install postgresql via terminal in Ubuntu
我试图在我的桌面上重新安装 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?**
如果存储库服务器是 outdated/down,就会发生这种情况。尝试选择不同的存储库镜像。
我试图在我的桌面上重新安装 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?**
如果存储库服务器是 outdated/down,就会发生这种情况。尝试选择不同的存储库镜像。