更新ubuntu軟件源爲阿里雲腳本

#!/bin/bash
echo "# deb cdrom:[Ubuntu 14.10 _Utopic Unicorn_ - Release amd64 (20141022.1)]/ utopic main restricted

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://mirrors.aliyun.com/ubuntu/ utopic main restricted
deb-src http://mirrors.aliyun.com/ubuntu/ utopic main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://mirrors.aliyun.com/ubuntu/ utopic-updates main restricted
deb-src http://mirrors.aliyun.com/ubuntu/ utopic-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://mirrors.aliyun.com/ubuntu/ utopic universe
deb-src http://mirrors.aliyun.com/ubuntu/ utopic universe
deb http://mirrors.aliyun.com/ubuntu/ utopic-updates universe
deb-src http://mirrors.aliyun.com/ubuntu/ utopic-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://mirrors.aliyun.com/ubuntu/ utopic multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ utopic multiverse
deb http://mirrors.aliyun.com/ubuntu/ utopic-updates multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ utopic-updates multiverse

## 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://mirrors.aliyun.com/ubuntu/ utopic-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ utopic-backports main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ utopic-security main restricted
deb-src http://mirrors.aliyun.com/ubuntu/ utopic-security main restricted
deb http://mirrors.aliyun.com/ubuntu/ utopic-security universe
deb-src http://mirrors.aliyun.com/ubuntu/ utopic-security universe
deb http://mirrors.aliyun.com/ubuntu/ utopic-security multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ utopic-security 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 utopic partner
# deb-src http://archive.canonical.com/ubuntu utopic 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 utopic main
deb-src http://extras.ubuntu.com/ubuntu utopic main" |sudo tee /etc/apt/sources.list

时间: 2024-08-01 22:00:46

更新ubuntu軟件源爲阿里雲腳本的相关文章

修改Ubuntu的aptget源为阿里源的方法

1.复制原文件备份 sudo cp /etc/apt/source.list /etc/apt/source.list.bak 2.编辑源列表文件 sudo vim /etc/apt/source.list 3.将原来的列表删除,添加如下内容 deb http://mirrors.aliyun.com/ubuntu/ vivid main restricted universe multiversedeb http://mirrors.aliyun.com/ubuntu/ vivid-secur

更新CentOS 6.7源为阿里源

1.备份 mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup 2.下载新的CentOS-Base.repo 到/etc/yum.repos.d/ CentOS 5 wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-5.repo CentOS 6 wget -O /etc/yum.rep

最新阿里云软件源Ubuntu 18.04源

阿里云Ubuntu 18.04源 deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main rest

ubuntu 怎么更新?ubuntu更新命令及方法

ubuntu 怎么更新?ubuntu更新命令及方法 安装Ubuntu系统后,第一件事就是更新系统源.由于系统安装的默认源地址在英国,作为Ubuntu的主源,国内连接速度非常慢,所以我们要将它换成就近的快速源. 网上有些人说CN99是国内最快的源,但不同的网络状况连接以下源的速度不同, 所以cn99并不一定是最快的源, 建议在添加前手动验证一下源的连接速度(ping下就行),比如说北京网通ADSL用户连接cn99就非常慢,而ftp.sjtu.edu.cn则相对较快,选择最快的源可以节省大批下载时间

嵌入式linux开发环境搭建(五)——Ubuntu第三方软件仓库源

嵌入式linux开发环境搭建(五)--Ubuntu第三方软件仓库源 一般来说ubuntu官方的软件仓库由于服务器在国外,下载更新速度较慢,需要将软件仓库更换为国内镜像点. 1.修改源配置文件 先备份原来的配置文件 mv /etc/apt/sources.list /etc/apt/sources.list.bak vim /etc/apt/sources.list 将国内的Ubuntu镜像点添加到配置文件 Ubuntu 163镜像点: deb http://mirrors.163.com/ubu

Ubuntu 官方推荐源列表

如何使用Ubuntu Night Ubuntu Night(  http://ubuntu9.com ) 的Top mirror功能根据当前的网络情况和源健康状况不断地进行更新当前可用的源的信息,包括了Top fast/near/stable mirror,可以找到当前网络上所有可用的Ubuntu 镜像(即源),并按照平均下载速度和地理位置进行排名.而且,当你找到最适合你的源之后,还可以直接下载它的sources.list 文件,并可直接将它copy到/etc/apt/sources.list或

ubuntu14.04 LTS 更新国内网易163源

2015/10/7 更改ubuntu的默认源是linux学习中必须掌握的基础技能.在此记录,以作参考. 在ubuntu14.04 LTS默认使用的是国外源,由于网络的原因,使用apt-get安装包时异常缓慢,为了加快速度,可以将源改为国内源,以网易163源为例: 如图1 所示,在搜索框里输入update,找到更新工具并点击,就是红箭头所指的那个, 图 1 之后在弹出的对话框中的Ubuntu Software选项下找到Source code,点击下拉框,选择Other...: 图 2 在Downl

ubuntu更换apt-get源&apt命令使用手册

ubuntu更换apt-get源 # cp /etc/apt/sources.list /etc/apt/sources.list.bak # vim /etc/apt/sources.list deb http://mirrors.163.com/ubuntu/ precise main restricted deb-src http://mirrors.163.com/ubuntu/ precise main restricted deb http://mirrors.163.com/ubu

ubuntu制作本地源

背景 平时apt-get install安装软件时,下载的deb文件都会存放在/var/cache/apt/archives/下,为了今后重装或给别人用,特别是没有网络时,这些deb文件实际上是可以派上用途的,也就是可以用这些deb制作成本地源.这种方法还有一个应用场景: 先在有网络的服务器上面进行apt-get install安装 然后制作本地源 将本地源拷贝到没有网络的服务器上,然后在那台机器上设定sourcelist指向这个本地源,此时在那台没有网络的服务器上也可以执行apt-get in