解决安装wine时的依赖问题

来源:互联网 发布:sql管理器绿色版 编辑:程序博客网 时间:2024/05/29 12:28

因为在Linux上没有比source insight更强大的代码工具了,故在ubuntu上必须继续使用source insight。

前段时间安装过wine,什么问题也没有,安装命令

sudo apt-get install wine

这段时间搞openni 和openni2的问题,安装卸载了一大堆乱七八糟的软件。导致source insight无法启动,经过定位发现是wine软件缺少依赖了,出现下面这种情况

wine : Depends: wine1.6 but it is not going to be installed

然后就解决依赖,先执行
sudo apt-get install ppa-purgesudo add-apt-repository ppa:ubuntu-wine/ppa && sudo apt-get update
然后安装wine1.6,

sudo apt-get install wine1.6-i386=1:1.6.2-0ubuntu4
发现少libgphoto2,然后安装

sudo apt-get install libgphoto2-6:i386 libgphoto2-port10:i386
又发现少libusb-1.0-0:i386,最后执行命令

sudo apt-get install libusb-1.0-0:i386
成功了,再一步步返回去,wine就安装成功了,最终source insight又可以正常使用了。




原创粉丝点击