Android error: install libsdl-dev 未滿足的依賴關係

來源:互聯網
上載者:User

標籤:sources   apt源   android   更換   

Android編譯時間需要用到 libsdl-dev 庫:

安裝時遇到錯誤:

sudo apt-get install libsdl-dev正在讀取軟體包列表... 完成正在分析軟體包的相依樹狀結構       正在讀取狀態資訊... 完成       注意,選取 libsdl1.2-dev 而非 libsdl-dev有一些軟體包無法被安裝。如果您用的是 unstable 發行版,這也許是因為系統無法達到您要求的狀態造成的。該版本中可能會有一些您需要的軟體包尚未被建立或是它們已被從新到(Incoming)目錄移出。下列資訊可能會對解決問題有所協助:下列軟體包有未滿足的依賴關係:  libsdl1.2-dev: 依賴: libsdl1.2debian (= 1.2.14-4ubuntu1) 但是 1.2.14-4ubuntu1.1 正要被安裝                 依賴: libx11-dev 但是它將不會被安裝                 依賴: libglu1-mesa-dev 但是它將不會被安裝                 依賴: libpulse-dev 但是它將不會被安裝                 依賴: libdirectfb-dev (>= 0.9.22) 但是它將不會被安裝                 依賴: libaa1-dev 但是它將不會被安裝                 依賴: libcaca-dev 但是它將不會被安裝                 依賴: libxt-dev 但是它將不會被安裝                 依賴: libxext-dev 但是它將不會被安裝E: 破損的軟體包
更換源解決問題:

開啟 /etc/apt/下的sources.list:

用以下內容替換原來舊的內容 (當然如果必要,需要備份原來內容):

#deb cdrom:[Ubuntu 10.04.3 LTS _Lucid Lynx_ - Release i386 (20110720.1)]/ lucid main restricted# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to# newer versions of the distribution.deb http://cn.archive.ubuntu.com/ubuntu/ lucid main restricteddeb-src http://cn.archive.ubuntu.com/ubuntu/ lucid main restricted## Major bug fix updates produced after the final release of the## distribution.deb http://cn.archive.ubuntu.com/ubuntu/ lucid-updates main restricteddeb-src http://cn.archive.ubuntu.com/ubuntu/ lucid-updates main restricted## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu## team. Also, please note that software in universe WILL NOT receive any## review or updates from the Ubuntu security team.deb http://cn.archive.ubuntu.com/ubuntu/ lucid universedeb-src http://cn.archive.ubuntu.com/ubuntu/ lucid universedeb http://cn.archive.ubuntu.com/ubuntu/ lucid-updates universedeb-src http://cn.archive.ubuntu.com/ubuntu/ lucid-updates universe## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu ## team, and may not be under a free licence. Please satisfy yourself as to ## your rights to use the software. Also, please note that software in ## multiverse WILL NOT receive any review or updates from the Ubuntu## security team.deb http://cn.archive.ubuntu.com/ubuntu/ lucid multiversedeb-src http://cn.archive.ubuntu.com/ubuntu/ lucid multiversedeb http://cn.archive.ubuntu.com/ubuntu/ lucid-updates multiversedeb-src http://cn.archive.ubuntu.com/ubuntu/ lucid-updates multiverse## Uncomment the following two lines to add software from the 'backports'## repository.## N.B. software from this repository may not have been tested as## extensively as that contained in the main release, although it includes## newer versions of some applications which may provide useful features.## Also, please note that software in backports WILL NOT receive any review## or updates from the Ubuntu security team.# deb http://cn.archive.ubuntu.com/ubuntu/ lucid-backports main restricted universe multiverse# deb-src http://cn.archive.ubuntu.com/ubuntu/ lucid-backports main restricted universe multiverse## Uncomment the following two lines to add software from Canonical's## 'partner' repository.## This software is not part of Ubuntu, but is offered by Canonical and the## respective vendors as a service to Ubuntu users.# deb http://archive.canonical.com/ubuntu lucid partner# deb-src http://archive.canonical.com/ubuntu lucid partnerdeb http://security.ubuntu.com/ubuntu lucid-security main restricteddeb-src http://security.ubuntu.com/ubuntu lucid-security main restricteddeb http://security.ubuntu.com/ubuntu lucid-security universedeb-src http://security.ubuntu.com/ubuntu lucid-security universedeb http://security.ubuntu.com/ubuntu lucid-security multiversedeb-src http://security.ubuntu.com/ubuntu lucid-security multiverse
儲存後執行:

sudo apt-get update
sudo apt-get install libsdl-dev

Android error: install libsdl-dev 未滿足的依賴關係

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.