希望我不会因遇到的问题而打开新主题而违反任何规则。相信我,我已经尝试浏览askubuntu和其他许多站点,但是到目前为止,所提供的解决方案都不适用于我-希望你们可以帮助我解决问题。
今天早些时候,我将Ubuntu服务器升级到14.04:
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04 LTS
Release: 14.04
Codename: trusty
我遇到以下问题:
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
如果我运行该命令,它将卡在:找到内核: /memtest86+.bin
请告知如何进行操作(我已经尝试了多种解决方案,包括update-grub
和,还有很多其他解决方案,但都没有奏效)。
$ sudo dpkg --configure -a
Processing triggers for initramfs-tools (0.103ubuntu4) ...
update-initramfs: Generating /boot/initrd.img-3.13.0-24-generic
Setting up mdadm (3.2.5-5ubuntu4) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing package mdadm (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
mdadm
重新启动计算机并运行后sudo dpkg --configure -a
,我回到了原始问题:
Setting up mdadm (3.2.5-5ubuntu4) ...
Removing any system startup links for /etc/init.d/mdadm-raid ...
update-initramfs: deferring update (trigger activated)
update-grub is /usr/sbin/update-grub
Searching for GRUB installation directory ... found: /boot/grub
Searching for default file ... found: /boot/grub/default
Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
Searching for splash image ... none found, skipping ...
Found kernel: /vmlinuz-3.13.0-24-generic
Found kernel: /vmlinuz-3.2.0-61-generic
Found kernel: /vmlinuz-3.2.0-48-generic
Found kernel: /vmlinuz-3.2.0-24-generic
Found kernel: /vmlinuz-3.0.0-12-server
Found kernel: /vmlinuz-2.6.28-11-server
Found kernel: /vmlinuz-2.6.27-14-server
Found kernel: /vmlinuz-2.6.24-24-server
Found kernel: /vmlinuz-2.6.22-16-server
Found kernel: /vmlinuz-2.6.22-14-server
Found kernel: /memtest86+.bin
Uname -r
退货
3.13.0-24-generic
经过很多麻烦之后,dpkg --audit
再dpkg --configure <packagename>
针对列出的软件包进行解决
sudo dpkg --configure -a
uname -r
sudo dpkg --configure -a
命令的输出。