我遇到了标题中的错误,它发生在 grub 安装期间,也发生在 上dpkg --configure -a
。我无法再更新,而且一旦遇到错误,shell 就没有响应。
谁能帮我?
完整错误:
freek@home:~$ sudo dpkg --configure -a
Setting up grub-legacy-ec2 (17.1-27-geb292c18-0ubuntu1~16.04.1) ...
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
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-4.4.0-97-generic
Found kernel: /vmlinuz-4.4.0-96-generic
Found kernel: /vmlinuz-4.4.0-93-generic
Found kernel: /vmlinuz-4.4.0-92-generic
Found kernel: /vmlinuz-4.4.0-91-generic
Found kernel: /vmlinuz-4.4.0-89-generic
Found kernel: /vmlinuz-4.4.0-81-generic
Found kernel: /memtest86+.bin
Replacing config file /run/grub/menu.lst with new version
Found kernel: /vmlinuz-4.4.0-101-generic
Found kernel: /vmlinuz-4.4.0-98-generic
Found kernel: /vmlinuz-4.4.0-97-generic
Found kernel: /memtest86+.bin
Replacing config file /run/grub/menu.lst with new version
Updating /boot/grub/menu.lst ... done
Processing triggers for initramfs-tools (0.122ubuntu8.9) ...
update-initramfs: Generating /boot/initrd.img-4.4.0-101-generic
W: mdadm: /etc/mdadm/mdadm.conf defines no arrays.
Setting up mdadm (3.3-2ubuntu7.6) ...
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
update-initramfs: deferring update (trigger activated)
Generating grub configuration file ...
File descriptor 3 (pipe:[36899]) leaked on vgs invocation. Parent PID 12618: /usr/sbin/grub-probe
File descriptor 3 (pipe:[36899]) leaked on vgs invocation. Parent PID 12618: /usr/sbin/grub-probe
File descriptor 3 (pipe:[36899]) leaked on vgs invocation. Parent PID 12631: /usr/sbin/grub-probe
File descriptor 3 (pipe:[36899]) leaked on vgs invocation. Parent PID 12631: /usr/sbin/grub-probe
File descriptor 3 (pipe:[36899]) leaked on vgs invocation. Parent PID 12644: /usr/sbin/grub-probe
File descriptor 3 (pipe:[36899]) leaked on vgs invocation. Parent PID 12644: /usr/sbin/grub-probe
File descriptor 3 (pipe:[36899]) leaked on vgs invocation. Parent PID 12657: /usr/sbin/grub-probe
File descriptor 3 (pipe:[36899]) leaked on vgs invocation. Parent PID 12657: /usr/sbin/grub-probe
File descriptor 3 (pipe:[36899]) leaked on vgs invocation. Parent PID 12718: /usr/sbin/grub-probe
File descriptor 3 (pipe:[36899]) leaked on vgs invocation. Parent PID 12718: /usr/sbin/grub-probe
Found linux image: /boot/vmlinuz-4.4.0-101-generic
Found initrd image: /boot/initrd.img-4.4.0-101-generic
Found linux image: /boot/vmlinuz-4.4.0-98-generic
Found initrd image: /boot/initrd.img-4.4.0-98-generic
Found linux image: /boot/vmlinuz-4.4.0-97-generic
Found initrd image: /boot/initrd.img-4.4.0-97-generic
File descriptor 3 (pipe:[36899]) leaked on vgs invocation. Parent PID 13191: /usr/sbin/grub-probe
File descriptor 3 (pipe:[36899]) leaked on vgs invocation. Parent PID 13191: /usr/sbin/grub-probe
Found memtest86+ image: /memtest86+.elf
Found memtest86+ image: /memtest86+.bin
File descriptor 3 (pipe:[36899]) leaked on lvs invocation. Parent PID 13419: /bin/sh
Ctrl我又走了一步,C最终做了一些事情:
^Cdpkg: error processing package mdadm (--configure):
subprocess installed post-installation script was interrupted
dpkg: dependency problems prevent configuration of ubuntu-server:
ubuntu-server depends on mdadm; however:
Package mdadm is not configured yet.
dpkg: error processing package ubuntu-server (--configure):
dependency problems - leaving unconfigured
Setting up firefox (57.0+build4-0ubuntu0.16.04.6) ...
^C
尝试安装时mdadm
我遇到了同样的问题......
Ctrl最终它在+之后完成C:
Cdpkg: error processing package mdadm (--configure):
subprocess installed post-installation script was interrupted
dpkg: dependency problems prevent configuration of ubuntu-server:
ubuntu-server depends on mdadm; however:
Package mdadm is not configured yet.
dpkg: error processing package ubuntu-server (--configure):
dependency problems - leaving unconfigured
Setting up firefox (57.0+build4-0ubuntu0.16.04.6) ...
Please restart all running instances of firefox, or you will experience problems.
Processing triggers for initramfs-tools (0.122ubuntu8.9) ...
update-initramfs: Generating /boot/initrd.img-4.4.0-101-generic
W: mdadm: /etc/mdadm/mdadm.conf defines no arrays.
Errors were encountered while processing:
mdadm
ubuntu-server
会是什么呢……
离开终端一段时间后,我收到以下消息:
freek@home:~$ grep: grep: /tmp/os-prober.Igx4DO/raided-map: No such file or directory/tmp/os-prober.RQEdc8/raided-map: No such file or directory
grep: /tmp/os-prober.RQEdc8/swaps-map: No such file or directory
grep: /tmp/os-prober.o6miaE/raided-map: No such file or directory
grep: /tmp/os-prober.Igx4DO/swaps-map: No such file or directory
grep: /tmp/os-prober.RQEdc8/mounted-map: No such file or directory
grep: /tmp/os-prober.o6miaE/swaps-map: No such file or directory
grep: /tmp/os-prober.Igx4DO/mounted-map: No such file or directory
grep: /tmp/os-prober.o6miaE/mounted-map: No such file or directory
答案1
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=592834表明这只是一个外观问题(因此不确定你的 shell 是否没有响应):
这只是来自“vgs”的过于冗长的调试。它抱怨 lvm 实用程序内部存在问题。在这种情况下,它确实无害。