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 / 问题 / 1522733
Accepted
reneas
reneas
Asked: 2024-08-07 20:52:55 +0800 CST2024-08-07 20:52:55 +0800 CST 2024-08-07 20:52:55 +0800 CST

运行 wine 会导致错误消息“看起来缺少 wine32,您应该安装它。”

  • 772

与这里的问题类似,但不完全相同,并且不是在 Ubuntu 23.04 上,而是在 24.04 LTS 上。

当我尝试运行wine它时,出现以下消息:

it looks like wine32 is missing, you should install it.
as root, please execute "apt-get install wine32:i386"

当尝试运行sudo apt-get install wine32:i386它时,结果如下:

sudo apt-get install wine32:i386
Reading package lists... Done
Building dependency tree... Done
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:
libgd3:i386 : Depends: libheif1:i386 (>= 1.17.6-1ubuntu4~) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

尝试安装时libheif1:i386导致:

sudo apt-get install libheif1:i386
Reading package lists... Done
Building dependency tree... Done
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:
libheif1:i386 : Depends: libdav1d5:i386 (>= 0.1.0) but it is not installable
Depends: libde265-0:i386 (>= 1.0.7) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

sudo apt update给出以下输出:

OK:1 https://dl.winehq.org/wine-builds/ubuntu noble InRelease
OK:2 https://ubuntu.mirror.wearetriple.com/archive noble InRelease
OK:3 http://packages.easyroam.de/repos/easyroam-desktop stable InRelease
OK:4 http://ftp.klid.dk/ftp/ubuntu noble InRelease
OK:5 http://ubuntu.mirror.tudos.de/ubuntu noble InRelease
OK:6 https://mirror.united-gameserver.de/ubuntu noble InRelease
OK:7 http://security.ubuntu.com/ubuntu noble-security InRelease
Holen:8 https://typora.io/linux ./ InRelease [793 B]
OK:10 http://de.archive.ubuntu.com/ubuntu noble InRelease
Holen:11 http://de.archive.ubuntu.com/ubuntu noble-updates InRelease [126 kB]
OK:12 http://ftp.tudelft.nl/archive.ubuntu.com noble InRelease
OK:13 http://repository.spotify.com stable InRelease
OK:14 https://brave-browser-apt-release.s3.brave.com stable InRelease
OK:16 http://nl3.archive.ubuntu.com/ubuntu noble InRelease
OK:17 https://nl.mirrors.clouvider.net/ubuntu noble InRelease
OK:18 https://mirror.nl.mirhosting.net/ubuntu noble InRelease
Holen:19 https://esm.ubuntu.com/apps/ubuntu jammy-apps-security InRelease [7.553 B]
Holen:20 https://esm.ubuntu.com/apps/ubuntu jammy-apps-updates InRelease [7.456 B]
Holen:15 http://mirrors.edge.kernel.org/ubuntu noble InRelease [256 kB]
OK:21 https://ppa.launchpadcontent.net/appimagelauncher-team/stable/ubuntu jammy InRelease
OK:22 https://ppa.launchpadcontent.net/danielrichter2007/grub-customizer/ubuntu noble InRelease
Holen:23 https://esm.ubuntu.com/infra/ubuntu jammy-infra-security InRelease [7.450 B]
OK:9 https://mirrors.edge.kernel.org/ubuntu noble InRelease
OK:24 https://ppa.launchpadcontent.net/mozillateam/ppa/ubuntu noble InRelease
Holen:25 https://esm.ubuntu.com/infra/ubuntu jammy-infra-updates InRelease [7.449 B]
OK:26 https://ppa.launchpadcontent.net/phoerious/keepassxc/ubuntu mantic InRelease
Es wurden 413 kB in 3 s geholt (136 kB/s).
Paketlisten werden gelesen… Fertig
Abhängigkeitsbaum wird aufgebaut… Fertig
Statusinformationen werden eingelesen… Fertig
Alle Pakete sind aktuell.

其内容/etc/apt/sources.list.d/winehq-noble.sources如下:

Types: deb
URIs: https://dl.winehq.org/wine-builds/ubuntu
Suites: noble
Components: main
Architectures: amd64 i386
Signed-By: /etc/apt/keyrings/winehq-archive.key

现在的问题是:我是否真的需要这个wine32:i386包,或者我可以忽略它吗?如果我需要它,我该如何获得它?

apt
  • 1 1 个回答
  • 60 Views

1 个回答

  • Voted
  1. Best Answer
    reneas
    2024-08-18T17:28:38+08:002024-08-18T17:28:38+08:00

    好的,在@Organic Marble评论的帮助下,我成功让它工作了!

    我确实sudo ppa-purge -s dl.winehq.org -o wine-builds -p ubuntu清除了 PPA 并删除了手动创建的文件

    /etc/apt/keyrings/winehq-archive.key
    /etc/apt/sources.list.d/winehq-noble.sources
    

    以及~/.wine目录。

    但这并非解决问题的全部办法!

    如此处所述:

    从 Ubuntu 24.04 开始,使用一个新的配置文件 /etc/apt/sources.list.d/ubuntu.sources 来管理存储库配置。

    由于我从 22.04 升级,因此我仍然保留了我的配置/etc/apt/sources.list。因此,我删除了该文件并创建了一个/etc/apt/sources.list.d/ubuntu.sources包含以下内容的新文件:

    Types: deb deb-src
    URIs: http://de.archive.ubuntu.com/ubuntu/
    Suites: noble noble-updates noble-backports noble-proposed
    Components: main restricted universe multiverse
    Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
    Types: deb deb-src 
    URIs: http://security.ubuntu.com/ubuntu/
    Suites: noble-security
    Components: main restricted universe multiverse
    Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
    
    

    之后,我简单地运行sudo apt install --install-recommends wine并检查了有问题的wine32:i386包是否包含在安装候选项中!

    现在一切正常:)

    • 2

相关问题

  • 如何编写 shell 脚本来安装应用程序列表?

  • 如何查看存档中可用的软件包的所有版本?

  • 是否可以说出我安装的哪些软件包不在原版安装中?

  • 如何删除 PPA?

  • 使用 apt-get upgrade 时如何强制安装内核更新?

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