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尝试
待解决后更新...