开发者社区> 问答> 正文

apt-get update 报错?报错

1.我按照以下步骤做的

PostgreSQL is available in the default repositories. So enter the following command from the Terminal to install it.

sudo apt-get install postgresql postgresql-contrib

If you’re looking for other versions, add the PostgreSQL repository, and install it as shown below.

On Ubuntu 14.10 systems:

Create the file /etc/apt/sources.list.d/pgdg.list;

vi /etc/apt/sources.list.d/pgdg.list

Add a line for the repository:

deb http://apt.postgresql.org/pub/repos/apt/ utopic-pgdg main

On Ubuntu 14.04, add the following line:

deb http://apt.postgresql.org/pub/repos/apt/ trusty-pgdg main

On Ubuntu 12.04, add the following line:

deb http://apt.postgresql.org/pub/repos/apt/ precise-pgdg main

Import the repository signing key:

wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc
sudo apt-key add -

Update the package lists:

sudo apt-get update

Then install the required version.

sudo apt-get install postgresql-9.4
2.结果在 apt-get update报如下错误

已经使用过如下命令行

wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc
sudo apt-key add -

还是报这错.求解决方法

解决方法:

http://www.boyunjian.com/do/article/snapshot.do?uid=3098256223770225222

展开
收起
爱吃鱼的程序员 2020-06-14 17:43:45 773 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    应该是没有验证你的公钥签名。怎么验证呢你ubuntu究竟是什么版本?
    14.04解决了删掉<spanstyle="font-family:微软雅黑,Verdana,sans-serif,宋体;font-size:14px;line-height:22px;background-color:#FFFFFF;">/var/lib/apt/lists/下的所有文件和文件夹,然后重新update解决了 谢谢 我直接上软件源删的

    2020-06-14 17:44:04
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
低代码开发师(初级)实战教程 立即下载
冬季实战营第三期:MySQL数据库进阶实战 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载