Wine 安装错误

Wine 安装错误

我使用了命令

apt-get install wine-stable

安装 wine。但我收到如下错误:

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-stable : Depends: wine-stable-i386 (= 5.0.0~bionic)
               Depends: wine-stable-amd64 (= 5.0.0~bionic) but it is not going to be installed
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:50 and /etc/apt/sources.list:54
W: Target Packages (main/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:50 and /etc/apt/sources.list:54
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:50 and /etc/apt/sources.list:54
W: Target Translations (main/i18n/Translation-en_IN) is configured multiple times in /etc/apt/sources.list:50 and /etc/apt/sources.list:54
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:50 and /etc/apt/sources.list:54
W: Target DEP-11 (main/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:50 and /etc/apt/sources.list:54
W: Target DEP-11 (main/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:50 and /etc/apt/sources.list:54
W: Target DEP-11-icons-small (main/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list:50 and /etc/apt/sources.list:54
W: Target DEP-11-icons (main/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:50 and /etc/apt/sources.list:54
W: Target CNF (main/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list:50 and /etc/apt/sources.list:54
W: Target CNF (main/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list:50 and /etc/apt/sources.list:54
E: Unable to correct problems, you have held broken packages.

提前致谢。

编辑1:

尝试更新时我收到以下输出

Ign:1 cdrom://Ubuntu 18.04.1 LTS _Bionic Beaver_ - Release amd64 (20180725) bionic InRelease
Err:2 cdrom://Ubuntu 18.04.1 LTS _Bionic Beaver_ - Release amd64 (20180725) bionic Release
  Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
Hit:3 http://dl.winehq.org/wine-builds/ubuntu bionic InRelease                 
Hit:4 http://linux.teamviewer.com/deb stable InRelease                         
Hit:5 http://dl.winehq.org/wine-builds/ubuntu artful InRelease                 
Hit:6 http://in.archive.ubuntu.com/ubuntu bionic InRelease                     
Ign:7 http://ppa.launchpad.net/ehoover/compholio/ubuntu bionic InRelease       
Hit:8 http://in.archive.ubuntu.com/ubuntu bionic-updates InRelease             
Hit:9 http://dl.google.com/linux/chrome/deb stable InRelease                   
Hit:10 http://in.archive.ubuntu.com/ubuntu bionic-backports InRelease          
Ign:11 https://pkg.jenkins.io/debian-stable binary/ InRelease                  
Hit:12 http://archive.ubuntu.com/ubuntu bionic InRelease                       
Hit:13 http://ppa.launchpad.net/gnome3-team/gnome3/ubuntu bionic InRelease     
Hit:14 https://pkg.jenkins.io/debian-stable binary/ Release                    
Ign:15 https://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/4.2 InRelease    
Hit:16 http://security.ubuntu.com/ubuntu bionic-security InRelease             
Hit:18 https://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/4.2 Release      
Get:17 https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_18.04 ./ InRelease [1,565 B]
Err:17 https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_18.04 ./ InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY DFA175A75104960E
Hit:21 http://ppa.launchpad.net/linuxuprising/java/ubuntu bionic InRelease
Ign:22 http://ppa.launchpad.net/mc3man/xerus-media/ubuntu bionic InRelease     
Hit:23 http://ppa.launchpad.net/ondrej/apache2/ubuntu bionic InRelease
Hit:24 http://ppa.launchpad.net/openjdk-r/ppa/ubuntu bionic InRelease          
Ign:25 http://ppa.launchpad.net/pipelight/stable/ubuntu bionic InRelease       
Hit:26 http://ppa.launchpad.net/webupd8team/java/ubuntu bionic InRelease
Err:27 http://ppa.launchpad.net/ehoover/compholio/ubuntu bionic Release        
  404  Not Found [IP: 2001:67c:1560:8008::15 80]
Err:28 http://ppa.launchpad.net/mc3man/xerus-media/ubuntu bionic Release
  404  Not Found [IP: 2001:67c:1560:8008::15 80]
Err:29 http://ppa.launchpad.net/pipelight/stable/ubuntu bionic Release
  404  Not Found [IP: 2001:67c:1560:8008::15 80]
Reading package lists... Done
E: The repository 'cdrom://Ubuntu 18.04.1 LTS _Bionic Beaver_ - Release amd64 (20180725) bionic Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: GPG error: https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_18.04 ./ InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY DFA175A75104960E
E: The repository 'https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_18.04 ./ InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://ppa.launchpad.net/ehoover/compholio/ubuntu bionic Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://ppa.launchpad.net/mc3man/xerus-media/ubuntu bionic Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://ppa.launchpad.net/pipelight/stable/ubuntu bionic Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

答案1

  1. 启用 32 位架构sudo dpkg --add-architecture i386并更新
  2. 如果问题仍然存在,并且 apt 抱怨缺少依赖项,apt install wine-stable-i386或者wine-stable-amd64取决于你的架构

编辑:至于那些 ppa,我会清除它们,因为它们不适用于你的版本

sudo ppa-purge ppa:ppa_name/ppa

或者

sudo add-apt-repository --remove ppa:whatever/ppa

相关内容