Ubuntu 18.04 已弃用硬件支持堆栈

Ubuntu 18.04 已弃用硬件支持堆栈

几周前我已经升级到 18.04,今天发现我当前安装的 HWE 已被弃用。

hwe-support-status --show-all-unsupported输出为:

linux-image-3.19.0-59-generic libwayland-egl1-mesa-lts-vivid 
linux-generic-lts-vivid xserver-xorg-video-all-lts-vivid 
linux-image-extra-3.19.0-58-generic xserver-xorg-input-all-lts-vivid 
xserver-xorg-lts-vivid linux-image-extra-3.19.0-59-generic 
linux-image-3.19.0-58-generic xserver-xorg-core-lts-vivid 

输出hwe-support-status --show-replacements为:

linux-generic-lts-xenial libwayland-egl1-mesa-lts-xenial xserver-xorg-lts-xenial

但是当我尝试安装这些软件包时,我得到:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package linux-generic-lts-xenial
E: Unable to locate package libwayland-egl1-mesa-lts-xenial
E: Unable to locate package xserver-xorg-lts-xenial

答案1

看起来你有一个从 14.04 版本遗留下来的 HWE(硬件支持)堆栈,已经被弃用很长时间了。升级后仍保留旧软件包是很常见的。我建议卸载它们:

sudo apt remove linux-image-3.19.0-59-generic libwayland-egl1-mesa-lts-vivid linux-generic-lts-vivid xserver-xorg-video-all-lts-vivid linux-image-extra-3.19.0-58-generic xserver-xorg-input-all-lts-vivid xserver-xorg-lts-vivid linux-image-extra-3.19.0-59-generic linux-image-3.19.0-58-generic xserver-xorg-core-lts-vivid

我还会运行这些命令只是为了确保您没有安装任何其他 14.04 HWE 包:

dpkg --get-selections | egrep "utopic|vivid|wily|xenial"
dpkg --get-selections | egrep "linux-.+-(3\.16|3\.19|4\.2|4\.4)"

如果有的话,您可以使用以下命令卸载它们:

sudo apt purge `dpkg --get-selections | egrep "utopic|vivid|wily|xenial" | awk '{print $1}' | tr '\n' ' '`
sudo apt purge `dpkg --get-selections | egrep "linux-.+-(3\.16|3\.19|4\.2|4\.4)" | awk '{print $1}' | tr '\n' ' '`

相关内容