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