一 sudo apt-get update作用
从服务器拉取可用的包到本地
二 出错情况
Ign:9 https://download.sublimetext.com apt/stable/ Packages
Ign:10 https://download.sublimetext.com apt/stable/ Translation-en_US
Ign:11 https://download.sublimetext.com apt/stable/ Translation-en
Err:9 https://download.sublimetext.com apt/stable/ Packagesserver certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
Ign:10 https://download.sublimetext.com apt/stable/ Translation-en_US
Ign:11 https://download.sublimetext.com apt/stable/ Translation-en
Reading package lists... Done
W: The repository 'https://download.sublimetext.com apt/stable/ Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch https://download.sublimetext.com/apt/stable/Packages server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
E: Some index files failed to download. They have been ignored, or old ones used instead.
三 原因分析
从应用显示的提示可以看到,系统认为某些网站存在问题。
如果该源对后面安装的软件包不产生影响,最直接的方式就是将该源从系统中删除
四 解决方式
- 进入ubuntu桌面右上角按钮菜单中选择“系统设置”。
-
在弹出的窗口中选择 “软件和更新”。
-
切换到“其他软件”选项,在里面选择删除的“源”点击底部的“删除”。
重新运行sudo apt-get update,问题解决
参考链接
1.https://jingyan.baidu.com/article/5553fa8298269c65a3393444.html