Sim*_*man 6 upgrade apt dpkg kernel 12.04
我见过一些类似的问题,但我见过的问题都没有解决我的问题。在 Ubuntu 12.04 上从linux-image-3.2.0-36-generic到的内核升级期间发生错误linux-image-3.2.0-38-generic。使用3.2.0-38.
在`3.2.0-36 下启动系统正常启动。但是,当我尝试删除干净或配置受影响的内核包时,它会引发以下错误:
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
initramfs-tools : Depends: initramfs-tools-bin (< 0.99ubuntu13.1~) but 0.99ubuntu13.1 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
Run Code Online (Sandbox Code Playgroud)
Attempting sudo apt-get -f install, 遇到没有成功引用依赖和配置问题,在包恢复后:
dpkg: dependency problems prevent configuration of initramfs-tools:
initramfs-tools depends on initramfs-tools-bin (<< 0.99ubuntu13.1~); however:
Version of initramfs-tools-bin on system is 0.99ubuntu13.1.
dpkg: error processing initramfs-tools (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-image-3.2.0-38-generic:
linux-image-3.2.0-38-generic depends on initramfs-tools (>= 0.36ubuntu6); however:
Package initramfs-tools is not configured yet.
dpkg: error processing linux-image-3.2.0-38-generic (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
No apport report written because the error message indicates its a followup error from a previous failure.
dpkg: dependency problems prevent configuration of casper:
casper depends on initramfs-tools (>= 0.92bubuntu55); however:
Package initramfs-tools is not configured yet.
dpkg: error processing casper (--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:
initramfs-tools
linux-image-3.2.0-38-generic
casper
E: Sub-process /usr/bin/dpkg returned an error code (1)
Run Code Online (Sandbox Code Playgroud)
我在运行时收到类似的错误dpkg -- configure -a,apt-get -f dist-upgrade和apt-get -f autoremove.
关于内核升级期间究竟发生了什么损坏以及如何在不使用 Apt-get 或 Dpkg 的情况下回滚内核版本的任何想法?
从这个问题中恢复的过程是暂时删除所有有问题的包:
dpkg --force-depends --purge <packages>
Run Code Online (Sandbox Code Playgroud)
然后修复丢失的依赖项
apt-get install -f
Run Code Online (Sandbox Code Playgroud)
确保您的系统没有在3.2.0-38内核上运行与
uname -r
Run Code Online (Sandbox Code Playgroud)
然后我建议做一个:
dpkg --force-depends --purge linux*3.2.0-38*
apt-get install -f
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
11238 次 |
| 最近记录: |