当前位置: 代码迷 >> 综合 >> Ubuntu 16.04 Unable to locate package linux-image-extra-4.15.0-29-generic
  详细解决方案

Ubuntu 16.04 Unable to locate package linux-image-extra-4.15.0-29-generic

热度:45   发布时间:2023-11-17 13:03:32.0

问题:

     在执行如下命令时:

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 

 

 

 

  相关解决方案