sources.list问题重新安装Ubuntu12.04放弃Ununtu14.10,开始安装Ubuntu14.10版本,无论怎么修改/etc/apt/sources.list,在安装软件时都找不到package
所以重新安装Ubuntu12.04 Precise 的32位Server版和32位Desktop版本。
1 下载安装Ubuntu12.04 Precise镜像
下载地址:http://releases.ubuntu.com/precise/
2 在vmware12 中安装Server版
安装见:
3 更新sources.list源,否则有些包无法定位
(1)注意1 先备份旧的的sources.list
$sudo cp /etc/apt/sourcs.list /etc/apt/sources_original.bak
(2)编辑添加国内比较快速稳定的源,注意添加的源中用的版本名要与Ubuntu版本要一致,否则灾难不断,Ubuntu12.04的版本名“Precise”
$sudo vi /etc/apt/sources.list
在文件靠前加入下面的一个或者几个源,保存退出。
(3)马上更新源
$sudo apt-get update
附推荐的“Precise”更新源:
<span class="preprocessor" style="color: rgb(153, 153, 153); font-weight: bold;">##网易源(广东电信:适合电信用户)</span> deb http:<span class="comment" style="color: rgb(153, 153, 136); font-style: italic;">//mirrors.163.com/ubuntu/ precise main restricted universe multiverse</span> deb http:<span class="comment" style="color: rgb(153, 153, 136); font-style: italic;">//mirrors.163.com/ubuntu/ precise-security main restricted universe multiverse</span> deb http:<span class="comment" style="color: rgb(153, 153, 136); font-style: italic;">//mirrors.163.com/ubuntu/ precise-updates main restricted universe multiverse</span> deb http:<span class="comment" style="color: rgb(153, 153, 136); font-style: italic;">//mirrors.163.com/ubuntu/ precise-proposed main restricted universe multiverse</span> deb http:<span class="comment" style="color: rgb(153, 153, 136); font-style: italic;">//mirrors.163.com/ubuntu/ precise-backports main restricted universe multiverse</span> deb-src http:<span class="comment" style="color: rgb(153, 153, 136); font-style: italic;">//mirrors.163.com/ubuntu/ precise main restricted universe multiverse</span> deb-src http:<span class="comment" style="color: rgb(153, 153, 136); font-style: italic;">//mirrors.163.com/ubuntu/ precise-security main restricted universe multiverse</span> deb-src http:<span class="comment" style="color: rgb(153, 153, 136); font-style: italic;">//mirrors.163.com/ubuntu/ precise-updates main restricted universe multiverse</span> deb-src http:<span class="comment" style="color: rgb(153, 153, 136); font-style: italic;">//mirrors.163.com/ubuntu/ precise-proposed main restricted universe multiverse</span> deb-src http:<span class="comment" style="color: rgb(153, 153, 136); font-style: italic;">//mirrors.163.com/ubuntu/ precise-backports main restricted universe multiverse</span> <span class="preprocessor" style="color: rgb(153, 153, 153); font-weight: bold;">##搜狐源(山东网通:适合网通用户)</span> deb http:<span class="comment" style="color: rgb(153, 153, 136); font-style: italic;">//mirrors.sohu.com/ubuntu/ precise main restricted universe multiverse</span> deb http:<span class="comment" style="color: rgb(153, 153, 136); font-style: italic;">//mirrors.sohu.com/ubuntu/ precise-security main restricted universe multiverse</span> deb http:<span class="comment" style="color: rgb(153, 153, 136); font-style: italic;">//mirrors.sohu.com/ubuntu/ precise-updates main restricted universe multiverse</span> deb http:<span class="comment" style="color: rgb(153, 153, 136); font-style: italic;">//mirrors.sohu.com/ubuntu/ precise-proposed main restricted universe multiverse</span> deb http:<span class="comment" style="color: rgb(153, 153, 136); font-style: italic;">//mirrors.sohu.com/ubuntu/ precise-backports main restricted universe multiverse</span> deb-src http:<span class="comment" style="color: rgb(153, 153, 136); font-style: italic;">//mirrors.sohu.com/ubuntu/ precise main restricted universe multiverse</span> deb-src http:<span class="comment" style="color: rgb(153, 153, 136); font-style: italic;">//mirrors.sohu.com/ubuntu/ precise-security main restricted universe multiverse</span> deb-src http:<span class="comment" style="color: rgb(153, 153, 136); font-style: italic;">//mirrors.sohu.com/ubuntu/ precise-updates main restricted universe multiverse</span> deb-src http:<span class="comment" style="color: rgb(153, 153, 136); font-style: italic;">//mirrors.sohu.com/ubuntu/ precise-proposed main restricted universe multiverse</span> deb-src http:<span class="comment" style="color: rgb(153, 153, 136); font-style: italic;">//mirrors.sohu.com/ubuntu/ precise-backports main restricted universe multiverse</span> <span class="preprocessor" style="color: rgb(153, 153, 153); font-weight: bold;">##台湾ubuntu官网源</span> deb http:<span class="comment" style="color: rgb(153, 153, 136); font-style: italic;">//tw.archive.ubuntu.com/ubuntu precise main restricted universe multiverse</span> deb http:<span class="comment" style="color: rgb(153, 153, 136); font-style: italic;">//tw.archive.ubuntu.com/ubuntu precise-security main restricted universe multiverse</span> deb http:<span class="comment" style="color: rgb(153, 153, 136); font-style: italic;">//tw.archive.ubuntu.com/ubuntu precise-updates main restricted universe multiverse</span> deb http:<span class="comment" style="color: rgb(153, 153, 136); font-style: italic;">//tw.archive.ubuntu.com/ubuntu precise-backports main restricted universe multiverse</span> deb http:<span class="comment" style="color: rgb(153, 153, 136); font-style: italic;">//tw.archive.ubuntu.com/ubuntu precise-proposed main restricted universe multiverse</span> deb-src http:<span class="comment" style="color: rgb(153, 153, 136); font-style: italic;">//tw.archive.ubuntu.com/ubuntu precise main restricted universe multiverse</span> deb-src http:<span class="comment" style="color: rgb(153, 153, 136); font-style: italic;">//tw.archive.ubuntu.com/ubuntu precise-security main restricted universe multiverse</span> deb-src http:<span class="comment" style="color: rgb(153, 153, 136); font-style: italic;">//tw.archive.ubuntu.com/ubuntu precise-updates main restricted universe multiverse</span> deb-src http:<span class="comment" style="color: rgb(153, 153, 136); font-style: italic;">//tw.archive.ubuntu.com/ubuntu precise-backports main restricted universe multiverse</span> deb-src http:<span class="comment" style="color: rgb(153, 153, 136); font-style: italic;">//tw.archive.ubuntu.com/ubuntu precise-proposed main restricted universe multiverse</span> <span class="preprocessor" style="color: rgb(153, 153, 153); font-weight: bold;">##教育网帝都的可以使用北理工的源</span> deb http:<span class="comment" style="color: rgb(153, 153, 136); font-style: italic;">//mirror.bit.edu.cn/ubuntu/ precise main restricted universe multiverse</span> deb http:<span class="comment" style="color: rgb(153, 153, 136); font-style: italic;">//mirror.bit.edu.cn/ubuntu/ precise-security main restricted universe multiverse</span> deb http:<span class="comment" style="color: rgb(153, 153, 136); font-style: italic;">//mirror.bit.edu.cn/ubuntu/ precise-updates main restricted universe multiverse</span> deb http:<span class="comment" style="color: rgb(153, 153, 136); font-style: italic;">//mirror.bit.edu.cn/ubuntu/ precise-backports main restricted universe multiverse</span> deb http:<span class="comment" style="color: rgb(153, 153, 136); font-style: italic;">//mirror.bit.edu.cn/ubuntu/ precise-proposed main restricted universe multiverse</span> deb-src http:<span class="comment" style="color: rgb(153, 153, 136); font-style: italic;">//mirror.bit.edu.cn/ubuntu/ precise main restricted universe multiverse</span> deb-src http:<span class="comment" style="color: rgb(153, 153, 136); font-style: italic;">//mirror.bit.edu.cn/ubuntu/ precise-security main restricted universe multiverse</span> deb-src http:<span class="comment" style="color: rgb(153, 153, 136); font-style: italic;">//mirror.bit.edu.cn/ubuntu/ precise-updates main restricted universe multiverse</span> deb-src http:<span class="comment" style="color: rgb(153, 153, 136); font-style: italic;">//mirror.bit.edu.cn/ubuntu/ precise-backports main restricted universe multiverse</span> deb-src http:<span class="comment" style="color: rgb(153, 153, 136); font-style: italic;">//mirror.bit.edu.cn/ubuntu/ precise-proposed main restricted universe multiverse</span>