在进行发布升级后,我现在运行的是 ubuntu 12.04 LTS,如下所示
> lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 12.04 LTS
Release: 12.04
Codename: precise
但是,我发现 /etc/apt/sources.list 中除一个条目外,所有条目都被注释掉了。
问题:我可以安全地编辑这些内容,将下面显示的旧的“清晰”替换为“精确”吗?
## unixteam source list
# deb http://debian.yorku.ca/ubuntu/ precise main main/debian-installer restricted restricted/debian-installer # disabled on upgrade to precise
# deb-src http://debian.yorku.ca/ubuntu/ precise main restricted # disabled on upgrade to precise
# deb http://debian.yorku.ca/ubuntu/ lucid-updates main restricted # disabled on upgrade to precise
# deb-src http://debian.yorku.ca/ubuntu/ lucid-updates main restricted # disabled on upgrade to precise
# deb http://debian.yorku.ca/ubuntu/ precise universe # disabled on upgrade to precise
# deb-src http://debian.yorku.ca/ubuntu/ precise universe # disabled on upgrade to precise
# deb http://debian.yorku.ca/ubuntu/ precise multiverse # disabled on upgrade to precise
# deb-src http://debian.yorku.ca/ubuntu/ precise multiverse # disabled on upgrade to precise
# deb http://debian.yorku.ca/ubuntu lucid-security main restricted # disabled on upgrade to precise
# deb-src http://debian.yorku.ca/ubuntu lucid-security main restricted # disabled on upgrade to precise
# deb http://debian.yorku.ca/ubuntu lucid-security universe # disabled on upgrade to precise
# deb-src http://debian.yorku.ca/ubuntu lucid-security universe # disabled on upgrade to precise
# deb http://debian.yorku.ca/ubuntu lucid-security multiverse # disabled on upgrade to precise
# deb-src http://debian.yorku.ca/ubuntu lucid-security multiverse # disabled on upgrade to precise
# R sources
# see http://cran.us.r-project.org/bin/linux/ubuntu/ for details
# deb http://probability.ca/cran/bin/linux/ubuntu lucid/ # disabled on upgrade to precise
deb http://archive.ubuntu.com/ubuntu precise main multiverse universe
答案1
安装 Y PPA Manager 伙伴,它真的很直观:http://www.webupd8.org/2012/10/y-ppa-manager-0092-released-with-new.html
答案2
检查来源是否真的支持precise
我检查了这个来源[http://debian.yorku.ca/ubuntu/dists/] 并且有一个precise
文件夹,因此将源重命名为precise
应该没问题。不过对于已标记的源,lucid-security
您可能希望将其更改为precise-security
。