建议直接换装ubuntu20.04看其他教程解决,若必用ubuntu18.04,本方法可以解决但后期安装英伟达驱动时会出现衍生问题(因执行后内核版本较高)
前期准备
此部分可以不执行,因本人也不确定是否因为执行这些操作而成功。
1 手动更新软件源(推荐阿里源)
先复制一下原来的软件源到你的目录
sudo cp /etc/apt/sources.list /your path
打开软件源
sudo gedit /etc/apt/sources.list
把阿里源写入,之前的全覆盖,注意版本我的是18.04,其他的不一样
#添加阿里源
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-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 main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
更新
apt-get update
apt-get upgrade
2 升级一下系统,安装一些更新包。
主要执行操作
1 对kernel进行更新
wget https://raw.githubusercontent.com/pimlie/ubuntu-mainline-kernel.sh/master/ubuntu-mainline-kernel.sh
sudo install ubuntu-mainline-kernel.sh /usr/local/bin/
sudo /usr/local/bin/ubuntu-mainline-kernel.sh –i
然后重启
2 解决后续依赖问题
执行
apt-get update
apt-get upgrade
若存在依赖问题报错
执行
sudo apt --fix-broken install
参考链接
华硕天选3安装Ubuntu 20.04双系统问题(适用于网卡为intel WiFi 6E AX211型号的电脑)
解决Ubuntu内核更新或安装软件时出现的问题:下列软件包有未满足的依赖关系 : linux-generic依赖: linux-headers-generic (= 4.15.0.65.67)