bug说明:

dpkg: 处理归档 /var/cache/apt/archives/libattr1_1:2.4.47-2_amd64.deb (–unpack)时出错:
尝试覆盖共享的 ‘/usr/share/doc/libattr1/changelog.Debian.gz’, 它与软件包 libattr1:amd64 中的其他实例不同
仅仅处理这个bug,移步:https://blog.csdn.net/qinglingLS/article/details/106315288

版本说明:

中文版本官网说明:https://wiki.winehq.org/Ubuntu_zhcn
wine官网上说了,19.0.4和20.0.0的版本都已经包含了
(Ubuntu 19.10 及更新版本的 Ubuntu 的软件仓库已经包含了 FAudio 安装包。)
但是可怜的Ubuntu 18.04/Linux Mint 19.x 没有提供 FAudio,但最新版的 Wine 依赖该软件包。请参照 https://forum.winehq.org/viewtopic.php?f=8&t=32192 从 OBS 安装 FAudio。
另外,
WineHQ 仓库密钥在 2018-12-19 更改过。 如果您在哪之前下载并添加过密钥,您需要重新下载和添加新的密钥,并运行 sudo apt update 将更改应用到软件仓库。

可行的办法:

如何在Ubuntu 18.04 LTS上安装Wine
如何在Ubuntu 18.04、19.10 中安装 Wine 5.0 稳定版
参考网址:
ubuntu 18.04 通过联网方式安装wine

我采用的方法:

从WineHQ存储库安装Wine

WineHQ存储库有一组标准的Wine包,您可以在系统上下载和安装它们。请按照以下步骤操作:

1.在安装64位版本的Wine之前,

如果是64位机器,先开启允许32位架构程序运行,在终端中运行以下命令以添加i386体系结构:

$ sudo dpkg --add-architecture i386
2.对于ubuntu18.0.4,

添加 WineHQ 仓库密钥

wget -nc https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/Ubuntu_18.10_standard/Release.key
sudo apt-key add Release.key
或者
wget -O - https://dl.winehq.org/wine-builds/winehq.key | sudo apt-key add -

如果反复失败,
尝试下面的代码:
sudo apt-key adv --recv-keys --keyserver keyserver.Ubuntu.com F987672F
3.添加wine仓库

根据版本选择仓库

For this version:Use this command:
Ubuntu 20.04sudo add-apt-repository ‘deb https://dl.winehq.org/wine-builds/ubuntu/ focal main’
Ubuntu 19.10sudo add-apt-repository ‘deb https://dl.winehq.org/wine-builds/ubuntu/ eoan main’
Ubuntu 18.04/Linux Mint 19.xsudo add-apt-repository ‘deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main’
Ubuntu 16.04/Linux Mint 18.xsudo add-apt-repository ‘deb https://dl.winehq.org/wine-builds/ubuntu/ xenial main’
4.更新安装包:
sudo apt update
5.对于ubuntu18.0.4还需要下载FAudio 安装包:

官网指导:https://forum.winehq.org/viewtopic.php?f=8&t=32192
进入下载链接:
https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_18.04/
在这里插入图片描述
进入两个文件夹,下载两个版本的deb包,都叫做:libfaudio0_19.07-0~bionic_amd64.deb (64版本)和 libfaudio0_19.07-0~bionic_i386.deb(32版本)

6.然后安装 以下任意一个安装包:

稳定分支

sudo apt install --install-recommends winehq-stable

开发分支

sudo apt install --install-recommends winehq-devel

Staging 分支

sudo apt install --install-recommends winehq-staging

如果 apt-get 提示缺少依赖,请先安装缺少的依赖,然后重复以上两步(update 和 install)。更多故障处理技巧请参考 the FAQ entry on dependency errors

我遇到的问题和解决思路参考:

传送门【linux】wine 安装 apt软件安装包的依赖和dpkg包的覆盖——尝试覆盖共享/usr/share/doc/l它与软件包 libxxx:i386 中的其他实例不同,尚不能配置软件包 libx

问题重现:
qingling@qingling-MS-7C35:~/下载$ sudo apt-get install --install-recommends winehq-stable
正在读取软件包列表... 完成
正在分析软件包的依赖关系树       
正在读取状态信息... 完成       
下列软件包是自动安装的并且现在不需要了:
         ……
