安装软件的时候,跳出“E: 无法定位软件包”的错误,无法安装.需要换源.
- 在终端输入:
sudo vim /etc/apt/sources.list
- 在弹出的文件内,将下面的源覆盖原本的内容
deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
- 更新源
sudo apt-get update
参考链接:https://blog.csdn.net/chuxingbubian/article/details/105484038