ubuntu安装wine的时候出现不能解决依赖关系。怎么解决??
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ubuntu安装wine的时候出现不能解决依赖关系。怎么解决??相关的知识,希望对你有一定的参考价值。
具体是这样的:
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
有一些软件包无法被安装。如果您用的是 unstable 发行版,这也许是
因为系统无法达到您要求的状态造成的。该版本中可能会有一些您需要的软件
包尚未被创建或是它们已被从新到(Incoming)目录移出。
下列信息可能会对解决问题有所帮助:
下列软件包有未满足的依赖关系:
wine : 依赖: wine1.4 但是它将不会被安装
E: 无法修正错误,因为您要求某些软件包保持现状,就是它们破坏了软件包间的依赖关系
先安装依赖的库:
sudo apt-get install flex bison qt4-qmake
sudo apt-get install libfreetype6-dev
sudo apt-get install libjpeg-dev libpng-dev libxslt-dev libxml2-dev
sudo apt-get install libxrender-dev
sudo apt-get install libgl1-mesa-dev
sudo apt-get install libglu1-mesa-dev
sudo apt-get install freeglut3-dev
sudo apt-get install prelink
sudo apt-get install libasound2-dev
然后下载源代码进入解包目录:
./configure
make //编译大约需要一个小时~~
sudo make install
安装完后中文显示乱码,需要下载字体解决,不会就谷歌~~ 参考技术A 这样子是什么样子
解决ubuntukylin 13.10安装wine时无法解决软件包依赖问题
在ubuntukylin 13.10中,无论是在软件中心安装wine还是通过apt-get install安装wine都会出现软件包依赖问题且无法解决。
问题重现
在软件中心安装wine报错例如以下:
wine1.4: PreDepends: dpkg (>= 1.15.7.2~) but 1.16.7ubuntu6 is to be installed
Depends: libc6 (>= 2.14) but 2.15-0ubuntu20 is to be installed
Depends: wine1.4-amd64 (= 1.4.1-0ubuntu1) but 1.4.1-0ubuntu1 is to be installed
Depends: wine1.4-i386 (= 1.4.1-0ubuntu1) but it is not going to be installed
通过终端apt-get方式安装。又报错例如以下:
已经加了wine的ppa还是如此。Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies: wine1.4 : Depends: wine1.4-i386 (= 1.4.1-0ubuntu1) but it is not installable Recommends: gnome-exe-thumbnailer but it is not going to be installed or kde-runtime but it is not going to be installed Recommends: ttf-droid Recommends: ttf-mscorefonts-installer but it is not going to be installed Recommends: ttf-umefont but it is not going to be installed Recommends: ttf-unfonts-core but it is not going to be installed Recommends: winbind but it is not going to be installed Recommends: winetricks but it is not going to be installed E: Unable to correct problems, you have held broken packages.
解决方式
首先(这一步有时非必需):
sudo dpkg --add-architecture i386
然后:
就可以安装成功wine。sudo apt-get install ppa-purge sudo add-apt-repository ppa:ubuntu-wine/ppa && sudo apt-get update sudo apt-get install wine1.5
以上是关于ubuntu安装wine的时候出现不能解决依赖关系。怎么解决??的主要内容,如果未能解决你的问题,请参考以下文章
解决ubuntukylin 13.10安装wine时无法解决软件包依赖问题
linux ubuntu安装wine时出现无法定位软件包 wine
Linux 桌面玩家指南:17. 在 Ubuntu 中使用 deepin-wine,解决一些依赖 Windows 的痛点问题