① 麒麟系統連不上有線網怎麼辦
配置網卡地址
在網路連接中設置網卡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