惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

阮一峰的网络日志
阮一峰的网络日志
Blog — PlanetScale
Blog — PlanetScale
B
Blog RSS Feed
L
LangChain Blog
Jina AI
Jina AI
爱范儿
爱范儿
C
Check Point Blog
云风的 BLOG
云风的 BLOG
Last Week in AI
Last Week in AI
月光博客
月光博客
GbyAI
GbyAI
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Stack Overflow Blog
Stack Overflow Blog
V
V2EX
A
About on SuperTechFans
有赞技术团队
有赞技术团队
Microsoft Azure Blog
Microsoft Azure Blog
The GitHub Blog
The GitHub Blog
博客园 - Franky
Apple Machine Learning Research
Apple Machine Learning Research
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Google DeepMind News
Google DeepMind News
博客园 - 三生石上(FineUI控件)
S
SegmentFault 最新的问题

博客园 - 刀哥道

python 占位符 %s Format odoo 中字段属性对象Field 安装CentOS7.7图解 docker的volumes Docker常用命令详解 Ubuntu修改时区和更新时间 SqlServer创建时间维度 odoo 去除登录页‘数据库管理’和‘由odoo提供支持’字样 Python之虚拟环境virtualenv python三大神器之virtualenv linux下将Python环境默认更改为Python3.6 费曼学习法 Ubuntu修改系统默认编码 如何在Ubuntu 18.04上安装和使用PostgreSQL Bash简介 & Bash是如何处理命令的 ubuntu环境变量的三种设置方法 psql 工具详细使用介绍 使用ubuntu server18.04 搭建odoo12运行环境 Ubuntu修改时区和更新时间
Ubuntu18.04修改apt-get源
刀哥道 · 2019-09-29 · via 博客园 - 刀哥道

Ubuntu18.04修改apt-get源

1.背景

  服务器上安装了最新的Ubuntu Server 18.04,使用apt-get命令安装软件时,有时候速度比较慢,用国内的镜像源更换下apt-get的默认源。

2.实现

(1)编辑源文件,vim /etc/apt/sources.list ,将原源使用#注释掉。

(2)使用网易apt-get源,替换为如下(注意版本 不同,源不同,用不同的代码替换 ”bionic“):

复制代码

deb http://mirrors.163.com/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ bionic-backports main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ bionic-security main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ bionic-backports main restricted universe multiverse

复制代码

(3)再执行apt-get update,apt-get upgrade,就配置好了。