在 ubuntu 12.04 上安装 skype 时出现无法解决的(!)依赖性问题

在 ubuntu 12.04 上安装 skype 时出现无法解决的(!)依赖性问题

我在新安装的 12.04(64 位)上安装 skype 时遇到了问题。以下是三次不同尝试的结果和输出。任何帮助都将不胜感激!

  1. 从以下位置下载 skype .deb 文件Skype 网站,我选择了 Ubuntu 12.04 (Multiarch)。使用 Ubuntu 软件中心打开 deb 文件,我得到:

    Error: Cannot install 'libasound2:i386'
    
  2. Synaptic 软件包管理器:我将 skype 标记为要安装(并且其他更改的对话框中列出了要删除的长得可笑的软件包列表!但无论如何)我单击“确定”,然后出现错误:

    Could not mark all packages for installation or upgrade:
    The following packages have unresolvable dependencies. Make sure that all required repositories are added and enabled in the preferences.
    skype: 
    Depends: skype-bin
    
  3. 尝试了以下说明帮助.ubuntu但我明白

     $ sudo dpkg --add-architecture i386
     dpkg: error: unknown option --add-architecture
    

但不管怎样,我认为我已经解决了这个问题,所以:

$ dpkg --print-foreign-architectures

i386

这是我的 sources.list 的样子:

deb http://archive.ubuntu.com/ubuntu precise main universe restricted multiverse
deb-src http://archive.ubuntu.com/ubuntu precise main universe restricted multiverse #Added by software-properties
deb http://security.ubuntu.com/ubuntu/ precise-security main universe restricted multiverse
deb-src http://security.ubuntu.com/ubuntu/ precise-security main universe restricted multiverse #Added by software-properties
deb http://cran.r-mirror.de/bin/linux/ubuntu precise/
deb http://archive.canonical.com/ precise partner
deb-src http://archive.canonical.com/ precise partner

然后我运行sudo apt-get updatesudo apt-get upgrade最后:

$sudo apt-get install skype:

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:
 default-jre-headless : Depends: openjdk-6-jre-headless (>= 6b23~pre11-1ubuntu1~)
 libatk-wrapper-java : Depends: default-jre or
                                java2-runtime
                       Recommends: libatk-wrapper-java-jni but it is not going to be installed.

 skype : Depends: skype-bin
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

然后我也尝试:

$ 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.

我也做过clean,,autocleandist-upgrade没有明显效果。不知道下一步该怎么办!?

答案1

检查这些步骤;

首先在终端窗口中使用此命令安装依赖项(或使用 Synaptic):

sudo apt-get 安装 lsb-core ia32-libs libqt4-dbus libqt4-network libqt4-xml libasound2

sudo apt-get -f 安装

然后,从官方网站下载 64 位 deb 包:

wget -O skype_Ubuntu-current_amd64.debhttp://www.skype.com/go/getskype-linux-beta-ubuntu-64

现在,安装 Skype:

sudo dpkg -i skype_Ubuntu-current_amd64.deb sudo apt-get -f 安装

来源:http://ubuntuguide.net/how-to-install-skype-on-amd-64-bit-ubuntu-12-04-precise

答案2

这是我在虚拟机上所做的

1-安装Ubuntu LTS 12.04.1没有更新对系统所做的更改或安装任何附加程序甚至附加语言包)

2- 浏览至http://www.skype.com/en/download-skype/skype-for-computer/然后我被自动重定向到 Linux 版 Skype

3-我选择Ubuntu 12.04 多架构并点击打开而不是保存。所以它在下载后直接执行。

4- 首次运行时,它打开了 Ubuntu 软件中心并给出了与您相同的错误(依赖性错误libasound2

5-我刚刚打开了下载文件的位置临时文件并将文件复制到我的桌面并再次执行它。

6- 没有出现任何错误并开始安装:)

7- 安装大约需要 10-15 分钟,我注意到网络活动后台下载来自规范目的地(我猜它正在下载所需的依赖项)。

8- 正如我所说,大约 15 分钟后,Skype 安装完毕,我登录后进行了测试通话,没有任何问题 :)

所以,我的想法是: - Skype 在安装过程中需要有效的互联网连接。因此请确保这一点。 - 重新下载并将文件复制到您的桌面并从那里运行它(不知道为什么,但只是为了重复我的步骤) - 这是我下载的包:http://download.skype.com/linux/skype-ubuntu-precise_4.1.0.20-1_i386.deb

  • 如果上述步骤(像我所做的那样)不能解决您的问题,我猜测存在一些与依赖项相关的损坏或配置错误的包,这是导致问题的原因。

  • 尝试删除/清除我的其他答案中列出的所有依赖项,然后重新安装它们,或者先尝试安装 Skype,看看它是否适合您。

希望这能解决你的问题:)

相关内容