ubuntu 源

1、首先备份Ubuntu 11.04源列表

    sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup (备份下当前的源列表,有备无患嘛)

2、修改更新源

    sudo gedit /etc/apt/sources.list (打开Ubuntu 11.04源列表文件)


3、改为交大的源

#上海交通大学

deb http://ftp.sjtu.edu.cn/ubuntu/ natty main multiverse restricted universe
deb http://ftp.sjtu.edu.cn/ubuntu/ natty-backports main multiverse restricted universe
deb http://ftp.sjtu.edu.cn/ubuntu/ natty-proposed main multiverse restricted universe
deb http://ftp.sjtu.edu.cn/ubuntu/ natty-security main multiverse restricted universe
deb http://ftp.sjtu.edu.cn/ubuntu/ natty-updates main multiverse restricted universe
deb http://ftp.sjtu.edu.cn/ubuntu-cn/ natty main multiverse restricted universe
deb-src http://ftp.sjtu.edu.cn/ubuntu/ natty main multiverse restricted universe
deb-src http://ftp.sjtu.edu.cn/ubuntu/ natty-backports main multiverse restricted universe
deb-src http://ftp.sjtu.edu.cn/ubuntu/ natty-proposed main multiverse restricted universe
deb-src http://ftp.sjtu.edu.cn/ubuntu/ natty-security main multiverse restricted universe
deb-src http://ftp.sjtu.edu.cn/ubuntu/ natty-updates main multiverse restricted universe

4、通知ubuntu启动新的更新源

sudo apt-get update




Ubuntu的软件是一个包含软件包的在线仓库,用户可以从中下载和安装软件包。下面是Ubuntu代码的分析: 1. Ubuntu软件的格式如下: ``` deb http://archive.ubuntu.com/ubuntu/ bionic main restricted universe multiverse deb-src http://archive.ubuntu.com/ubuntu/ bionic main restricted universe multiverse deb http://archive.ubuntu.com/ubuntu/ bionic-updates main restricted universe multiverse deb-src http://archive.ubuntu.com/ubuntu/ bionic-updates main restricted universe multiverse deb http://archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse deb-src http://archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse deb http://security.ubuntu.com/ubuntu/ bionic-security main restricted universe multiverse deb-src http://security.ubuntu.com/ubuntu/ bionic-security main restricted universe multiverse ``` 其中,每一行都代表一个软件,deb表示二进制软件包,deb-src表示代码软件包。后面的URL是软件的地址,bionic是Ubuntu 18.04的代号,main、restricted、universe和multiverse是软件包的分类。 2. Ubuntu的发行版本代号 Ubuntu的发行版本代号是根据不同的Ubuntu版本有各自的代号,比如:14.04用trusty,16.04用xenial,18.04用bionic等。这些代号通常是由一个形容词和一个动物组成,比如bionic beaver(18.04)。 3. Ubuntu软件的更新 Ubuntu软件会定期更新,以提供最新的软件包和安全更新。用户可以使用apt-get update命令更新软件,然后使用apt-get upgrade命令升级软件包。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值