我想我成功地从 14.04.1 升级到了 16.04.1,但重启后,屏幕变黑了。我关闭它然后重启,然后点击F12高级设置安全启动,现在我只有一个终端,我不知道为什么。如何让 Ubuntu 正常运行?
截图中的文字:
The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.
E: Error: BrokenCount > 0run-parts: /etc/update-motd.d/90-updates-available exited with return code 255
$ sudo boot
[sudo] password for laptoppwthentwoexclamationmarks:
sudo: boot: command not found
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.1 LTS
Release: 16.04
Codename: xenial
laptoppwthentwoexclamationmarks@laptopPW-VirtualBox:~$ sudo apt-get install mysql-server
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
答案1
错误消息表明您的软件包因某种原因损坏。这可能是由于dpkg
之前运行的错误命令或更新过程中断电等原因造成的。
根据错误描述,您需要运行:
sudo dpkg --reconfigure -a
这意味着“重新配置我的所有包”,这将验证磁盘上文件的完整性并确保配置等没有损坏。