AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题 / 1229233
Accepted
Drake Brundridge
Drake Brundridge
Asked: 2020-04-22 11:52:54 +0800 CST2020-04-22 11:52:54 +0800 CST 2020-04-22 11:52:54 +0800 CST

无法在 18.04 上安装最新的 Wine

  • 772

所以我在 Ubuntu 18.04 上运行,每当我尝试安装 Wine 时,这就是我得到的。

$ sudo apt-get install --install-recommends wine-stable
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
E: Unable to correct problems, you have held broken packages.

然后,当我尝试添加时,$ sudo apt-get install wine-stable-amd64我得到了这个。

$ sudo apt-get install wine-stable-amd64
[sudo] password for user: 
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-amd64 : Depends: libfaudio0 but it is not installable
                     Recommends: libsdl2-2.0-0 but it is not installable
E: Unable to correct problems, you have held broken packages.

我是 Ubuntu 的新手,但我不是最好的,所以我非常感谢有关此问题的含义以及如何纠正它的一些帮助。

system-installation package-management wine 18.04
  • 1 1 个回答
  • 110 Views

1 个回答

  • Voted
  1. Best Answer
    Raffles
    2020-04-22T11:58:05+08:002020-04-22T11:58:05+08:00

    这是安装 Wine 5 的 Ubuntu 18.04 方法。它出现在这个网站上。

    我将详细说明步骤:

    启用 32 位支持:

    sudo dpkg --add-architecture i386
    

    为 Wine 添加存储库:下载 Wine 官方包存储库的 GPG 密钥:

    wget -nc https://dl.winehq.org/wine-builds/winehq.key
    

    添加 Wine GPG 密钥:

    sudo apt-key add winehq.key
    

    添加官方 Wine 包存储库:

    sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main'
    

    下载 OpenSUSE Wine 存储库的 GPG 密钥:

    wget -nc https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_18.04/Release.key
    

    添加 GPG 密钥:

    sudo apt-key add Release.key
    

    添加 OpenSUSE Wine 存储库:

    echo "deb http://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_18.04 ./" | sudo tee /etc/apt/sources.list.d/wine-obs.list
    

    更新 APT 包存储库缓存:

    sudo apt update
    

    您已准备好安装 Wine 5:

    sudo apt install --install-recommends winehq-stable
    

    按 Y,然后按 Enter

    一旦安装了 Wine 5,您就可以对其进行配置。

    winecfg
    
    • 0

相关问题

  • 有没有办法重置所有包/源并从头开始?

  • 如何回滚到 PHP 5.2?

  • 包管理器之间有什么区别?

  • 安装时,我可以选择加密我的主文件夹——这是做什么的?

  • 在不使用标准升级系统的情况下升级有哪些替代方案?

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve