未满足的依赖项:尚未配置

未满足的依赖项:尚未配置
linux-image-server depends on linux-image-3.2.0-39-generic; however:
  Package linux-image-3.2.0-39-generic is not installed.
dpkg: error processing linux-image-server (--configure):
  dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
dpkg: dependency problems prevent configuration of linux-server:
linux-server depends on linux-image-server (= 3.2.0.39.47); however:
  Package linux-image-server is not configured yet.
linux-server depends on linux-headers-server (= 3.2.0.39.47); however:
  Version of linux-headers-server on system is 3.2.0.40.48.
dpkg: error processing linux-server (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.

Errors were encountered while processing:

linux-image-server
linux-server

E: Sub-process /usr/bin/dpkg returned an error code (1)

我不知道如何解决这个问题。请帮帮我。><

答案1

这对我有用:

sudo dpkg --remove linux-server
sudo dpkg --remove linux-image-server linux-headers-server
# purge unused kernels, but could do more so your mileage may vary
sudo apt-get autoremove
sudo apt-get install linux-server linux-image-generic linux-headers-generic

答案2

对我来说,解决方案有所不同。

我使用了命令sudo aptitude,当图形菜单出现时,我习惯于/弹出搜索字段并找到所有linux-header, linux-image, linux-server版本,然后按删除除当前使用的版本之外的所有版本-

为了找到我使用的当前内核版本uname -r

linux-{header, image, server}最后,我按照指定的顺序通过选择它们并按下来安装了较新版本+

为了确认我所使用的更新u

最后我重新启动后,一切都修复了。

相关内容