1、更新源
# 用如下两句命令修改更新软件源列表
# sudo gedit /etc/apt/sources.list
# sudo apt-get update – 列举本地更新
# sudo apt-get upgrade – 安装可用更新
# sudo apt-get install 软件包名 – 安装指定软件包
# sudo apt-get remove 软件包名 – 删除指定软件包
#163源(推荐,速度很快):
deb http://mirrors.163.com/ubuntu/ maverick main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ maverick-security main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ maverick-updates main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ maverick-proposed main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ maverick-backports main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ maverick main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ maverick-security main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ maverick-updates main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ maverick-proposed main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ maverick-backports main restricted universe multiverse
# 台湾的官方源速度也相当不错,有时甚至快于内地的:
deb http://tw.archive.ubuntu.com/ubuntu maverick main restricted universe multiverse
deb http://tw.archive.ubuntu.com/ubuntu maverick-security main restricted universe multiverse
deb http://tw.archive.ubuntu.com/ubuntu maverick-updates main restricted universe multiverse
deb http://tw.archive.ubuntu.com/ubuntu maverick-backports main restricted universe multiverse
deb http://tw.archive.ubuntu.com/ubuntu maverick-proposed main restricted universe multiverse
deb-src http://tw.archive.ubuntu.com/ubuntu maverick main restricted universe multiverse
deb-src http://tw.archive.ubuntu.com/ubuntu maverick-security main restricted universe multiverse
deb-src http://tw.archive.ubuntu.com/ubuntu maverick-updates main restricted universe multiverse
deb-src http://tw.archive.ubuntu.com/ubuntu maverick-backports main restricted universe multiverse
deb-src http://tw.archive.ubuntu.com/ubuntu maverick-proposed main restricted universe multiverse
# Archive.ubuntu.com更新服务器(欧洲,此为官方源,电信网通用户使用):
deb http://archive.ubuntu.com/ubuntu/ maverick main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ maverick-security main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ maverick-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ maverick-proposed main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ maverick-backports main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ maverick main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ maverick-security main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ maverick-updates main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ maverick-proposed main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ maverick-backports main restricted universe multiverse
# 系统默认更新源 (注意顺序,原样拷贝):
# deb cdrom:[Ubuntu 10.10 _Maverick Meerkat_ - Release i386 (20101007)]/ maverick 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/ maverick main restricted
deb-src http://cn.archive.ubuntu.com/ubuntu/ maverick main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://cn.archive.ubuntu.com/ubuntu/ maverick-updates main restricted
deb-src http://cn.archive.ubuntu.com/ubuntu/ maverick-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/ maverick universe
deb-src http://cn.archive.ubuntu.com/ubuntu/ maverick universe
deb http://cn.archive.ubuntu.com/ubuntu/ maverick-updates universe
deb-src http://cn.archive.ubuntu.com/ubuntu/ maverick-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/ maverick multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu/ maverick multiverse
deb http://cn.archive.ubuntu.com/ubuntu/ maverick-updates multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu/ maverick-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/ maverick-backports main restricted universe multiverse
# deb-src http://cn.archive.ubuntu.com/ubuntu/ maverick-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 maverick partner
# deb-src http://archive.canonical.com/ubuntu maverick partner
## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
deb http://extras.ubuntu.com/ubuntu maverick main
deb-src http://extras.ubuntu.com/ubuntu maverick main
deb http://security.ubuntu.com/ubuntu maverick-security main restricted
deb-src http://security.ubuntu.com/ubuntu maverick-security main restricted
deb http://security.ubuntu.com/ubuntu maverick-security universe
deb-src http://security.ubuntu.com/ubuntu maverick-security universe
deb http://security.ubuntu.com/ubuntu maverick-security multiverse
deb-src http://security.ubuntu.com/ubuntu maverick-security multiverse
##/
# LupaWorld更新服务器(浙江省杭州市双线服务器):
deb http://mirror.lupaworld.com/ubuntu maverick main restricted universe multiverse
deb http://mirror.lupaworld.com/ubuntu maverick-security main restricted universe multiverse
deb http://mirror.lupaworld.com/ubuntu maverick-updates main restricted universe multiverse
deb http://mirror.lupaworld.com/ubuntu maverick-backports main restricted universe multiverse
deb http://mirror.lupaworld.com/ubuntu maverick-proposed main restricted universe multiverse
deb-src http://mirror.lupaworld.com/ubuntu maverick main restricted universe multiverse
deb-src http://mirror.lupaworld.com/ubuntu maverick-security main restricted universe multiverse
deb-src http://mirror.lupaworld.com/ubuntu maverick-updates main restricted universe multiverse
deb-src http://mirror.lupaworld.com/ubuntu maverick-backports main restricted universe multiverse
deb-src http://mirror.lupaworld.com/ubuntu maverick-proposed main restricted universe multiverse
# Ubuntu官方提供的其他软件(第三方闭源软件等):
deb http://archive.canonical.com/ubuntu/ maverick partner
# clamav
deb http://ppa.launchpad.net/ubuntu-clamav/ppa/ubuntu maverick main
##/
## Major bug fix updates produced after the final release of the
## distribution.
deb http://old-releases.ubuntu.com/ubuntu/ maverick main restricted
deb-src http://old-releases.ubuntu.com/ubuntu/ maverick main restricted
deb http://old-releases.ubuntu.com/ubuntu/ maverick-updates main restricted
deb-src http://old-releases.ubuntu.com/ubuntu/ maverick-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://old-releases.ubuntu.com/ubuntu/ maverick universe
deb-src http://old-releases.ubuntu.com/ubuntu/ maverick universe
deb http://old-releases.ubuntu.com/ubuntu/ maverick-updates universe
deb-src http://old-releases.ubuntu.com/ubuntu/ maverick-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://old-releases.ubuntu.com/ubuntu/ maverick multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ maverick multiverse
deb http://old-releases.ubuntu.com/ubuntu/ maverick-updates multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ maverick-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://us.old-releases.ubuntu.com/ubuntu/ maverick-backports main restricted universe multiverse
# deb-src http://us.old-releases.ubuntu.com/ubuntu/ maverick-backports main restricted universe multiverse
#remastersys for backup installed system
deb http://www.remastersys.com/ubuntu maverick main
参考网站
http://www.360doc.com/resaveArt.aspx?articleid=106934129&isreg=1
http://blog.sina.com.cn/s/blog_4c451e0e0100p3it.html
http://blog.csdn.net/sunsea1026/article/details/8652983
2、 sudo apt-get update
3、sudo apt-get install git-core gnupg flex bison gperf build-essential \
zip curl zlib1g-dev libc6-dev lib32ncurses5-dev ia32-libs \
x11proto-core-dev libx11-dev lib32readline5-dev lib32z-dev \
libgl1-mesa-dev g++-multilib mingw32 tofrodos python-markdown \
libxml2-utils xsltproc
4、sudo ln -s /usr/lib32/mesa/libGL.so.1 /usr/lib32/mesa/libGL.so