Ubuntu 14.04 更换为阿里云源

#备份
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
#编辑
sudo vim /etc/apt/sources.list,清空后,加入以下内容:
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
#更新
sudo apt-get update

参考:
https://www.cnblogs.com/menkeyi/p/6703542.html

原文地址:https://www.cnblogs.com/sea-stream/p/10986243.html

时间: 2024-10-27 00:50:53

Ubuntu 14.04 更换为阿里云源的相关文章

Ubuntu 14.04 Server 上安装git源 mono 3.6.1 错误记录及成功步骤

看到ASP.NET vNext要支持Linux后,终于按捺不住折腾的心,决定先架个环境出来,只是实在没想到,因为相对熟悉点才选择的Ubuntu 14.04,会让过程会如此坎坷,有时呆看着屏幕上提示的种种error,真有点别人碰到的错都被我碰到了的荣幸,所以目标达成后,回头将这些错误回顾一遍,记录下来,以为将来鉴. 安装时主要参照的教程,是宇内流云写的<在Ubuntu操作系统上安装mono的具体方法>,简称文1:在排错过程中,还有参考园子里 逆水寒龙 的<Ubuntu Server(Ubu

Ubuntu 14.04 更换阿里云源

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/ trust

Ubuntu 14.04.4官方默认更新源sources.list

# deb cdrom:[Ubuntu 14.04.4 LTS _Trusty Tahr_ - Release amd64 (20160217.1)]/ trusty main restricted # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to # newer versions of the distribution. deb http://cn.archive.ubuntu.com/ubunt

[Linux] 纯净ubuntu系统仓库更换为阿里云的源

1.先apt-get update一下当前默认的源,更新完成后先把vim命令安装一下,再修改源仓库为阿里云,否则无法直接编辑文件 2.先添加阿里云的源,编辑文件/etc/apt/sources.list,编辑完再次更新一下 deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiversedeb http://mirrors.aliyun.com/ubuntu/ bionic-security main

centos下将系统预置yum源更换为阿里云源

参考:http://mirrors.aliyun.com/help/centos?spm=5176.bbsr150321.0.0.d6ykiD 步骤1:备份 步骤2:更新CentOS-Base.repo 到/etc/yum.repos.d/ 步骤3:运行yum makecache生成缓存 至此,阿里云yum源更换完成,希望对你有帮助~

Centos的yum源更换为阿里云源

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

Ubuntu 14.04.1 配置 Android 源码开发环境

# Ubuntu 14.04.1 1.更新源: sudo apt-get update 安装vim工具: sudo apt-get install vim 2.设置Android SDK Tools等环境 我的Android SDK解压在了/home/rengh/adt-bundle/目录下,So: 增加全局变量: sudo vim /etc/profile 添加以下内容: # Set Android SDK enviroment. ANDROID_HOME=/home/rengh/adt-bu

Ubuntu 14.04 安装mysql

Ubuntu 14.04 没有mysql5.7的源,需要连接外部资源下载安装. wget http://dev.mysql.com/get/mysql-apt-config_0.8.1-1_all.deb sudo dpkg -i mysql-apt-config_0.8.1-1_all.deb 按 Enter键 选择mysql-5.7 按Enter键 原文地址:https://www.cnblogs.com/jackson0714/p/11661950.html

在阿里云Ubuntu 14.04 Linux服务器上安装docker

参考 How To Install and Use Docker: Getting Started 这篇最靠谱的文档在阿里云 Ubuntu  14.04 服务器上成功安装 docker . 1)更新 apt 的安装包列表 sudo apt-get update 2)升级所有已安装的包 sudo apt-get -y upgrade 3)添加 apt 验证密钥 sudo apt-key adv --keyserver hkp://pgp.mit.edu:80 --recv-keys 58118E8