使用'sudo apt autoremove'来卸载它(它们)。
将会同时安装下列软件:
  gstreamer1.0-plugins-base:i386 libasn1-8-heimdal:i386 libasound2:i386 libasound2-plugins:i386 libasyncns0:i386 libatomic1:i386 libavahi-client3:i386 libavahi-common3:i386
  libcap2:i386 libcapi20-3:i386 libcdparanoia0:i386 libcom-err2:i386 libcups2:i386 libdb5.3:i386 libdbus-1-3:i386 libdrm-amdgpu1:i386 libdrm-intel1:i386 libdrm-nouveau2:i386
  libdrm-radeon1:i386 libedit2:i386 libelf1:i386 libexif12:i386 libfaudio0 libfaudio0:i386 libflac8:i386 libgcrypt20:i386 libgd3:i386 libgl1:i386 libgl1-mesa-dri:i386
  libgl1-mesa-glx:i386 libglapi-mesa:i386 libglu1-mesa:i386 libglvnd0:i386 libglx-mesa0:i386 libglx0:i386 libgmp10:i386 libgnutls30:i386 libgpg-error0:i386 libgphoto2-6:i386
  libgphoto2-port12:i386 libgpm2:i386 libgssapi-krb5-2:i386 libgssapi3-heimdal:i386 libgstreamer-plugins-base1.0-0:i386 libgstreamer1.0-0:i386 libhcrypto4-heimdal:i386
  libheimbase1-heimdal:i386 libheimntlm0-heimdal:i386 libhogweed4:i386 libhx509-5-heimdal:i386 libidn2-0:i386 libieee1284-3:i386 libjack-jackd2-0:i386 libk5crypto3:i386
  libkeyutils1:i386 libkrb5-26-heimdal:i386 libkrb5-3:i386 libkrb5support0:i386 liblcms2-2:i386 libldap-2.4-2:i386 libllvm9:i386 libltdl7:i386 libmpg123-0:i386 libncurses5:i386
  libnettle6:i386 libodbc1:i386 libopenal1:i386 liborc-0.4-0:i386 libosmesa6 libosmesa6:i386 libp11-kit0:i386 libpcap0.8:i386 libpciaccess0:i386 libpulse0:i386
  libroken18-heimdal:i386 libsamplerate0:i386 libsane1:i386 libsasl2-2:i386 libsasl2-modules:i386 libsasl2-modules-db:i386 libsdl2-2.0-0:i386 libsensors4:i386 libsndfile1:i386
  libsndio6.1:i386 libspeexdsp1:i386 libsqlite3-0:i386 libssl1.1:i386 libstb0:i386 libsystemd0:i386 libtasn1-6:i386 libtinfo5:i386 libudev1:i386 libunistring2:i386
  libusb-1.0-0:i386 libv4l-0:i386 libv4lconvert0:i386 libvisual-0.4-0:i386 libwayland-client0:i386 libwayland-cursor0:i386 libwayland-egl1:i386 libwind0-heimdal:i386
  libwrap0:i386 libx11-xcb1:i386 libxcb-dri2-0:i386 libxcb-dri3-0:i386 libxcb-glx0:i386 libxcb-present0:i386 libxcb-sync1:i386 libxcomposite1:i386 libxcursor1:i386
  libxdamage1:i386 libxi6:i386 libxinerama1:i386 libxkbcommon0:i386 libxpm4:i386 libxrandr2:i386 libxshmfence1:i386 libxslt1.1:i386 libxss1:i386 libxxf86vm1:i386
  ocl-icd-libopencl1 ocl-icd-libopencl1:i386 wine-stable wine-stable-amd64 wine-stable-i386:i386
建议安装:
  gvfs:i386 rng-tools:i386 libgd-tools:i386 gnutls-bin:i386 gphoto2:i386 gpm:i386 krb5-doc:i386 krb5-user:i386 libvisual-0.4-plugins:i386 gstreamer1.0-tools:i386 jackd2:i386
  libmyodbc:i386 odbc-postgresql:i386 tdsodbc:i386 unixodbc-bin:i386 libportaudio2:i386 hplip:i386 libsasl2-modules-gssapi-mit:i386 | libsasl2-modules-gssapi-heimdal:i386
  libsasl2-modules-ldap:i386 libsasl2-modules-otp:i386 libsasl2-modules-sql:i386 lm-sensors:i386 sndiod:i386 opencl-icd:i386
