安装 WineHQ-stable 时,libsane 出现 DPKG 错误消息

安装 WineHQ-stable 时,libsane 出现 DPKG 错误消息

安装 17.10 ubuntu 的新副本。我发现一个可重复的错误,我相信它会永久弄乱我的 wine 安装。出现错误后,我只需格式化系统并再次重试。安装 winehq 时会遇到错误消息。稳定版和暂存版都会遇到完全相同的问题。

我在网上找不到答案。如果可以的话请帮忙。

Selecting previously unselected package libtxc-dxtn-s2tc:i386.
Preparing to unpack .../150-libtxc-dxtn-s2tc_1.0+git20151227-2_i386.deb ...
Unpacking libtxc-dxtn-s2tc:i386 (1.0+git20151227-2) ...
Errors were encountered while processing:
 /tmp/apt-dpkg-install-mh7wRK/137-libsane1_1.0.27-1~experimental2ubuntu1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

答案1

我遇到了同样的问题并解决了。这是由于一个错误sane-backends

首先,删除 Wine,然后执行:

sudo apt-get -o Dpkg::Options::="--force-overwrite" install libsane1:i386

然后再次安装 Wine。

答案2

尝试 :

sudo apt-add-repository --remove ppa:ubuntu-wine/ppa
sudo apt purge winehq-stable wine-mono wine-gecko winetricks 

基本上,ppa 使用上述命令删除并清除当前的 wine 安装,然后:

sudo rm -rf /var/lib/apt/lists/*
sudo apt clean
sudo apt autoremove
sudo apt update

现在安装 winehq-stable

sudo dpkg --add-architecture i386 
wget -nc https://dl.winehq.org/wine-builds/Release.key
sudo apt-key add Release.key
sudo apt-add-repository https://dl.winehq.org/wine-builds/ubuntu/
sudo apt-get update
sudo apt-get install --install-recommends winehq-stable
sudo dpkg --configure -a

以上是当前安装过程,因为启动板 Wine ppa 已被弃用,请参阅链接:https://launchpad.net/~ubuntu-wine/+archive/ubuntu/ppa了解详情。

编辑:如果您仍然遇到 libsane 软件包的问题,​​请向https://launchpad.net/ubuntu/+source/sane-backends这个错误可能已经被报告并修复了。

答案3

在 synaptic 中搜索“libsane”并安装所有附加组件、开发人员等。在 ubuntu studio 17.10 上对我有用

相关内容