**
一:api以及各种命令缺失问题
**
问题1:
error :-bash: sudo: command not found
terminal中输入:
apt-get install sudo -y
查看安装是否完成
sudo -V
出现上面内容就说明问题解决
二:网络问题
问题1:
Using Anaconda API: https://api.anaconda.org
Fetching package metadata .......
CondaHTTPError: HTTP None None for url <https://repo.continuum.io/pkgs/free/linux-64/repodata.json.bz2>
Elapsed: None
An HTTP error occurred when trying to retrieve this URL.
HTTP errors are often intermittent, and a simple retry will get you on your way.
ConnectionError(MaxRetryError("HTTPSConnectionPool(host='repo.continuum.io', port=443): Max retries exceeded with url: /pkgs/free/linux-64/repodata.json.bz2 (Caused by NewConnectionError('<requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f6eacb410b8>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution',))",),)
查看Ubuntu版本
cat /etc/issue
然后换成清华源:
https://blog.youkuaiyun.com/Netfilter007/article/details/103895700?utm_medium=distribute.pc_relevant.none-task-blog-2defaultbaidujs_title~default-0.no_search_link&spm=1001.2101.3001.4242.1
问题2:
Err:11 https://mirrors.tuna.tsinghua.edu.cn/ubuntu bionic Release
Certificate verification failed: The certificate is NOT trusted. The certificate chain uses expired certificate. Could not handshake: Error in the certificate verification. [IP: 101.6.15.130 443]
E: The repository 'https://mirrors.tuna.tsinghua.edu.cn/ubuntu bionic-security Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
应该是由于缺乏 ca-certificates
直接 apt install ca-certificates
也会出现错误
因此要将源中的https换成http,由于http会增加网络风险,故apt update 之后要换回来,具体参考以下链接
参考:https://blog.youkuaiyun.com/qq_19729599/article/details/114682507