为什么 CrossOver 没有安装在 Debian 9 上 - XFCE

为什么 CrossOver 没有安装在 Debian 9 上 - XFCE

当我想在 Debian XFCE 上安装 CrossOver 时,我会收到错误消息......我将运行命令

 sudo dpkg --add-architecture i386; sudo apt-get update

但没有解决。

在此输入图像描述

当我运行sudo apt-get install libc6-i386

sanaebadi@debian:~$ sudo apt-get install libc6-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:
 libc6-i386 : Depends: libc6 (= 2.24-11+deb9u4) but 2.28-10 is to be installed
E: Unable to correct problems, you have held broken packages.
sanaebadi@debian:~$ 

我试过:

sudo apt-get autoclean
sudo apt-get update
sudo apt-get upgrade
sudo apt-get -u dist-upgrade

然后我跑了:

sudo dpkg --configure -a
sudo apt-get -f install

sudo apt-get install libc6-i386

...结果:

sanaebadi@debian:~$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
sanaebadi@debian:~$ sudo apt-get -u dist-upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
sanaebadi@debian:~$ sudo dpkg --configure -a
sanaebadi@debian:~$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
sanaebadi@debian:~$ sudo apt-get install libc6-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:
 libc6-i386 : Depends: libc6 (= 2.24-11+deb9u4) but 2.28-10 is to be installed
E: Unable to correct problems, you have held broken packages.
sanaebadi@debian:~$ 

当我跑步时lsb_release -a

sanaebadi@debian:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 9.9 (stretch)
Release:    9.9
Codename:   stretch
sanaebadi@debian:~$ 

来源.列表内容

# deb cdrom:[Debian GNU/Linux 9.5.0 _Stretch_ - Official amd64 NETINST 20180714$

#deb cdrom:[Debian GNU/Linux 9.5.0 _Stretch_ - Official amd64 NETINST 20180714-$

deb http://ftp.us.debian.org/debian/ stretch main contrib non-free
deb-src http://ftp.us.debian.org/debian/ stretch main contrib non-free

    deb http://security.debian.org/debian-security stretch/updates main contrib non$
    deb-src http://security.debian.org/debian-security stretch/updates main contrib$

    # stretch-updates, previously known as 'volatile'
    deb http://ftp.us.debian.org/debian/ stretch-updates main contrib non-free
    deb-src http://ftp.us.debian.org/debian/ stretch-updates main contrib non-free


    deb http://httpredir.debian.org/debian/ stretch main contrib non-free
    deb https://dl.winehq.org/wine-builds/debian/ stretch main
    # deb-src https://dl.winehq.org/wine-builds/debian/ stretch main
    # deb-src https://dl.winehq.org/wine-builds/debian/ stretch main
    deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main
    # deb-src https://dl.winehq.org/wine-builds/ubuntu/ bionic main


    deb http://ftp.de.debian.org/debian stretch main contrib non-free

结果apt update

sanaebadi@debian:~$ sudo nano /etc/apt/sources.list
[sudo] password for sanaebadi: 
sanaebadi@debian:~$ sudo apt update
Ign:1 http://deb.debian.org/debian stretch InRelease                            
Hit:2 http://deb.playonlinux.com precise InRelease                              
Ign:3 http://dl.google.com/linux/chrome/deb stable InRelease                    
Hit:4 http://deb.anydesk.com all InRelease                                      
Hit:5 http://linux.teamviewer.com/deb stable InRelease                          
Get:6 http://deb.debian.org/debian-security stretch/updates InRelease [94.3 kB] 
Hit:7 http://dl.google.com/linux/chrome/deb stable Release                      
Hit:8 http://repository.spotify.com stable InRelease                            
Get:9 http://ppa.launchpad.net/libreoffice/ppa/ubuntu eoan InRelease [20.7 kB]  
Err:9 http://ppa.launchpad.net/libreoffice/ppa/ubuntu eoan InRelease            
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 83FBA1751378B444
Hit:12 https://download.sublimetext.com apt/stable/ InRelease                   
Get:13 http://deb.debian.org/debian stretch-updates InRelease [91.0 kB]
Get:14 http://ppa.launchpad.net/webupd8team/java/ubuntu xenial InRelease [17.6 kB]
Err:14 http://ppa.launchpad.net/webupd8team/java/ubuntu xenial InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY C2518248EEA14886
Hit:15 http://deb.debian.org/debian stretch Release
Get:17 http://deb.debian.org/debian stretch-updates/main Sources.diff/Index [11.1 kB]
Get:18 http://deb.debian.org/debian stretch-updates/main i386 Packages.diff/Index [11.1 kB]
Get:19 http://deb.debian.org/debian stretch-updates/main amd64 Packages.diff/Index [11.1 kB]
Get:20 http://deb.debian.org/debian stretch-updates/main Sources 2019-08-14-2019.27.pdiff [554 B]
Get:20 http://deb.debian.org/debian stretch-updates/main Sources 2019-08-14-2019.27.pdiff [554 B]
Get:21 http://deb.debian.org/debian stretch-updates/main i386 Packages 2019-08-14-2019.27.pdiff [339 B]
Get:21 http://deb.debian.org/debian stretch-updates/main i386 Packages 2019-08-14-2019.27.pdiff [339 B]
Get:22 http://deb.debian.org/debian stretch-updates/main amd64 Packages 2019-08-14-2019.27.pdiff [339 B]
Get:22 http://deb.debian.org/debian stretch-updates/main amd64 Packages 2019-08-14-2019.27.pdiff [339 B]
Get:23 http://deb.debian.org/debian-security stretch/updates/main Sources [212 kB]
Get:24 http://deb.debian.org/debian-security stretch/updates/main i386 Packages [504 kB]
Err:11 http://www.getdeb.net/ubuntu wily-getdeb InRelease                       
  403  Forbidden [IP: 143.95.32.90 80]
