启动" sudo dpkg --configure -a"重新启动电脑并没有解决任何问题

时间:2015-12-22 15:31:29

标签: linux opencv ubuntu dpkg

在Ubuntu上运行基于OpenCV的代码,我遇到以下错误:

OpenCV Error: Unspecified error (The function is not implemented. 
Rebuild the library with Windows, GTK+ 2.x or Carbon support. 
If you are on Ubuntu or Debian, install libgtk2.0-dev and pkg-config, then 
re-run cmake or configure script) in cvNamedWindow, file /home/opennao/src/OpenCV-2.3.1/modules/highgui/src/window.cpp, line 275
terminate called after throwing an instance of 'cv::Exception'

所以我尝试输入:

来安装这个libgtk2.0-dev
sudo apt-get install libgtk2.0-dev

但它返回以下内容:

E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem."

这就是我所做的。但是,在处理命令请求期间,pc会自行重启,当我运行代码时问题会再次出现。

为了澄清,我认为值得一提的是,两周前Ubuntu的更新破坏了我的grub选择运行的操作系统(我的电脑上有Ubuntu 14.04和Windows 10),所以我通过minimal-bash行编辑恢复它。

现在,当我运行" sudo dpkg --configure -a"我看到重新启动之前的最后一行打印行是指我记得要处理以修复grub的磁盘映像或内核的一些信息。我不知道这是否可以成为理解问题的建议。 谢谢大家的支持,请问我是否需要进一步的细节。

0 个答案:

没有答案
相关问题