下列【新】软件包将被安装:
  gstreamer1.0-plugins-base:i386 libasn1-8-heimdal:i386 libasound2:i386 libasound2-plugins:i386 libasyncns0:i386 libatomic1:i386 libavahi-client3:i386 libavahi-common3:i386
  libcap2:i386 libcapi20-3:i386 libcdparanoia0:i386 libcom-err2:i386 libcups2:i386 libdb5.3:i386 libdbus-1-3:i386 libdrm-amdgpu1:i386 libdrm-intel1:i386 libdrm-nouveau2:i386
  libdrm-radeon1:i386 libedit2:i386 libelf1:i386 libexif12:i386 libfaudio0:i386 libflac8:i386 libgcrypt20:i386 libgd3:i386 libgl1:i386 libgl1-mesa-dri:i386 libgl1-mesa-glx:i386
  libglapi-mesa:i386 libglu1-mesa:i386 libglvnd0:i386 libglx-mesa0:i386 libglx0:i386 libgmp10:i386 libgnutls30:i386 libgpg-error0:i386 libgphoto2-6:i386 libgphoto2-port12:i386
  libgpm2:i386 libgssapi-krb5-2:i386 libgssapi3-heimdal:i386 libgstreamer-plugins-base1.0-0:i386 libgstreamer1.0-0:i386 libhcrypto4-heimdal:i386 libheimbase1-heimdal:i386
  libheimntlm0-heimdal:i386 libhogweed4:i386 libhx509-5-heimdal:i386 libidn2-0:i386 libieee1284-3:i386 libjack-jackd2-0:i386 libk5crypto3:i386 libkeyutils1:i386
  libkrb5-26-heimdal:i386 libkrb5-3:i386 libkrb5support0:i386 liblcms2-2:i386 libldap-2.4-2:i386 libllvm9:i386 libltdl7:i386 libmpg123-0:i386 libncurses5:i386 libnettle6:i386
  libodbc1:i386 libopenal1:i386 liborc-0.4-0:i386 libosmesa6 libosmesa6:i386 libp11-kit0:i386 libpcap0.8:i386 libpciaccess0:i386 libpulse0:i386 libroken18-heimdal:i386
  libsamplerate0:i386 libsane1:i386 libsasl2-2:i386 libsasl2-modules:i386 libsasl2-modules-db:i386 libsdl2-2.0-0:i386 libsensors4:i386 libsndfile1:i386 libsndio6.1:i386
  libspeexdsp1:i386 libsqlite3-0:i386 libssl1.1:i386 libstb0:i386 libsystemd0:i386 libtasn1-6:i386 libtinfo5:i386 libudev1:i386 libunistring2:i386 libusb-1.0-0:i386
  libv4l-0:i386 libv4lconvert0:i386 libvisual-0.4-0:i386 libwayland-client0:i386 libwayland-cursor0:i386 libwayland-egl1:i386 libwind0-heimdal:i386 libwrap0:i386
  libx11-xcb1:i386 libxcb-dri2-0:i386 libxcb-dri3-0:i386 libxcb-glx0:i386 libxcb-present0:i386 libxcb-sync1:i386 libxcomposite1:i386 libxcursor1:i386 libxdamage1:i386
  libxi6:i386 libxinerama1:i386 libxkbcommon0:i386 libxpm4:i386 libxrandr2:i386 libxshmfence1:i386 libxslt1.1:i386 libxss1:i386 libxxf86vm1:i386 ocl-icd-libopencl1
  ocl-icd-libopencl1:i386 wine-stable wine-stable-amd64 wine-stable-i386:i386 winehq-stable
下列软件包将被升级:
  libfaudio0
升级了 1 个软件包,新安装了 125 个软件包,要卸载 0 个软件包,有 0 个软件包未被升级。
需要下载 0 B/172 MB 的归档。
解压缩后会消耗 1,286 MB 的额外空间。
您希望继续执行吗? [Y/n] y
正在从软件包中解出模板:100%
正在预设定软件包 ...
(正在读取数据库 ... 系统当前共安装有 234136 个文件和目录。)
正准备解包 .../libgpg-error0_1.27-6_i386.deb  ...
正在解包 libgpg-error0:i386 (1.27-6) ...
dpkg: 处理归档 /var/cache/apt/archives/libgpg-error0_1.27-6_i386.deb (--unpack)时出错:
 尝试覆盖共享的 '/usr/share/doc/libgpg-error0/README.gz', 它与软件包 libgpg-error0:i386 中的其他实例不同
正准备解包 .../libgcrypt20_1.8.1-4ubuntu1.2_i386.deb  ...
正在解包 libgcrypt20:i386 (1.8.1-4ubuntu1.2) ...
dpkg: 处理归档 /var/cache/apt/archives/libgcrypt20_1.8.1-4ubuntu1.2_i386.deb (--unpack)时出错:
 尝试覆盖共享的 '/usr/share/doc/libgcrypt20/AUTHORS.gz', 它与软件包 libgcrypt20:i386 中的其他实例不同
在处理时有错误发生:
 /var/cache/apt/archives/libgpg-error0_1.27-6_i386.deb
 /var/cache/apt/archives/libgcrypt20_1.8.1-4ubuntu1.2_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

GitHub 加速计划 / li / linux-dash
6
1
下载
A beautiful web dashboard for Linux
最近提交(Master分支:3 个月前 )
186a802e added ecosystem file for PM2 4 年前
5def40a3 Add host customization support for the NodeJS version 4 年前
Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