首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >无法通过Ubuntu中的终端安装postgresql

无法通过Ubuntu中的终端安装postgresql
EN

Stack Overflow用户
提问于 2022-04-12 12:08:25
回答 1查看 1.1K关注 0票数 0

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

代码语言:javascript
运行
复制
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?**
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2022-04-14 10:37:00

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

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/71842433

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档