安装 winehq-staging 时出现问题 | 依赖项 | Ubuntu 16.04LTS | 64 位

安装 winehq-staging 时出现问题 | 依赖项 | Ubuntu 16.04LTS | 64 位

我在安装 winehq-staging 时遇到了问题,我将使用它来玩一些小游戏。

  • 当我运行时,sudo apt-get install --install-recommends winehq-staging它告诉我需要“wine-staging”。当我尝试安装“wine-staging”时,它告诉我安装其他东西,并且这种情况一直持续下去。
  • 当我尝试时,aptitude它列出了我需要的所有包,但告诉我它们都不会被安装。

我已经做了以下事情:

  • 更新、升级并分布式升级了我的软件包。
  • 手动清除所有 wine 包和配置。
  • 使用 i386 激活多架构。

sudo apt-get install wine-staging 的输出如下:

$ LC_ALL=C sudo apt-get install wine-staging
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:
 wine-staging : Depends: wine-staging-i386 (= 2.18.0~xenial)
E: Unable to correct problems, you have held broken packages.

sudo apt-get update输出:

pop@201600000:~$ LC_ALL=C sudo apt-get update
Ign:1 cdrom://Ubuntu 16.04.1 LTS _Xenial Xerus_ - Release amd64 (20160719) xenial InRelease
Ign:2 cdrom://Ubuntu 16.04.1 LTS _Xenial Xerus_ - Release amd64 (20160719) xenial Release
Ign:3 cdrom://Ubuntu 16.04.1 LTS _Xenial Xerus_ - Release amd64 (20160719) xenial/main amd64 Packages
Ign:4 cdrom://Ubuntu 16.04.1 LTS _Xenial Xerus_ - Release amd64 (20160719) xenial/main i386 Packages
Ign:5 cdrom://Ubuntu 16.04.1 LTS _Xenial Xerus_ - Release amd64 (20160719) xenial/main all Packages
Ign:6 cdrom://Ubuntu 16.04.1 LTS _Xenial Xerus_ - Release amd64 (20160719) xenial/main Translation-en
Ign:7 cdrom://Ubuntu 16.04.1 LTS _Xenial Xerus_ - Release amd64 (20160719) xenial/main Translation-fr
Ign:8 cdrom://Ubuntu 16.04.1 LTS _Xenial Xerus_ - Release amd64 (20160719) xenial/main amd64 DEP-11 Metadata
Ign:9 cdrom://Ubuntu 16.04.1 LTS _Xenial Xerus_ - Release amd64 (20160719) xenial/main DEP-11 64x64 Icons
Ign:10 cdrom://Ubuntu 16.04.1 LTS _Xenial Xerus_ - Release amd64 (20160719) xenial/restricted amd64 Packages
Ign:11 cdrom://Ubuntu 16.04.1 LTS _Xenial Xerus_ - Release amd64 (20160719) xenial/restricted i386 Packages
Ign:12 cdrom://Ubuntu 16.04.1 LTS _Xenial Xerus_ - Release amd64 (20160719) xenial/restricted all Packages
Ign:13 cdrom://Ubuntu 16.04.1 LTS _Xenial Xerus_ - Release amd64 (20160719) xenial/restricted Translation-en
Ign:14 cdrom://Ubuntu 16.04.1 LTS _Xenial Xerus_ - Release amd64 (20160719) xenial/restricted Translation-fr
Ign:15 cdrom://Ubuntu 16.04.1 LTS _Xenial Xerus_ - Release amd64 (20160719) xenial/restricted amd64 DEP-11 Metadata
Ign:16 cdrom://Ubuntu 16.04.1 LTS _Xenial Xerus_ - Release amd64 (20160719) xenial/restricted DEP-11 64x64 Icons
Ign:3 cdrom://Ubuntu 16.04.1 LTS _Xenial Xerus_ - Release amd64 (20160719) xenial/main amd64 Packages
Ign:4 cdrom://Ubuntu 16.04.1 LTS _Xenial Xerus_ - Release amd64 (20160719) xenial/main i386 Packages
Ign:5 cdrom://Ubuntu 16.04.1 LTS _Xenial Xerus_ - Release amd64 (20160719) xenial/main all Packages
Ign:6 cdrom://Ubuntu 16.04.1 LTS _Xenial Xerus_ - Release amd64 (20160719) xenial/main Translation-en
Ign:7 cdrom://Ubuntu 16.04.1 LTS _Xenial Xerus_ - Release amd64 (20160719) xenial/main Translation-fr
Ign:8 cdrom://Ubuntu 16.04.1 LTS _Xenial Xerus_ - Release amd64 (20160719) xenial/main amd64 DEP-11 Metadata
Ign:9 cdrom://Ubuntu 16.04.1 LTS _Xenial Xerus_ - Release amd64 (20160719) xenial/main DEP-11 64x64 Icons
Ign:10 cdrom://Ubuntu 16.04.1 LTS _Xenial Xerus_ - Release amd64 (20160719) xenial/restricted amd64 Packages
Ign:11 cdrom://Ubuntu 16.04.1 LTS _Xenial Xerus_ - Release amd64 (20160719) xenial/restricted i386 Packages
Ign:12 cdrom://Ubuntu 16.04.1 LTS _Xenial Xerus_ - Release amd64 (20160719) xenial/restricted all Packages
Ign:13 cdrom://Ubuntu 16.04.1 LTS _Xenial Xerus_ - Release amd64 (20160719) xenial/restricted Translation-en
Ign:14 cdrom://Ubuntu 16.04.1 LTS _Xenial Xerus_ - Release amd64 (20160719) xenial/restricted Translation-fr
Ign:15 cdrom://Ubuntu 16.04.1 LTS _Xenial Xerus_ - Release amd64 (20160719) xenial/restricted amd64 DEP-11 Metadata
Ign:16 cdrom://Ubuntu 16.04.1 LTS _Xenial Xerus_ - Release amd64 (20160719) xenial/restricted DEP-11 64x64 Icons
Ign:3 cdrom://Ubuntu 16.04.1 LTS _Xenial Xerus_ - Release amd64 (20160719) xenial/main amd64 Packages
Ign:4 cdrom://Ubuntu 16.04.1 LTS _Xenial Xerus_ - Release amd64 (20160719) xenial/main i386 Packages
Ign:5 cdrom://Ubuntu 16.04.1 LTS _Xenial Xerus_ - Release amd64 (20160719) xenial/main all Packages
Ign:6 cdrom://Ubuntu 16.04.1 LTS _Xenial Xerus_ - Release amd64 (20160719) xenial/main Translation-en
Ign:7 cdrom://Ubuntu 16.04.1 LTS _Xenial Xerus_ - Release amd64 (20160719) xenial/main Translation-fr
Ign:8 cdrom://Ubuntu 16.04.1 LTS _Xenial Xerus_ - Release amd64 (20160719) xenial/main amd64 DEP-11 Metadata
Ign:9 cdrom://Ubuntu 16.04.1 LTS _Xenial Xerus_ - Release amd64 (20160719) xenial/main DEP-11 64x64 Icons
Ign:10 cdrom://Ubuntu 16.04.1 LTS _Xenial Xerus_ - Release amd64 (20160719) xenial/restricted amd64 Packages
Ign:11 cdrom://Ubuntu 16.04.1 LTS _Xenial Xerus_ - Release amd64 (20160719) xenial/restricted i386 Packages
Ign:12 cdrom://Ubuntu 16.04.1 LTS _Xenial Xerus_ - Release amd64 (20160719) xenial/restricted all Packages
Ign:13 cdrom://Ubuntu 16.04.1 LTS _Xenial Xerus_ - Release amd64 (20160719) xenial/restricted Translation-en
Ign:14 cdrom://Ubuntu 16.04.1 LTS _Xenial Xerus_ - Release amd64 (20160719) xenial/restricted Translation-fr
Ign:15 cdrom://Ubuntu 16.04.1 LTS _Xenial Xerus_ - Release amd64 (20160719) xenial/restricted amd64 DEP-11 Metadata
Ign:16 cdrom://Ubuntu 16.04.1 LTS _Xenial Xerus_ - Release amd64 (20160719) xenial/restricted DEP-11 64x64 Icons
Ign:3 cdrom://Ubuntu 16.04.1 LTS _Xenial Xerus_ - Release amd64 (20160719) xenial/main amd64 Packages
Ign:4 cdrom://Ubuntu 16.04.1 LTS _Xenial Xerus_ - Release amd64 (20160719) xenial/main i386 Packages
Ign:5 cdrom://Ubuntu 16.04.1 LTS _Xenial Xerus_ - Release amd64 (20160719) xenial/main all Packages
Ign:6 cdrom://Ubuntu 16.04.1 LTS _Xenial Xerus_ - Release amd64 (20160719) xenial/main Translation-en
Ign:7 cdrom://Ubuntu 16.04.1 LTS _Xenial Xerus_ - Release amd64 (20160719) xenial/main Translation-fr
Ign:8 cdrom://Ubuntu 16.04.1 LTS _Xenial Xerus_ - Release amd64 (20160719) xenial/main amd64 DEP-11 Metadata
Ign:9 cdrom://Ubuntu 16.04.1 LTS _Xenial Xerus_ - Release amd64 (20160719) xenial/main DEP-11 64x64 Icons
Ign:10 cdrom://Ubuntu 16.04.1 LTS _Xenial Xerus_ - Release amd64 (20160719) xenial/restricted amd64 Packages
Ign:11 cdrom://Ubuntu 16.04.1 LTS _Xenial Xerus_ - Release amd64 (20160719) xenial/restricted i386 Packages
Ign:12 cdrom://Ubuntu 16.04.1 LTS _Xenial Xerus_ - Release amd64 (20160719) xenial/restricted all Packages
Ign:13 cdrom://Ubuntu 16.04.1 LTS _Xenial Xerus_ - Release amd64 (20160719) xenial/restricted Translation-en
Ign:14 cdrom://Ubuntu 16.04.1 LTS _Xenial Xerus_ - Release amd64 (20160719) xenial/restricted Translation-fr
Ign:15 cdrom://Ubuntu 16.04.1 LTS _Xenial Xerus_ - Release amd64 (20160719) xenial/restricted amd64 DEP-11 Metadata
Ign:16 cdrom://Ubuntu 16.04.1 LTS _Xenial Xerus_ - Release amd64 (20160719) xenial/restricted DEP-11 64x64 Icons
Ign:3 cdrom://Ubuntu 16.04.1 LTS _Xenial Xerus_ - Release amd64 (20160719) xenial/main amd64 Packages
Ign:4 cdrom://Ubuntu 16.04.1 LTS _Xenial Xerus_ - Release amd64 (20160719) xenial/main i386 Packages
Ign:5 cdrom://Ubuntu 16.04.1 LTS _Xenial Xerus_ - Release amd64 (20160719) xenial/main all Packages
Ign:6 cdrom://Ubuntu 16.04.1 LTS _Xenial Xerus_ - Release amd64 (20160719) xenial/main Translation-en
Ign:7 cdrom://Ubuntu 16.04.1 LTS _Xenial Xerus_ - Release amd64 (20160719) xenial/main Translation-fr
Ign:8 cdrom://Ubuntu 16.04.1 LTS _Xenial Xerus_ - Release amd64 (20160719) xenial/main amd64 DEP-11 Metadata
Ign:9 cdrom://Ubuntu 16.04.1 LTS _Xenial Xerus_ - Release amd64 (20160719) xenial/main DEP-11 64x64 Icons
Ign:10 cdrom://Ubuntu 16.04.1 LTS _Xenial Xerus_ - Release amd64 (20160719) xenial/restricted amd64 Packages
Ign:11 cdrom://Ubuntu 16.04.1 LTS _Xenial Xerus_ - Release amd64 (20160719) xenial/restricted i386 Packages
Ign:12 cdrom://Ubuntu 16.04.1 LTS _Xenial Xerus_ - Release amd64 (20160719) xenial/restricted all Packages
Ign:13 cdrom://Ubuntu 16.04.1 LTS _Xenial Xerus_ - Release amd64 (20160719) xenial/restricted Translation-en
Ign:14 cdrom://Ubuntu 16.04.1 LTS _Xenial Xerus_ - Release amd64 (20160719) xenial/restricted Translation-fr
Ign:15 cdrom://Ubuntu 16.04.1 LTS _Xenial Xerus_ - Release amd64 (20160719) xenial/restricted amd64 DEP-11 Metadata
Ign:16 cdrom://Ubuntu 16.04.1 LTS _Xenial Xerus_ - Release amd64 (20160719) xenial/restricted DEP-11 64x64 Icons
Err:3 cdrom://Ubuntu 16.04.1 LTS _Xenial Xerus_ - Release amd64 (20160719) xenial/main amd64 Packages
  Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
