linux-debian软件安装包sources.list 路径 /etc/apt # deb cdrom:[Debian GNU/Linux 8.2.0 _Jessie_ - Official amd64 CD Binary-1 20150906-11:13]/ jessie main # deb cdrom:[Debian GNU/Linux 8.2.0 _Jessie_ - Official amd64 CD Binary-1 20150906-11:13]/ jessie main #
source.list是下载源地址,linux默认是从国外下载所以需要修改成国内的下载源
通过lsb_release -c命令查看linux的内核,或者说版本,然后将source.list中的bionic字段换成相应的。bionic是ubuntu18.04的内核代号,ubuntu16.04的版本代号是xenial。如下面的操作
deb http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multivers