为了更新下载速度加快将下载的源改成国内源,操作见:https://blog.csdn.net/shetougong/article/details/104247394
其中一定要注意自己的ubuntu版本,更加版本修改
deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
在这里我犯过错误导致软件更新不了
1. 更新软件列表 sudo apt-get install update
2. 安装build-essential软件包:sudo apt install build-essential