不同版本,只需要将你执行
lsb_release -a
标准输出中codename替换下面的precise即可#教育网-中国科技大学 deb http://debian.ustc.edu.cn/ubuntu/ precise main restricted universe multiverse deb http://debian.ustc.edu.cn/ubuntu/ precise-backports restricted universe multiverse deb http://debian.ustc.edu.cn/ubuntu/ precise-proposed main restricted universe multiverse deb http://debian.ustc.edu.cn/ubuntu/ precise-security main restricted universe multiverse deb http://debian.ustc.edu.cn/ubuntu/ precise-updates main restricted universe multiverse deb-src http://debian.ustc.edu.cn/ubuntu/ precise main restricted universe multiverse deb-src http://debian.ustc.edu.cn/ubuntu/ precise-backports main restricted universe multiverse deb-src http://debian.ustc.edu.cn/ubuntu/ precise-proposed main restricted universe multiverse deb-src http://debian.ustc.edu.cn/ubuntu/ precise-security main restricted universe multiverse deb-src http://debian.ustc.edu.cn/ubuntu/ precise-updates main restricted universe multiverse #公网-163,备胎,不在学校时取消下面注释同时注释上面 # deb http://mirrors.163.com/ubuntu/ precise main restricted universe multiverse # deb http://mirrors.163.com/ubuntu/ precise-security main restricted universe multiverse # deb http://mirrors.163.com/ubuntu/ precise-updates main restricted universe multiverse # deb http://mirrors.163.com/ubuntu/ precise-proposed main restricted universe multiverse # deb http://mirrors.163.com/ubuntu/ precise-backports main restricted universe multiverse # deb-src http://mirrors.163.com/ubuntu/ precise main restricted universe multiverse # deb-src http://mirrors.163.com/ubuntu/ precise-security main restricted universe multiverse # deb-src http://mirrors.163.com/ubuntu/ precise-updates main restricted universe multiverse # deb-src http://mirrors.163.com/ubuntu/ precise-proposed main restricted universe multiverse # deb-src http://mirrors.163.com/ubuntu/ precise-backports main restricted universe multiverse
我的常用软件
sudo apt-get install ubuntu-restricted-extras sudo apt-get install vlc sudo apt-get install chromium-browser sudo apt-get install vim-gtk sudo apt-get install ssh sudo apt-get install gnome-shell sudo apt-get install wireshark sudo apt-get install putty sudo apt-get install filezilla sudo apt-get install virtualbox sudo apt-get install g++ sudo apt-get install gnome-tweak-tool sudo apt-get install nasm sudo apt-get install eclipse sudo apt-get install ibus-googlepinyin sudo apt-get install codeblocks sudo apt-get install chmsee