sudo apt-get update http://ppa.launchpad.net/jonathonf 403 Forbidden

sudo apt-get update

报错

W: 仓库 “http://ppa.launchpad.net/jonathonf/python-3.6/ubuntu xenial Release” 没有 Release 文件。
N: 无法认证来自该源的数据,所以使用它会带来潜在风险。
N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。
E: 无法下载 http://ppa.launchpad.net/jonathonf/python-3.6/ubuntu/dists/xenial/main/binary-amd64/Packages  403  Forbidden [IP: 91.189.95.83 80]
E: 部分索引文件下载失败。如果忽略它们,那将转而使用旧的索引文件。

我报错是python3.6的错误

进入/etc/apt/sources.list.d文件把有关python3.6文件,以list结尾的文件删除。或者修改为.bak结尾

cd /etc/apt/sources.list.d
sudo mv jonathonf-ubuntu-python-3_6-xenial.list jonathonf-ubuntu-python-3_6-xenial.list.bak

再进行

sudo apt-get update

然后会出现以下错误

Get:103 http://cn.archive.ubuntu.com/ubuntu xenial-backports/multiverse DEP-11 64x64 Icons [29 B]
Fetched 48.6 MB in 55s (868 kB/s)                                              

(appstreamcli:3863): GLib-CRITICAL **: g_strchug: assertion 'string != NULL' failed

(appstreamcli:3863): GLib-CRITICAL **: g_strchomp: assertion 'string != NULL' failed

(appstreamcli:3863): GLib-CRITICAL **: g_strchug: assertion 'string != NULL' failed

(appstreamcli:3863): GLib-CRITICAL **: g_strchomp: assertion 'string != NULL' failed

(appstreamcli:3863): GLib-CRITICAL **: g_strchug: assertion 'string != NULL' failed

(appstreamcli:3863): GLib-CRITICAL **: g_strchomp: assertion 'string != NULL' failed
AppStream cache update completed, but some metadata was ignored due to errors.
Reading package lists... Done
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://developer.download.nvidia.cn/compute/machine-learning/repos/ubuntu1604/x86_64  Release: The following signatures were invalid: NODATA 1  NODATA 2
E: Failed to fetch http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/InRelease  Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
W: Failed to fetch http://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1604/x86_64/Release.gpg  The following signatures were invalid: NODATA 1  NODATA 2

暂未解决,可参考https://askubuntu.com/questions/1031881/dist-upgrade-seems-to-have-created-an-issue尝试

待解决后更新...

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值