-1

我最近在 Ubuntu 12.04.1 LTS x86_64 上进行了更新,在一台机器上,当它有一个嵌入式终端提示询问 [y/N] 时,它意外关闭了更新对话框。这导致安装后触发器在尚未安装的软件包上中断。打开 Synaptic 并不能解决问题,它提到了 dpkg...

$ sudo dpkg --configure -a
Setting up linux-image-3.2.0-36-generic-pae (3.2.0-36.57) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.2.0-36-generic-pae /boot/vmlinuz-3.2.0-36-generic-pae
update-initramfs: Generating /boot/initrd.img-3.2.0-36-generic-pae
run-parts: executing /etc/kernel/postinst.d/pm-utils 3.2.0-36-generic-pae /boot/vmlinuz-3.2.0-36-generic-pae
run-parts: executing /etc/kernel/postinst.d/update-notifier 3.2.0-36-generic-pae /boot/vmlinuz-3.2.0-36-generic-pae
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 3.2.0-36-generic-pae /boot/vmlinuz-3.2.0-36-generic-pae
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 1
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-3.2.0-36-generic-pae.postinst line 1010.
dpkg: error processing linux-image-3.2.0-36-generic-pae (--configure):
 subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of linux-image-generic-pae:
 linux-image-generic-pae depends on linux-image-3.2.0-36-generic-pae; however:
  Package linux-image-3.2.0-36-generic-pae is not configured yet.
dpkg: error processing linux-image-generic-pae (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-image:
 linux-image depends on linux-image-generic-pae (= 3.2.0.36.43); however:
  Package linux-image-generic-pae is not configured yet.
dpkg: error processing linux-image (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-generic-pae:
 linux-generic-pae depends on linux-image-generic-pae (= 3.2.0.36.43); however:
  Package linux-image-generic-pae is not configured yet.
dpkg: error processing linux-generic-pae (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux:
 linux depends on linux-image (= 3.2.0.36.43); however:
  Package linux-image is not configured yet.
dpkg: error processing linux (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 linux-image-3.2.0-36-generic-pae
 linux-image-generic-pae
 linux-image
 linux-generic-pae
 linux
$ 

如何回滚更新并重新应用它,或者只是强制重新安装损坏的更新?

4

1 回答 1

1

哇,第一次投反对票。谢谢。好吧,我会回答我自己的问题。这不是极简或完美的解决方案,但是当我随后安装另一个软件包时,这会导致触发器再次运行,从而解决了问题。

sudo apt-get 安装 git

(Git与它无关,我只是需要它,并且包系统自己修复了!)

于 2013-01-20T23:52:47.743 回答