仓库 “http://archive.ubuntu.com/ubuntu trusty Release” 没有数字签名,无法安全地用该源进行更新,所以默认禁用该源。

解决apt-get install E: 无法定位软件包,则添加添加镜像源

在etc/apt 的sources.list 添加镜像源 vim /etc/apt/sources.list

 deb http://archive.ubuntu.com/ubuntu/ trusty main universe restricted multiverse

然后 sudo apt-get update 接着安装则提示:
W: GPG 错误:http://archive.ubuntu.com/ubuntu trusty Release: 由于没有公钥,无法验证下列签名: NO_PUBKEY 40976EAF437D05B5 NO_PUBKEY 3B4FE6ACC0B21F32
E: 仓库 “http://archive.ubuntu.com/ubuntu trusty Release” 没有数字签名。
N: 无法安全地用该源进行更新,所以默认禁用该源。
N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。

解决:从报错提示可看出 没有指定的公钥,执行命令安装指定的公钥即可

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 40976EAF437D05B5
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3B4FE6ACC0B21F32

sudo apt-get update
sudo apt-get upgrade 

sudo apt update [sudo] fhh 的密码: 命中:1 http://mirrors.tuna.tsinghua.edu.cn/ubuntu trusty-backports InRelease 忽略:2 http://mirrors.tuna.tsinghua.edu.cn/ubuntu trusty InRelease 命中:3 http://mirrors.tuna.tsinghua.edu.cn/ubuntu trusty-proposed InRelease 忽略:4 https://download.docker.com/linux/ubuntu focal InRelease 错误:5 https://download.docker.com/linux/ubuntu focal Release Could not handshake: Error in the pull function. [IP: 13.249.126.93 443] 获取:6 http://us.archive.ubuntu.com/ubuntu focal-backports InRelease [128 kB] 命中:7 http://mirrors.tuna.tsinghua.edu.cn/ubuntu trusty-security InRelease 命中:8 http://mirrors.tuna.tsinghua.edu.cn/ubuntu trusty-updates InRelease 命中:9 http://mirrors.tuna.tsinghua.edu.cn/ubuntu trusty Release 命中:10 http://lenovo.archive.canonical.com focal InRelease 获取:12 http://security.ubuntu.com/ubuntu focal-security InRelease [128 kB] 命中:13 http://us.archive.ubuntu.com/ubuntu focal InRelease 获取:14 http://us.archive.ubuntu.com/ubuntu focal-updates InRelease [128 kB] 获取:15 http://us.archive.ubuntu.com/ubuntu focal-backports/main amd64 DEP-11 Metadata [7,980 B] 获取:16 http://us.archive.ubuntu.com/ubuntu focal-backports/restricted amd64 DEP-11 Metadata [216 B] 获取:17 http://us.archive.ubuntu.com/ubuntu focal-backports/universe amd64 DEP-11 Metadata [30.5 kB] 获取:18 http://us.archive.ubuntu.com/ubuntu focal-backports/multiverse amd64 DEP-11 Metadata [212 B] 获取:19 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 DEP-11 Metadata [276 kB] 获取:20 http://us.archive.ubuntu.com/ubuntu focal-updates/restricted amd64 DEP-11 Metadata [212 B] 获取:21 http://us.archive.ubuntu.com/ubuntu focal-updates/multiverse amd64 DEP-11 Metadata [940 B] 获取:22 http://us.archive.ubuntu.com/ubuntu focal-updates/universe amd64 DEP-11 Metadata [446 kB] 获取:23 http://security.ubuntu.com/ubuntu focal-security/main amd64 DEP-11 Metadata [65.3 kB] 获取:24 http://security.ubuntu.com/ubuntu focal-security/restricted amd64 DEP-11 Metadata [212 B] 获取:25 http://security.ubuntu.com/ubuntu focal-security/multiverse amd64 DEP-11 Metadata [940 B] 获取:26 http://security.ubuntu.com/ubuntu focal-security/universe amd64 DEP-11 Metadata [160 kB] 命中:27 https://cloud.r-project.org/bin/linux/ubuntu focal-cran40/ InRelease 正在读取软件包列表... 完成 E: 仓库https://download.docker.com/linux/ubuntu focal Release” 不再含有 Release 文件。 N: 无法安全地用该进行更新,所以默认禁用。 N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。
03-23
评论 9
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

小诺大人

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值