root@ubuntu:~# apt-cache search 4.4.0-190-generic | awk -F ' ' '{print $1}' | xargs apt-get install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
linux-image-4.4.0-190-generic : Conflicts: linux-image-unsigned-4.4.0-190-generic but 4.4.0-190.220 is to be installed
linux-image-unsigned-4.4.0-190-generic : Conflicts: linux-image-4.4.0-190-generic but 4.4.0-190.220 is to be installed
原因:
安装顺序导致的,还是得先手动安装内核,再安装其它headers等包。
附批量卸载其它内核相关包:
dpkg -l |grep 4.4.0-210 | awk -F ' ' '{print $2}' | xargs dpkg -P
本文介绍了解决在Ubuntu系统中安装特定版本内核时遇到的依赖冲突问题的方法。通过正确的安装顺序,即先手动安装内核,再安装其他相关包如headers等,可以避免冲突。同时提供了一种批量卸载旧内核包的方法。
258

被折叠的 条评论
为什么被折叠?



