我正试图通过终端安装一个程序。但突然间,我的电脑被关闭了,因为停电了。稍后,当我试图安装任何使用终端的程序时,它给了我以下错误:
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
现在我应该做些什么来修复它并正确安装呢?
我得用我的电脑开车。我的主要硬盘驱动器(安装了窗口)和数据硬盘驱动器。
我的数据硬盘有两个分区,一个有数据(200 GB),另一个想安装Ubuntu (300 GB)。
驱动器设置
--Main Hard Drive
--Data Hard Drive With Two Partitions {
----Partition One (200 GB, Has My Music And Videos)
--Partition Two (300 GB, I want to install Ubuntu on it
我将如何在我的300 GB分区安装Ubuntu,如果我安装,我如何启动它。
下面的代码运行良好,还会检查用户是否输入了正确数量的项目,但当输入有尾随的空行时,它将失败。
string item1, item2, item3;
while(cin.good) {
//this allows me to both check if user input enough items
//EDIT: and if items are of right type so I can cerr
if (cin >> item1 && cin>> item2 && cin>> item3)