Ign:4 cdrom://Ubuntu 16.04.1 LTS _Xenial Xerus_ - Release amd64 (20160719) xenial/main i386 Packages
Hit:17 http://archive.canonical.com/ubuntu xenial InRelease              
Hit:18 http://archive.ubuntu.com/ubuntu xenial InRelease                 
Get:19 http://qgis.org/debian xenial InRelease [3344 B]                  
Hit:20 http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu xenial InRelease
Ign:21 http://dl.google.com/linux/earth/deb stable InRelease             
Get:22 http://dl.google.com/linux/earth/deb stable Release [2136 B]      
Ign:23 http://www-fourier.ujf-grenoble.fr/~parisse/debian testing InRelease
Hit:24 http://archive.ubuntu.com/ubuntu xenial-updates InRelease         
Ign:19 http://qgis.org/debian xenial InRelease                           
Ign:26 http://www-fourier.ujf-grenoble.fr/~parisse/debian stable InRelease
Hit:27 http://archive.ubuntu.com/ubuntu xenial-security InRelease        
Hit:28 http://ppa.launchpad.net/kranich/cinnamon/ubuntu xenial InRelease 
Ign:29 http://www-fourier.ujf-grenoble.fr/~parisse/debian testing Release
Hit:30 http://www-fourier.ujf-grenoble.fr/~parisse/debian stable Release 
Hit:32 https://dl.winehq.org/wine-builds/ubuntu xenial InRelease         
Ign:33 http://www-fourier.ujf-grenoble.fr/~parisse/debian testing/main amd64 Packages.diff/Index
Hit:34 http://ppa.launchpad.net/mixxx/mixxx/ubuntu xenial InRelease      
Ign:35 http://www-fourier.ujf-grenoble.fr/~parisse/debian testing/main i386 Packages.diff/Index
Ign:36 http://www-fourier.ujf-grenoble.fr/~parisse/debian testing/main all Packages
Ign:37 http://www-fourier.ujf-grenoble.fr/~parisse/debian testing/main Translation-en
Ign:38 http://www-fourier.ujf-grenoble.fr/~parisse/debian testing/main Translation-fr
Ign:39 http://www-fourier.ujf-grenoble.fr/~parisse/debian testing/main amd64 DEP-11 Metadata
Ign:40 http://www-fourier.ujf-grenoble.fr/~parisse/debian testing/main DEP-11 64x64 Icons
Ign:41 http://www-fourier.ujf-grenoble.fr/~parisse/debian testing/main amd64 Packages
Ign:42 http://www-fourier.ujf-grenoble.fr/~parisse/debian testing/main i386 Packages
Ign:36 http://www-fourier.ujf-grenoble.fr/~parisse/debian testing/main all Packages
Ign:37 http://www-fourier.ujf-grenoble.fr/~parisse/debian testing/main Translation-en
Ign:38 http://www-fourier.ujf-grenoble.fr/~parisse/debian testing/main Translation-fr
Ign:39 http://www-fourier.ujf-grenoble.fr/~parisse/debian testing/main amd64 DEP-11 Metadata
Ign:40 http://www-fourier.ujf-grenoble.fr/~parisse/debian testing/main DEP-11 64x64 Icons
Ign:41 http://www-fourier.ujf-grenoble.fr/~parisse/debian testing/main amd64 Packages
Ign:42 http://www-fourier.ujf-grenoble.fr/~parisse/debian testing/main i386 Packages
Ign:36 http://www-fourier.ujf-grenoble.fr/~parisse/debian testing/main all Packages
Ign:37 http://www-fourier.ujf-grenoble.fr/~parisse/debian testing/main Translation-en
Ign:38 http://www-fourier.ujf-grenoble.fr/~parisse/debian testing/main Translation-fr
Ign:39 http://www-fourier.ujf-grenoble.fr/~parisse/debian testing/main amd64 DEP-11 Metadata
Ign:40 http://www-fourier.ujf-grenoble.fr/~parisse/debian testing/main DEP-11 64x64 Icons
Ign:41 http://www-fourier.ujf-grenoble.fr/~parisse/debian testing/main amd64 Packages
Ign:42 http://www-fourier.ujf-grenoble.fr/~parisse/debian testing/main i386 Packages
Ign:36 http://www-fourier.ujf-grenoble.fr/~parisse/debian testing/main all Packages
Ign:37 http://www-fourier.ujf-grenoble.fr/~parisse/debian testing/main Translation-en
Ign:38 http://www-fourier.ujf-grenoble.fr/~parisse/debian testing/main Translation-fr
Ign:39 http://www-fourier.ujf-grenoble.fr/~parisse/debian testing/main amd64 DEP-11 Metadata
Ign:40 http://www-fourier.ujf-grenoble.fr/~parisse/debian testing/main DEP-11 64x64 Icons
Hit:41 http://www-fourier.ujf-grenoble.fr/~parisse/debian testing/main amd64 Packages
Hit:42 http://www-fourier.ujf-grenoble.fr/~parisse/debian testing/main i386 Packages
Ign:36 http://www-fourier.ujf-grenoble.fr/~parisse/debian testing/main all Packages
Ign:37 http://www-fourier.ujf-grenoble.fr/~parisse/debian testing/main Translation-en
Ign:38 http://www-fourier.ujf-grenoble.fr/~parisse/debian testing/main Translation-fr
Ign:39 http://www-fourier.ujf-grenoble.fr/~parisse/debian testing/main amd64 DEP-11 Metadata
Ign:40 http://www-fourier.ujf-grenoble.fr/~parisse/debian testing/main DEP-11 64x64 Icons
Ign:36 http://www-fourier.ujf-grenoble.fr/~parisse/debian testing/main all Packages
Ign:37 http://www-fourier.ujf-grenoble.fr/~parisse/debian testing/main Translation-en
Ign:38 http://www-fourier.ujf-grenoble.fr/~parisse/debian testing/main Translation-fr
Ign:39 http://www-fourier.ujf-grenoble.fr/~parisse/debian testing/main amd64 DEP-11 Metadata
Ign:40 http://www-fourier.ujf-grenoble.fr/~parisse/debian testing/main DEP-11 64x64 Icons
Fetched 5480 B in 18s (295 B/s)
Reading package lists... Done
W: The repository 'cdrom://Ubuntu 16.04.1 LTS _Xenial Xerus_ - Release amd64 (20160719) xenial Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: GPG error: http://qgis.org/debian xenial InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY CAEB3DC3BDF7FB45
W: The repository 'http://qgis.org/debian xenial InRelease' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: The repository 'http://www-fourier.ujf-grenoble.fr/~parisse/debian testing Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch cdrom://Ubuntu 16.04.1 LTS _Xenial Xerus_ - Release amd64 (20160719)/dists/xenial/main/binary-amd64/Packages  Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
E: Some index files failed to download. They have been ignored, or old ones used instead.