Get:25 http://deb.debian.org/debian-security stretch/updates/main amd64 Packages [502 kB]
Get:26 http://deb.debian.org/debian-security stretch/updates/main Translation-en [225 kB]
Reading package lists... Done                                                   
W: GPG error: http://ppa.launchpad.net/libreoffice/ppa/ubuntu eoan InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 83FBA1751378B444
E: The repository 'http://ppa.launchpad.net/libreoffice/ppa/ubuntu eoan InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: GPG error: http://ppa.launchpad.net/webupd8team/java/ubuntu xenial InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY C2518248EEA14886
E: The repository 'http://ppa.launchpad.net/webupd8team/java/ubuntu xenial InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch http://archive.getdeb.net/ubuntu/dists/wily-getdeb/InRelease  403  Forbidden [IP: 143.95.32.90 80]
E: The repository 'http://archive.getdeb.net/ubuntu wily-getdeb InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
sanaebadi@debian:~$ sudo apt upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
sanaebadi@debian:~$ sudo apt clean
sanaebadi@debian:~$ sudo apt autoremove
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
sanaebadi@debian:~$ sudo apt install -f
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
sanaebadi@debian:~$ sudo apt purge libc6-i386
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package 'libc6-i386' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
sanaebadi@debian:~$ 

===================

结果apt install libc6:i386

sudo apt install libc6: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:
 hunspell-fr : Depends: hunspell-fr-classical but it is not going to be installed or
                        hunspell-fr-modern but it is not going to be installed or
                        hunspell-fr-revised but it is not going to be installed or
                        hunspell-fr-comprehensive but it is not going to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

=====================

sanaebadi@debian:~$ wget http://ftp.us.debian.org/debian/pool/main/g/glibc/libc6_2.24-11+deb9u4_i386.deb
--2019-08-23 17:06:12--  http://ftp.us.debian.org/debian/pool/main/g/glibc/libc6_2.24-11+deb9u4_i386.deb
Resolving ftp.us.debian.org (ftp.us.debian.org)... 64.50.236.52, 208.80.154.15, 64.50.233.100, ...
Connecting to ftp.us.debian.org (ftp.us.debian.org)|64.50.236.52|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2472274 (2.4M)
Saving to: ‘libc6_2.24-11+deb9u4_i386.deb’

libc6_2.24-11+deb9u4 100%[===================>]   2.36M   391KB/s    in 14s     

2019-08-23 17:06:27 (175 KB/s) - ‘libc6_2.24-11+deb9u4_i386.deb’ saved [2472274/2472274]

sanaebadi@debian:~$ sudo dpkg -i libc6_2.24-11+deb9u4_i386.deb
Selecting previously unselected package libc6:i386.
(Reading database ... 343220 files and directories currently installed.)
Preparing to unpack libc6_2.24-11+deb9u4_i386.deb ...
De-configuring libc6:amd64 (2.28-10) ...
Unpacking libc6:i386 (2.24-11+deb9u4) ...
dpkg: error processing package libc6:i386 (--install):
 package libc6:i386 2.24-11+deb9u4 cannot be configured because libc6:amd64 is at a different version (2.28-10)
dpkg: error processing package libc6:amd64 (--install):
 package libc6:amd64 2.28-10 cannot be configured because libc6:i386 is at a different version (2.24-11+deb9u4)
Errors were encountered while processing:
 libc6:i386
 libc6:amd64

=======================

