sudo apt-get install git-core gnupg sun-java5-jdk flex bison gperf libsdl-dev libesd0-dev libwxgtk2.6-dev build-essential zip curl libncurses5-dev zlib1g-dev
[sudo] password for nelsonchung:
正在讀取套件清單... 完成
正在重建相依關係
正在讀取狀態資料... 完成
gnupg 已經是最新版本了。
E: 無法找到套件 sun-java5-jdk
參考此篇文章
需要手動增加軟體來源
系統->管理->軟體來源
點下方"加入"
分兩次將下列兩行加入
deb http://us.archive.ubuntu.com/ubuntu/ jaunty multiverse
deb http://us.archive.ubuntu.com/ubuntu/ jaunty-updates multiverse
sudo apt-get install git-core gnupg sun-java5-jdk flex bison gperf libsdl-dev libesd0-dev libwxgtk2.6-dev build-essential zip curl libncurses5-dev zlib1g-dev
正在讀取套件清單... 完成
正在重建相依關係
正在讀取狀態資料... 完成
gnupg 已經是最新版本了。
注意,選擇了以 libsdl1.2-dev 替代 libsdl-dev
zip 已經是最新版本了。
下列的額外套件將被安裝:
dpkg-dev fakeroot g++ g++-4.4 gsfonts-x11 java-common libaa1-dev
libasound2-dev libaudio-dev libaudio2 libaudiofile-dev libavahi-client-dev
libavahi-common-dev libcaca-dev libdbus-1-dev libdigest-sha1-perl
libdirectfb-dev libdirectfb-extra libdrm-dev liberror-perl libfreetype6-dev
libgl1-mesa-dev libglib2.0-dev libglu1-mesa-dev libice-dev libjpeg62-dev
libpng12-dev libpthread-stubs0 libpthread-stubs0-dev libpulse-dev
libsdl1.2-dev libslang2-dev libsm-dev libstdc++6-4.4-dev libsysfs-dev
libwxbase2.6-0 libwxbase2.6-dev libwxgtk2.6-0 libx11-dev libxau-dev
libxcb1-dev libxdmcp-dev libxext-dev libxt-dev m4 mesa-common-dev odbcinst
odbcinst1debian1 patch sun-java5-bin sun-java5-demo sun-java5-jre unixodbc
wx2.6-headers x11proto-core-dev x11proto-input-dev x11proto-kb-dev
x11proto-xext-dev xtrans-dev xz-utils
建議套件:
bison-doc debian-keyring debian-maintainers g++-multilib g++-4.4-multilib
gcc-4.4-doc libstdc++6-4.4-dbg git-doc git-arch git-cvs git-svn git-email
git-daemon-run git-gui gitk gitweb default-jre equivs libasound2-doc nas
libglib2.0-doc python-subunit libstdc++6-4.4-doc wx-common wx2.6-doc gettext
libgnomeprintui2.2-0 libstdc++-dev xlibmesa-gl-dev libgl-dev
xlibmesa-glu-dev libglu-dev diffutils-doc sun-java5-doc sun-java5-source
sun-java5-plugin ia32-sun-java5-plugin sun-java5-fonts ttf-kochi-gothic
ttf-sazanami-gothic ttf-kochi-mincho ttf-sazanami-mincho libmyodbc
odbc-postgresql tdsodbc unixodbc-bin
下列【新】套件將會被安裝:
bison build-essential curl dpkg-dev fakeroot flex g++ g++-4.4 git-core gperf
gsfonts-x11 java-common libaa1-dev libasound2-dev libaudio-dev libaudio2
libaudiofile-dev libavahi-client-dev libavahi-common-dev libcaca-dev
libdbus-1-dev libdigest-sha1-perl libdirectfb-dev libdirectfb-extra
libdrm-dev liberror-perl libesd0-dev libfreetype6-dev libgl1-mesa-dev
libglib2.0-dev libglu1-mesa-dev libice-dev libjpeg62-dev libncurses5-dev
libpng12-dev libpthread-stubs0 libpthread-stubs0-dev libpulse-dev
libsdl1.2-dev libslang2-dev libsm-dev libstdc++6-4.4-dev libsysfs-dev
libwxbase2.6-0 libwxbase2.6-dev libwxgtk2.6-0 libwxgtk2.6-dev libx11-dev
libxau-dev libxcb1-dev libxdmcp-dev libxext-dev libxt-dev m4 mesa-common-dev
odbcinst odbcinst1debian1 patch sun-java5-bin sun-java5-demo sun-java5-jdk
sun-java5-jre unixodbc wx2.6-headers x11proto-core-dev x11proto-input-dev
x11proto-kb-dev x11proto-xext-dev xtrans-dev xz-utils zlib1g-dev
升級 0 個,新安裝 71 個,移除 0 個,有 6 個未被升級。
需要下載 80.4MB 的套件檔。
此操作完成之後,會多佔用 223MB 的磁碟空間。
是否繼續進行 [Y/n]?
按下y進行安裝
正在讀取套件清單... 完成
正在重建相依關係
正在讀取狀態資料... 完成
gnupg 已經是最新版本了。
注意,選擇了以 libsdl1.2-dev 替代 libsdl-dev
zip 已經是最新版本了。
下列的額外套件將被安裝:
dpkg-dev fakeroot g++ g++-4.4 gsfonts-x11 java-common libaa1-dev
libasound2-dev libaudio-dev libaudio2 libaudiofile-dev libavahi-client-dev
libavahi-common-dev libcaca-dev libdbus-1-dev libdigest-sha1-perl
libdirectfb-dev libdirectfb-extra libdrm-dev liberror-perl libfreetype6-dev
libgl1-mesa-dev libglib2.0-dev libglu1-mesa-dev libice-dev libjpeg62-dev
libpng12-dev libpthread-stubs0 libpthread-stubs0-dev libpulse-dev
libsdl1.2-dev libslang2-dev libsm-dev libstdc++6-4.4-dev libsysfs-dev
libwxbase2.6-0 libwxbase2.6-dev libwxgtk2.6-0 libx11-dev libxau-dev
libxcb1-dev libxdmcp-dev libxext-dev libxt-dev m4 mesa-common-dev odbcinst
odbcinst1debian1 patch sun-java5-bin sun-java5-demo sun-java5-jre unixodbc
wx2.6-headers x11proto-core-dev x11proto-input-dev x11proto-kb-dev
x11proto-xext-dev xtrans-dev xz-utils
建議套件:
bison-doc debian-keyring debian-maintainers g++-multilib g++-4.4-multilib
gcc-4.4-doc libstdc++6-4.4-dbg git-doc git-arch git-cvs git-svn git-email
git-daemon-run git-gui gitk gitweb default-jre equivs libasound2-doc nas
libglib2.0-doc python-subunit libstdc++6-4.4-doc wx-common wx2.6-doc gettext
libgnomeprintui2.2-0 libstdc++-dev xlibmesa-gl-dev libgl-dev
xlibmesa-glu-dev libglu-dev diffutils-doc sun-java5-doc sun-java5-source
sun-java5-plugin ia32-sun-java5-plugin sun-java5-fonts ttf-kochi-gothic
ttf-sazanami-gothic ttf-kochi-mincho ttf-sazanami-mincho libmyodbc
odbc-postgresql tdsodbc unixodbc-bin
下列【新】套件將會被安裝:
bison build-essential curl dpkg-dev fakeroot flex g++ g++-4.4 git-core gperf
gsfonts-x11 java-common libaa1-dev libasound2-dev libaudio-dev libaudio2
libaudiofile-dev libavahi-client-dev libavahi-common-dev libcaca-dev
libdbus-1-dev libdigest-sha1-perl libdirectfb-dev libdirectfb-extra
libdrm-dev liberror-perl libesd0-dev libfreetype6-dev libgl1-mesa-dev
libglib2.0-dev libglu1-mesa-dev libice-dev libjpeg62-dev libncurses5-dev
libpng12-dev libpthread-stubs0 libpthread-stubs0-dev libpulse-dev
libsdl1.2-dev libslang2-dev libsm-dev libstdc++6-4.4-dev libsysfs-dev
libwxbase2.6-0 libwxbase2.6-dev libwxgtk2.6-0 libwxgtk2.6-dev libx11-dev
libxau-dev libxcb1-dev libxdmcp-dev libxext-dev libxt-dev m4 mesa-common-dev
odbcinst odbcinst1debian1 patch sun-java5-bin sun-java5-demo sun-java5-jdk
sun-java5-jre unixodbc wx2.6-headers x11proto-core-dev x11proto-input-dev
x11proto-kb-dev x11proto-xext-dev xtrans-dev xz-utils zlib1g-dev
升級 0 個,新安裝 71 個,移除 0 個,有 6 個未被升級。
需要下載 80.4MB 的套件檔。
此操作完成之後,會多佔用 223MB 的磁碟空間。
是否繼續進行 [Y/n]?
按下y進行安裝
Reference:
http://steve-on-sakai.blogspot.com/2010/05/how-to-install-sun-java-15-on-ubuntu.html
http://source.android.com/source/download.html
沒有留言:
張貼留言