Debian Jessie Kernel 无法安装,可能是 grub2 问题吗?

Debian Jessie Kernel 无法安装,可能是 grub2 问题吗?

我的一台 xen VM 出现问题,我想解决此问题,如下
所示apt-get install -f。有人能帮我解释一下吗?

Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Traceback (most recent call last):
  File "/usr/bin/apt-listchanges", line 33, in <module>
    from ALChacks import *
  File "/usr/share/apt-listchanges/ALChacks.py", line 25, in <module>
    import gettext
  File "/usr/lib/python2.7/gettext.py", line 49, in <module>
    import locale, copy, os, re, struct, sys
  File "/usr/lib/python2.7/locale.py", line 15, in <module>
    import encodings
  File "/usr/lib/python2.7/encodings/__init__.py", line 32, in <module>
    from encodings import aliases
ImportError: cannot import name aliases
Setting up linux-image-3.16.0-4-amd64 (3.16.43-2+deb8u2) ...
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-3.16.0-4-amd64
/etc/kernel/postinst.d/zz-update-grub:
/usr/sbin/grub-probe: /lib/x86_64-linux-gnu/libdevmapper.so.1.02.1: no version information available (required by /usr/sbin/grub-probe)
/usr/sbin/grub-probe: /lib/x86_64-linux-gnu/libdevmapper.so.1.02.1: no version information available (required by /lib/x86_64-linux-gnu/libdevmapper.so.1.02.1)
/usr/sbin/grub-probe: relocation error: /lib/x86_64-linux-gnu/libdevmapper.so.1.02.1: symbol dm_log, version Base not defined in file libdevmapper.so.1.02.1 with link time reference
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 127
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-3.16.0-4-amd64.postinst line 634.
dpkg: error processing package linux-image-3.16.0-4-amd64 (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 linux-image-3.16.0-4-amd64
E: Sub-process /usr/bin/dpkg returned an error code (1)

答案1

看起来你可能搞乱了你的 Python 环境,它无法导入所需的内容。网上其他人在 Ubuntu 上也遇到了这个问题,似乎可以通过重新安装 Python 来修复它。

https://askubuntu.com/questions/360004/ubuntu-12-04-update-manager-and-software-center-is-not-working/360104

相关内容