① 麒麟系统连不上有线网怎么办
配置网卡地址
在网络连接中设置网卡IP和克隆MAC地址,建议先找一台能联网的windows电脑,查看IP地址和MAC地址后,将板卡上地址配置为与windows一致。
配置DNS服务器地址
执行 sudo vim /etc/network/interfaces,向文件中添加dns-nameserver 114.114.114.114
执行sudo vim /etc/resolv.conf, 添加 nameserver 114.114.114.114
执行sudo service networking restart,重启网络即可
启用连接
在编辑连接中点击启用连接,实现联网
设置apt源
目前我使用的银河Kylin 4.0.2版本是基于ubuntu 18.04修改的,修改apt源步骤如下,如果是其他版本,建议联系厂家确认与之对应的ubuntu版本,然后再进行修改。参考https://developer.aliyun.com/mirror/ubuntu
用你熟悉的编辑器打开:
/etc/apt/sources.list
替换默认的http://archive.ubuntu.com/为mirrors.aliyun.com
deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
然后执行apt-get update