在 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 install 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 install

來源: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/我被自動重定向到 Skype for Linux

3-我選擇了Ubuntu 12.04 多架構並點擊打開而不是保存。所以下載後直接執行。

4-初次運行時,它打開了 Ubuntu 軟體中心,並給出了與您相同的錯誤(依賴錯誤libasound2

5-我剛剛打開下載的檔案位置tmp並將文件複製到我的桌面並再次執行。

6-它不再出現錯誤並且剛開始安裝:)

7-安裝大約需要 10-15 分鐘,我注意到有網路活動後台下載來自規範目的地(我猜它正在下載所需的依賴項)。

8- 正如我所說,大約 15 分鐘後,Skype 安裝完畢,我登入它並進行了測試通話,沒有任何問題:)

所以;我認為是: - Skype 在安裝過程中需要有效的網路連線。所以請確保這一點。 - 重新下載並將文件複製到您的桌面,然後從那裡運行它(不知道為什麼,只是為了重現我的步驟) - 這是我下載的包:http://download.skype.com/linux/skype-ubuntu-precise_4.1.0.20-1_i386.deb

  • 如果像我這樣的上述步驟沒有解決您的問題,我猜想存在一些與依賴項相關的損壞或配置錯誤的包,這就是您的問題的原因。

  • 嘗試刪除/清除我的其他答案中列出的所有依賴項,然後再次安裝它們,或嘗試先安裝 Skype,看看它是否適合您。

希望這能解決您的問題:)

相關內容