问题:
在执行如下命令时:
sudo apt-get install \linux-image-extra-$(uname -r) \linux-image-extra-virtual
出现如下错误:
E: Unable to locate package linux-image-extra-4.15.0-29-generic
E: Couldn't find any package by glob 'linux-image-extra-4.15.0-29-generic'
E: Couldn't find any package by regex 'linux-image-extra-4.15.0-29-generic'
具体操作如图:
解决办法:(这里感谢Ask Ubuntu是Ubuntu用户和开发人员的问答网站提供的解决方法)
linux-image-generic
应该已经安装了相关的linux-image-extra
包,但名称已更改为linux-modules-extra
。试试这个升级到最新的内核:
sudo apt update
sudo apt upgrade
sudo apt install --reinstall linux-image-generic
然后,重新启动并尝试使用以下命令:
sudo apt install linux-modules-extra-$(uname -r) linux-image-extra-virtual