全新安装 (Ubuntu 16.04 LTS) 我无法通过apt. 我可以运行得apt update很好,但如果我遵循其中一个apt upgrade或apt dist-upgrade它总是(我在无数次重新启动后尝试这样做,以及从恢复模式)会导致:
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
Run Code Online (Sandbox Code Playgroud)
如果我运行它,它总是执行以下操作并且无限期挂起:
Setting up grub-efi-amd64 (2.02~beta2-36ubuntu3.12) ...
Installing for x86_64-efi platform.
Installation finished. No error reported.
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.10.0-35-generic
Found initrd image: /boot/initrd.img-4.10.0-35-generic
Found linux image: /boot/vmlinuz-4.10.0-28-generic
Found initrd image: /boot/initrd.img-4.10.0-28-generic
Run Code Online (Sandbox Code Playgroud)
uname -r显示它正在运行4.10.0-35-generic,所以我可以很好地删除它,4.10.0-28-generic因为它总是挂在那里,但我无法清除它,因为这只会导致apt purge …