![Linux debian 依赖问题和 wine 安装](https://linux22.com/image/74120/Linux%20debian%20%E4%BE%9D%E8%B5%96%E9%97%AE%E9%A2%98%E5%92%8C%20wine%20%E5%AE%89%E8%A3%85%20.png)
我几天来一直在尝试安装 wine,但我无法成功,当我尝试安装缺少的依赖项时,我遇到了很多依赖项问题,它需要另一个依赖项等..无限循环!
到目前为止我所做的就是:
dpkg --add-architecture i386
完毕
apt-get update
完毕
apt-get install wine-development
失败 :
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:
wine-development : Depends: wine64-development (>= 1.7.29-4) but it is not going to be installed or
wine32-development (>= 1.7.29-4)
E: Unable to correct problems, you have held broken packages.
然后我尝试了
apt-get install wine
哪个有效!但出了点问题,因为它无法执行任何可执行文件......
wine: Bad EXE format for Z:\home\***\Downloads\LTspiceIV.exe.
我也尝试过
apt-get install wine-*
这给了我这些依赖问题:
> Reading package lists... Done Building dependency tree Reading
> state information... Done Note, selecting 'wine64-unstable' for regex
> 'wine-*' Note, selecting 'wine64-bin' for regex 'wine-*' Note,
> selecting 'libwine-openal' for regex 'wine-*' Note, selecting
> 'wine32-dev-tools' for regex 'wine-*' Note, selecting 'libwine-dev'
> for regex 'wine-*' Note, selecting 'libwine-gecko-dbg-2.21' for regex
> 'wine-*' Note, selecting 'libwine-gecko-dbg-2.24' for regex 'wine-*'
> Note, selecting 'libwine-capi' for regex 'wine-*' Note, selecting
> 'wine-utils' for regex 'wine-*' Note, selecting 'q4wine-unstable' for
> regex 'wine-*' Note, selecting 'wine64-development-preloader' for
> regex 'wine-*' Note, selecting 'wine64-development' for regex 'wine-*'
> Note, selecting 'libkwineffects1abi5' for regex 'wine-*' Note,
> selecting 'wine64-tools' for regex 'wine-*' Note, selecting
> 'libwine-ldap' for regex 'wine-*' Note, selecting 'libwine-oss' for
> regex 'wine-*' Note, selecting 'libwine-gphoto2' for regex 'wine-*'
> Note, selecting 'libwine-sane' for regex 'wine-*' Note, selecting
> 'libwine-alsa' for regex 'wine-*' Note, selecting 'wine' for regex
> 'wine-*' Note, selecting 'q4wine' for regex 'wine-*' Note, selecting
> 'winetricks' for regex 'wine-*' Note, selecting 'wine32-unstable' for
> regex 'wine-*' Note, selecting 'wine64-development-tools' for regex
> 'wine-*' Note, selecting 'libwine-development-dbg' for regex 'wine-*'
> Note, selecting 'shiki-wine-theme' for regex 'wine-*' Note, selecting
> 'wine32' for regex 'wine-*' Note, selecting 'libwine-development-dev'
> for regex 'wine-*' Note, selecting 'wine-development' for regex
> 'wine-*' Note, selecting 'wine64' for regex 'wine-*' Note, selecting
> 'libwine-cms' for regex 'wine-*' Note, selecting 'libwine' for regex
> 'wine-*' Note, selecting 'libwine-bin' for regex 'wine-*' Note,
> selecting 'libwine-development' for regex 'wine-*' Note, selecting
> 'wine32-development' for regex 'wine-*' Note, selecting 'wine-binfmt'
> for regex 'wine-*' Note, selecting 'libwine-gl' for regex 'wine-*'
> Note, selecting 'wine1.2' for regex 'wine-*' Note, selecting 'wine1.3'
> for regex 'wine-*' Note, selecting 'wine-unstable' for regex 'wine-*'
> Note, selecting 'wine1.4' for regex 'wine-*' Note, selecting 'wine1.5'
> for regex 'wine-*' Note, selecting 'wine1.6' for regex 'wine-*' Note,
> selecting 'wine1.7' for regex 'wine-*' Note, selecting 'arc-wine' for
> regex 'wine-*' Note, selecting 'wine32-development-tools' for regex
> 'wine-*' Note, selecting 'wine-64-dev-tools' for regex 'wine-*' Note,
> selecting 'wine64-dev-tools' for regex 'wine-*' Note, selecting
> 'wine32-tools' for regex 'wine-*' Note, selecting
> 'gnome-wine-icon-theme' for regex 'wine-*' Note, selecting 'twine' for
> regex 'wine-*' Note, selecting 'libwine-gecko-2.21' for regex 'wine-*'
> Note, selecting 'libwine-gecko-2.24' for regex 'wine-*' Note,
> selecting 'wine-bin' for regex 'wine-*' Note, selecting
> 'wine32-tools:i386' instead of 'wine32-tools' Note, selecting
> 'wine32:i386' instead of 'wine32' Note, selecting
> 'wine32-development-tools:i386' instead of 'wine32-development-tools'
> Note, selecting 'wine32-development:i386' instead of
> 'wine32-development' libwine is already the newest version. libwine
> set to manually installed. wine is already the newest version. wine64
> is already the newest version. libwine-gecko-2.21 is already the
> newest version. libwine-gecko-2.21 set to manually installed. 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: wine32:i386 :
> Depends: libwine:i386 but it is not going to be installed
> Depends: libfreetype6:i386 but it is not going to be installed
> Depends: libgl1-mesa-dri:i386 but it is not going to be installed
> Recommends: libasound2-plugins:i386 but it is not going to be installed wine32-development:i386 : Depends:
> libwine-development:i386 but it is not going to be installed
> Depends: libfreetype6:i386 but it is not going to be installed
> Recommends: libgl1-mesa-dri:i386 but it is not going to be installed
> Recommends: libasound2-plugins:i386 but it is not going to be installed wine32-development-tools:i386 : Depends:
> gcc:i386 but it is not going to be installed
> Depends: libgettextpo0:i386 but it is not going to be installed
> Depends: libwine-development-dev:i386 (= 1.7.29-4) but it is not going to be installed wine32-tools:i386 :
> Depends: libwine:i386 but it is not going to be installed
> Depends: libwine-dev:i386 (= 1.6.2-20) but it is not going to be installed E: Unable to correct problems, you have held
> broken packages.
我还尝试通过执行“apt-get purge wine*”来删除我之前安装的不起作用的wine...它还删除了一些与gnome相关的东西,例如gnome设置菜单等..还有很多东西,我重新安装了所有内容,但我想知道为什么会这样......???
我也尝试安装缺少的依赖项,但它们需要其他依赖项。
最后,我尝试了相同的命令aptitude
,它告诉我,如果我接受删除 gnome 和其他一些大量的东西,它可以解决我的问题......
所以,我对这些依赖性问题完全迷失了,我该怎么办?
编辑:好的..我试图安装其中一个依赖项...而 apt-get 刚刚删除了我的整个 gnome 和 grub !所以,我要重新安装 DEBIAN,这是这个月的第五次,很好
答案1
今天安装 Wine-development 时遇到了非常类似的问题和错误。
在拒绝了 ( n
) aptitude 的第一个建议(或多或少是“卸载所有系统”)后,它建议降级一些软件包 ( libc-bin libc-dev-bin libc6 libc6-dev locales
)。接受建议(y
),wine安装成功。