首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >为什么CrossOver不安装在debian9-xfce上

为什么CrossOver不安装在debian9-xfce上
EN

Unix & Linux用户
提问于 2019-08-23 17:31:46
回答 2查看 1.2K关注 0票数 1

当我想在Debian上安装CrossOver时,我将得到一个错误...and,我将运行以下命令

代码语言:javascript
复制
 sudo dpkg --add-architecture i386; sudo apt-get update

但没有解决。

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

代码语言:javascript
复制
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:~$ 

我试过:

代码语言:javascript
复制
sudo apt-get autoclean
sudo apt-get update
sudo apt-get upgrade
sudo apt-get -u dist-upgrade

然后我跑了:

代码语言:javascript
复制
sudo dpkg --configure -a
sudo apt-get -f install

sudo apt-get install libc6-i386

..。其结果是:

代码语言:javascript
复制
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时:

代码语言:javascript
复制
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:~$ 

sources.list内容

代码语言:javascript
复制
# 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

Results ofapt update**:**

代码语言:javascript
复制
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:~$ 

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

Results ofapt install libc6:i386**:**

代码语言:javascript
复制
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.

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

代码语言:javascript
复制
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

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

代码语言:javascript
复制
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
EN

回答 2

Unix & Linux用户

发布于 2019-08-23 20:42:57

删除非Debian Repos

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

您的sources.list应该如下所示:

代码语言:javascript
复制
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地址应该会自动连接到当时最快的镜像。来源

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

然后运行sudo apt updatesudo apt upgrade。如果成功地完成了这些操作,请继续下一步。

将当前的libc6

降级

您需要从系统中删除当前版本的libc6。遵循以下步骤:

代码语言:javascript
复制
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此包这里。示例:

代码语言:javascript
复制
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来安装。

验证您正在正确地遵循交叉Linux安装顺序

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

下载基于debian的安装程序的最新版本,方法是打开一个终端: wget http://crossover.codeweavers.com/redirect/crossover.deb教导系统大约32位包: sudo dpkg --添加体系结构i386,更新系统最新版本: sudo apt-获取用于在debian系统上安装CrossOver的推荐方法,方法是使用gdebi: sudo gdebi crossover.deb或使用dpkg: sudo dpkg -i crossover.deb。

由于交叉Linux是一个商业软件项目,如果您已经支付了软件的费用,我会考虑直接联系他们的支持这里,并要求帮助安装。

结论

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

祝你好运!

票数 1
EN

Unix & Linux用户

发布于 2019-08-23 19:40:17

如果这是一个愚蠢的问题,请原谅我,但是您是否试过安装libc6 6:i 386,就像它所列出的那样?据我所知,“libc6-i 386”包是64位架构的32位共享库的集合。然而,我认为您想要的软件包"libc6“的实际32位版本。因此,您需要指定“libc6 6:i 386”,而不是“libc6-i 386”。您可能希望确保安装了64位版本。请试一试,并让我知道它是如何进行的:

代码语言:javascript
复制
sudo apt install libc6
sudo apt install libc6:i386

安装好libc6和libc6 6:i 386后,再试一次安装libc6-i 386。

另外,查看下面的包信息以获得更多信息:https://packages.debian.org/stretch/libc6

最后,我还建议从您的sources.list文件中删除用于葡萄酒的Ubuntu,而不是选择Debian版本,因为您确实在运行Debian。

希望这能有所帮助。

票数 0
EN
页面原文内容由Unix & Linux提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://unix.stackexchange.com/questions/537098

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档