123@123-System-Product-Name:~$ sudo apt update
获取:1 http://cn.archive.ubuntu.com/ubuntu bionic InRelease [1,122 B]
错误:1 http://cn.archive.ubuntu.com/ubuntu bionic InRelease
明文签署文件不可用,结果为‘NOSPLIT’(您的网络需要认证吗?)
获取:2 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
获取:3 http://cn.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
获取:4 http://cn.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
获取:5 https://packages.lunarg.com/vulkan/1.2.131 bionic InRelease [6,554 B]
获取:6 https://packages.lunarg.com/vulkan/1.2.131 bionic/main Sources [96.5 kB]
获取:7 https://packages.lunarg.com/vulkan/1.2.131 bionic/main amd64 Packages [123 kB]
获取:8 https://packages.lunarg.com/vulkan/1.2.131 bionic/main i386 Packages [26.8 kB]
正在读取软件包列表... 完成
E: 无法下载 http://cn.archive.ubuntu.com/ubuntu/dists/bionic/InRelease 明文签署文件不可用,结果为‘NOSPLIT’(您的网络需要认证吗?)
E: 仓库 “http://cn.archive.ubuntu.com/ubuntu bionic InRelease” 没有数字签名。
N: 无法安全地用该源进行更新,所以默认禁用该源。
N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。
有时候会出现这种情况,需要更换下源,一般中科大的源好使:
123@123-System-Product-Name:/etc/apt$ sudo cp sources.list sources.list.save
[sudo] 123 的密码:
123@123-System-Product-Name:/etc/apt$ sudo gedit source.list
在打开的文档中把原来官方源替换为中科大的源,我们这里是ubuntu18.04,bionic为版本代号,对应的源为:
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse
保存退出,再执行sudo apt update,ok。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)