答案1

英语不是我的母语所以请耐心等待。

显然解决方案稍微复杂一些,已经在以下位置发布了答案:

https://askubuntu.com/a/985613/497512

首先需要安装一些库:

sudo apt-get install gcc-multilib libasound2-dev:i386 libgsm1-dev:i386 libjpeg8-dev:i386 liblcms2-dev:i386 libldap2-dev:i386 libmpg123-dev:i386 libopenal-dev:i386 libv4l-dev:i386 libx11-dev:i386 libxinerama-dev:i386 libxml2-dev:i386 zlib1g-dev:i386

然后再次进行更新:

sudo apt-get update

再次缺少一些库:

sudo apt-get install libcapi20-dev:i386 libcups2:i386 libdbus-1-3:i386 libfontconfig:i386 libfreetype6:i386 libglu1-mesa:i386 libgphoto2-6:i386 libncurses5:i386 libosmesa6:i386 libsane:i386 libxcomposite1:i386 libxcursor1:i386 libxi6:i386 libxrandr2:i386 libxslt1.1:i386 ocl-icd-libopencl1:i386 libgd3:i386

最后进行所需的安装:

稳定分支

sudo apt-get install --install-recommends winehq-stable

开发分支

sudo apt-get install --install-recommends winehq-devel

暂存分支

sudo apt-get install --install-recommends winehq-staging

PSDT:可以包含一些库,这取决于可以使用它们的其他程序和 Ubuntu 版本。

相关内容