sanaebadi@debian:~$ sudo gdebi crossover.deb
Reading package lists... Done
Building dependency tree        
Reading state information... Done
Reading state information... Done
This package is uninstallable
Cannot install 'libc6:i386'
sanaebadi@debian:~$ sudo dpkg -i crossover.deb
Selecting previously unselected package crossover:i386.
(Reading database ... 343221 files and directories currently installed.)
Preparing to unpack crossover.deb ...
Unpacking crossover:i386 (18.5.0-1) ...
dpkg: dependency problems prevent configuration of crossover:i386:
 crossover:i386 depends on libc6 (>= 2.11); however:
  Package libc6:i386 is not installed.
 crossover:i386 depends on libx11-6 | xlibs; however:
 crossover:i386 depends on libxext6 | xlibs; however:
 crossover:i386 depends on libxi6; however:
 crossover:i386 depends on libfreetype6; however:
 crossover:i386 depends on libpng12-0 | libpng16-16; however:
 crossover:i386 depends on libz1; however:
 crossover:i386 depends on libnss-mdns | lib32nss-mdns:amd64; however:
  Package lib32nss-mdns is not installed.
 crossover:i386 depends on libcups2; however:
 crossover:i386 depends on liblcms2-2; however:
 crossover:i386 depends on libglu1-mesa; however:
 crossover:i386 depends on libxcursor1; however:
 crossover:i386 depends on libxrandr2; however:

dpkg: error processing package crossover:i386 (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 crossover:i386

答案1

删除非 Debian 存储库

您应该遵循建议这里关于你的sources.list

你的sources.list应该看起来像这样:

deb http://deb.debian.org/debian stretch main contrib non-free
deb-src http://deb.debian.org/debian stretch main contrib non-free

deb http://deb.debian.org/debian-security/ stretch/updates main contrib non-free
deb-src http://deb.debian.org/debian-security/ stretch/updates main contrib non-free

deb http://deb.debian.org/debian stretch-updates main contrib non-free
deb-src http://deb.debian.org/debian stretch-updates main contrib non-free

deb.debian.org地址应该会自动将您连接到当时最快的镜像。来源

如果您确实需要第 3 方存储库(如果有必要的话我建议您不要这样做(只是为了避免类似这种情况)),您需要确保它们适用于您当前版本的 Debian。 (在这种情况下拉伸)

运行sudo apt update然后sudo apt upgrade。如果这些成功完成,请继续下一步。

降级您当前的libc6

libc6您需要从系统中删除当前版本。按着这些次序:

sudo apt clean
sudo apt autoremove
sudo apt install -f
sudo apt purge libc6-i386

这应该会删除有问题的包。然而,根据具体情况,可能会有依赖于该包的包。请使用最后一个命令的输出更新您的帖子,这个问题可以更新。(或者您可以尝试指出的建议这里.)

删除软件包后,我们可以按照 2 个步骤之一安装正确的软件包。要么遵循用户 alex_crow 的运行建议sudo apt install libc6:i386。您可能再次需要运行sudo dpkg --add-architecture i386sudo apt update完成此任务。

或者直接下载安装包也可以。Libc6对于拉伸可以找到这里。您正在寻找libc6_2.24-11+deb9u4_i386.deb包裹。您可以wget从列出的相关镜像中获取此软件包这里。例子:

wget http://ftp.us.debian.org/debian/pool/main/g/glibc/libc6_2.24-11+deb9u4_i386.deb

然后运行sudo dpkg -i libc6_2.24-11+deb9u4_i386.deb安装。

验证您是否正确遵循 Crossover Linux 安装顺序

这里是有关如何安装该软件的 Crossover Linux 文档。验证您是否正确运行了这些步骤。您可能需要从第一次尝试安装失败的情况中清除现有的软件包。

通过打开终端下载最新版本的基于 debian 的安装程序:

wget http://crossover.codeweavers.com/redirect/crossover.deb

向系统教授 32 位软件包:

sudo dpkg --add-architecture i386

将系统更新到最新版本:

sudo apt-get update

在基于 debian 的系统上安装 CrossOver 的推荐方法是使用 gdebi:

sudo gdebi crossover.deb

或者使用 dpkg:

sudo dpkg -i crossover.deb

由于 Crossover Linux 是一个商业软件项目,如果您已付费购买该软件,我会考虑直接联系他们的支持这里并寻求安装方面的帮助。

结论

不要破坏 Debian。在运行任何命令之前,请务必阅读我提供的所有链接。如果您有任何疑问或我的帖子有任何错误,请发表评论,我可以编辑此答案。

祝你好运!

答案2

如果这是一个愚蠢的问题,请原谅我,但是您是否尝试过完全按照列出的方式安装 libc6:i386 ?据我了解,“libc6-i386”包是一个64位架构的32位共享库的集合。但是,我认为您需要包“libc6”的实际 32 位版本。因此,您需要指定“libc6:i386”,而不是“libc6-i386”。您可能需要确保也安装了 64 位版本。请尝试以下操作,并让我知道进展如何:

sudo apt install libc6
sudo apt install libc6:i386

安装 libc6 和 libc6:i386 后,请尝试再次安装 libc6-i386。

另外,请查看以下软件包信息以获取更多信息: https://packages.debian.org/stretch/libc6

最后,我还建议从您的sources.list 文件中删除WINE 的Ubuntu 存储库,而选择Debian 版本,因为您确实运行的是Debian。

希望这可以帮助。

相关内容