安装WineHQ-stable时使用libsane的DPKG错误消息

随着17.10 ubuntu的新副本安装。 我发现了一个可重复的错误,我认为它会永久地搞乱我的葡萄酒装置。 在出错之后,我只需格式化系统并再次重试。 安装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) 

我遇到了同样的问题并解决了它。 这是由sane-backends的错误引起的。

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

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

然后再次安装Wine。

试试:

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

基本上ppa使用上面的命令删除并清除当前的葡萄酒安装,然后:

 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报告错误,可能已经报告并修复了此错误。

在synaptic搜索“libsane”并安装所有的额外内容,开发者等在ubuntu studio 17.10上为我工作