我已经尝试了所有的指南,但在将系统从 Ubuntu 18.04 升级到 20.04 后仍无法安装 wine i386。
按照 WineHQ 文档的操作,我陷入了依赖地狱(需要 libfaudio0:i386 等,这也是无法安装的),并且从官方 Ubuntu 存储库安装 wine 最终会出现错误,例如以 root 身份执行“apt-get install wine32-development”。
如果从 18.04 升级而不是全新安装 20.04,是否有不同的安装方法?
编辑:当我运行任何 wine 命令时,我得到以下信息:
as root, please execute "apt-get install wine32-development"
当我尝试安装 msi 文件时,wine msiexec /i /path/to/file
出现以下信息:
003e:err:module:__wine_process_init L"C:\\windows\\syswow64\\msiexec.exe" not supported on this system
编辑2:
$ apt-cache policy $(dpkg -l | grep wine | grep ^ii | awk '{print $2}')
carla-bridge-wine32:
Installed: 5:2.3.1+git20210723
Candidate: 5:2.3.1+git20210723
Version table:
*** 5:2.3.1+git20210723 100
100 /var/lib/dpkg/status
carla-bridge-wine64:
Installed: 5:2.3.1+git20210723
Candidate: 5:2.3.1+git20210723
Version table:
*** 5:2.3.1+git20210723 100
100 /var/lib/dpkg/status
2.1-0ubuntu1 500
500 http://za.archive.ubuntu.com/ubuntu focal/universe amd64 Packages
libkwineffects12:
Installed: 4:5.18.5-0ubuntu0.1
Candidate: 4:5.18.5-0ubuntu0.1
Version table:
*** 4:5.18.5-0ubuntu0.1 500
500 http://za.archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages
100 /var/lib/dpkg/status
4:5.18.4.1-0ubuntu2 500
500 http://za.archive.ubuntu.com/ubuntu focal/universe amd64 Packages
$ sudo apt install --install-recommends winehq-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:
winehq-stable : Depends: wine-stable (= 6.0.1~focal-1)
E: Unable to correct problems, you have held broken packages.
$ sudo apt 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 (= 6.0.1~focal-1)
E: Unable to correct problems, you have held broken packages.
$ sudo apt install --install-recommends wine-stable-i386
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-i386:i386 : Depends: libfaudio0:i386 (>= 19.06.07) but it is not going to be installed
Depends: libglib2.0-0:i386 (>= 2.12.0) but it is not going to be installed
Depends: libgphoto2-6:i386 (>= 2.5.10) but it is not going to be installed
Depends: libgstreamer-plugins-base1.0-0:i386 (>= 1.0.0) but it is not going to be installed
Depends: libgstreamer1.0-0:i386 (>= 1.4.0) but it is not going to be installed
Depends: libxml2:i386 (>= 2.9.0) but it is not going to be installed
Recommends: libsane:i386 but it is not going to be installed or
libsane1:i386
Recommends: libxslt1.1:i386 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
编辑3:
$ cat /etc/apt/sources.list | grep wine
deb https://dl.winehq.org/wine-builds/ubuntu/ focal main
# deb-src https://dl.winehq.org/wine-builds/ubuntu/ focal main
编辑4:
$ sudo aptitude search ~o
i A aspnetcore-runtime-2.2 - Microsoft ASP.NET Core 2.2.8 Shared Framework
i carla-bridge-wine32 - Dummy package
i carla-git - audio plugin host
i carla-git-data - audio plugin host (common data)
i A containerd.io - An open and reliable container runtime
i discord - Chat for Communities and Friends
i docker-ce - Docker: the open-source application container engine
i A docker-ce-cli - Docker CLI: the open-source application container engine
i A docker-ce-rootless-extras - Rootless support for Docker.
i A docker-scan-plugin - Docker scan cli plugin.
i A dotnet-host - Microsoft .NET Host - 5.0.8
i A dotnet-hostfxr-2.2 - Microsoft .NET Core Host FX Resolver - 2.2.8 2.2.8
i A dotnet-runtime-2.2 - Microsoft .NET Core Runtime - 2.2.8 Microsoft.NETCore.App 2.2.8
i A dotnet-runtime-deps-2.2 - dotnet-runtime-deps-2.2 2.2.8
i dotnet-sdk-2.2 - Microsoft .NET Core SDK 2.2.402
i dropbox - cloud synchronization engine - CLI and Nautilus extension
i insomnia - The Collaborative API Client and Design Tool
i kxstudio-default-settings - KXStudio default settings and config
i A kxstudio-menu - KXStudio Menu
i kxstudio-repos - KXStudio repositories
i A libavcodec57 - FFmpeg library with de/encoders for audio/video codecs - runtime files
i libavresample3 - FFmpeg compatibility library for resampling - runtime files
i libavutil55 - FFmpeg library with functions for simplifying programming - runtime files
i libffi6 - Foreign Function Interface library runtime
i libgig8 - library for accessing Gigasampler, DLS, SoundFont, KORG, AKAI files
i libicu60 - International Components for Unicode
i A libicu65 - International Components for Unicode
i liblinuxsampler - realtime audio sampler (base library)
i libmysofa0 - library to read HRTFs stored in the AES69-2015 SOFA format
i A libonig4 - regular expressions library
i libpng12-0 - PNG library - runtime
i libpostproc54 - FFmpeg library for post processing - runtime files
i libpython3.6 - Shared Python runtime library (version 3.6)
i libpython3.6-minimal - Minimal subset of the Python language (version 3.6)
i libpython3.6-stdlib - Interactive high-level object-oriented language (standard library, version 3.6)
i libreadline7 - GNU readline and history libraries, run-time libraries
i libsndio6.1 - Small audio and MIDI framework from OpenBSD, runtime libraries
i libswresample2 - FFmpeg library for audio resampling, rematrixing etc. - runtime files
i libswscale4 - FFmpeg library for image scaling and various conversions - runtime files
i libvpx5 - VP8 and VP9 video codec (shared library)
i libx264-152 - x264 video coding library
i libx265-146 - H.265/HEVC video stream encoder (shared library)
i libzip4 - library for reading, creating, and modifying zip archives (runtime)
i minecraft-launcher - Official Minecraft Launcher
i A mono-llvm-support - Mono runtime - SGen
i A mono-llvm-tools - opt and llc for Mono llvm mode
i A mono-roslyn - Microsoft C# compiler
i A msbuild - build platform for .NET and Visual Studio
i A msbuild-libhostfxr - Helper library for MSbuild .NET Core support
i A msbuild-sdkresolver - build platform for .NET and Visual Studio
i packages-microsoft-prod - Apt configuration for packages.microsoft.com
i A pgdg-keyring - keyring for apt.postgresql.org
i A php8.0-common - documentation, examples and common module for PHP
i php8.0-curl - CURL module for PHP
i php8.0-mbstring - MBSTRING module for PHP
i php8.0-zip - Zip module for PHP
i A postgresql-client-10 - front-end programs for PostgreSQL 10
i A postgresql-client-11 - front-end programs for PostgreSQL 11
i A postgresql-client-13 - front-end programs for PostgreSQL 13
i python-psycopg2 - Python module for PostgreSQL
i A referenceassemblies-pcl - Portable Library Reference Assemblies for .NET
i sitala - Drum sampler
i A steam-launcher - Launcher for the Steam software distribution service
i systray-x - SysTray-X is a system tray extension for Thunderbird 68+ (KDE).
i teams - Microsoft Teams for Linux is your chat-centered workspace in Office 365.
i teamviewer - Remote control and meeting solution.
i yarn - Fast, reliable, and secure dependency management.
$ sudo apt-cache policy wine-stable-i386
wine-stable-i386:i386:
Installed: (none)
Candidate: 6.0.1~focal-1
Version table:
6.0.1~focal-1 500
500 https://dl.winehq.org/wine-builds/ubuntu focal/main i386 Packages
6.0.1~bionic-1 -1
100 /var/lib/dpkg/status
6.0.0~focal-1 500
500 https://dl.winehq.org/wine-builds/ubuntu focal/main i386 Packages
5.0.4~focal-1 500
500 https://dl.winehq.org/wine-builds/ubuntu focal/main i386 Packages
5.0.3~focal 500
500 https://dl.winehq.org/wine-builds/ubuntu focal/main i386 Packages
5.0.2~focal 500
500 https://dl.winehq.org/wine-builds/ubuntu focal/main i386 Packages
5.0.1~focal 500
500 https://dl.winehq.org/wine-builds/ubuntu focal/main i386 Packages
4.0.4~focal 500
500 https://dl.winehq.org/wine-builds/ubuntu focal/main i386 Packages
答案1
您的存储库或本地软件包列表有问题。faudio 库可用的自 20.04 LTS 以来,在官方 Ubuntu 存储库中宇宙口袋。
要安装上面列出的软件包,你必须通过以下方式将 i386 架构添加到系统中:
sudo dpkg --add-architecture i386
并添加宇宙口袋
sudo apt-add-repository universe
然后通过以下方式更新软件包列表
sudo apt-get update
并按计划安装 wine
sudo apt install --install-recommends wine-stable-i386
如果上述命令失败,则安装 Aptitude 并尝试使用它安装 Wine
sudo apt-get install aptitude
sudo aptitude install wine-stable-i386
另外,我假设你的版本carla-bridge-wine
来自一些第三方存储库,因此你必须通过以下方式降级它们:
sudo apt-get install carla-bridge-wine32=2.1-0ubuntu1 carla-bridge-wine64=2.1-0ubuntu1
如果以上所有方法都失败 - 然后切换到主 Ubuntu 软件镜像并再次运行以上所有命令。
答案2
就我而言:docker witch node、java 和 electron 都可以正常工作 - 我留下了完整的 dockerfile
FROM node:16.15.0
WORKDIR /work
COPY package.json .
RUN apt update
RUN apt-get -y install zip unzip
# node_modules witch angular and electron
RUN npm install -g n @angular/cli electron electron-builder
# JAVA
RUN apt-get -y install default-jre
RUN apt install openjdk-11-jre-headless
# Wine (Wine32)
RUN apt install -y software-properties-common
RUN dpkg --add-architecture i386
RUN wget -nc https://dl.winehq.org/wine-builds/winehq.key
RUN apt-key add winehq.key
RUN add-apt-repository 'deb https://dl.winehq.org/wine-builds/debian/ buster main'
RUN apt update
RUN apt -y install --install-recommends winehq-stable
EXPOSE 3002