標籤: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 未滿足的依賴關係