2016-08-21 89 views
0

我嘗試的R中的Ubuntu 14.04 64位安裝gdtools,但[R工作室compained是cUbuntu的安裝libcairo-dev的相關性錯誤

onfiguration failed because cairo was not found. Try installing: 
* deb: libcairo-dev (Debian, Ubuntu) 

運行sudo apt-get install libcairo-dev後,我得到了以下錯誤

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: 
    libcairo2-dev : Depends: libcairo2 (= 1.13.0~20140204-0ubuntu1) but 1.13.0~20140204-0ubuntu1.1 is to be installed 
        Depends: libcairo-gobject2 (= 1.13.0~20140204-0ubuntu1) but 1.13.0~20140204-0ubuntu1.1 is to be installed 
        Depends: libfontconfig1-dev (>= 2.2.95) but it is not going to be installed 
        Depends: libfreetype6-dev (>= 2.1.10) but it is not going to be installed 
        Depends: libxrender-dev (>= 0.6) but it is not going to be installed 
        Depends: libpixman-1-dev (>= 0.22.0) but it is not going to be installed 
        Depends: libxext-dev but it is not going to be installed 
        Depends: libglib2.0-dev but it is not going to be installed 
    E: Unable to correct problems, you have held broken packages. 

那麼我該怎麼做才能解決這個問題或找出繼續前進的方向? 感謝您對混合ppa的建議,但我在哪裏可以找到混合PPA並將其刪除?

回答

0

我終於解決此問題

首先我清洗我的TeamViewer 「sudo aptitude purge teamviewer:101

因爲libcairo2-dev的依賴於libcairo2,和我的libcairo2版本可以通過

的apt-緩存策略被發現libcairo2,我發現它是*** 1.1而不是*** 1,所以我將它降級爲「apt-get install libcairo2=*****1」,現在它可以工作。

現在gdtools可以安裝在R!