ubuntu安装源更改为aliyun
来源:互联网 发布:如何在淘宝上搜高仿 编辑:程序博客网 时间:2024/05/23 19:16
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak #备份
sudo vim /etc/apt/sources.list #修改
sudo apt-get update #更新列表
deb http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse
再执行apt-get install openssh-client就可以了。
如果是centos呢?
cd /etc/yum.repos.d/
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo
yum makecache
sudo vim /etc/apt/sources.list #修改
sudo apt-get update #更新列表
deb http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse
再执行apt-get install openssh-client就可以了。
如果是centos呢?
cd /etc/yum.repos.d/
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo
yum makecache
0 0
- ubuntu安装源更改为aliyun
- RHEL6.5 7.2更改为阿里云(aliyun)CentOS6 163 CentOS7的yum源
- CentOS修改yum源为Aliyun
- 虚拟机安装ubuntu不能更改系统语言为中文解决方法
- aliyun ubuntu install jdk
- ubuntu更改java为openjdk
- aliyun 安装 fileinfo
- aliyun 安装图形
- ubuntu系统默认源更改为阿里源
- ubuntu系统更改默认软件源为网易软件源
- Ubuntu上安装的tiny vim 改变为 full-vim的安装方法及错误更改
- 刚安装的ubuntu系统如何更改输入法为中文输入法
- 在Ubuntu系统上安装最新版本火狐浏览器,并更改语言为中文
- Mysql安装时提示:Err http://mirrors.aliyun.com/ubuntu 404 Not Found
- ubuntu操作系统安装(三) 更改软件源
- ubuntu操作系统安装(三) 更改软件源
- Aliyun Linux 安装 Apache 步骤
- aliyun centos下安装phpmyadmin
- Android自定义随手势滑动的滚动条实现——HorizontalScrollCursor
- 局部静态化组件
- m3u8-segmenter编译问题,原因出在ffmpeg编译选项不正确!
- Alcatraz 使用
- 编译和安装openssl时出错,POD document had syntax errors
- ubuntu安装源更改为aliyun
- Caffe学习系列(五):其它常用层及参数
- 001学习之前必读
- JAVA 自定义的base64编解码
- Android 定时任务的多种实现方式
- 十大可以代替伟哥的男性食物
- 『eclipse使用技巧之一』当鼠标放到类或方法上,显示或隐藏类或方法的介绍
- nginx支持flv点播回放
- UVA201-Squares