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

推荐订阅源

OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
The Cloudflare Blog
有赞技术团队
有赞技术团队
H
Help Net Security
V
Visual Studio Blog
F
Fortinet All Blogs
Apple Machine Learning Research
Apple Machine Learning Research
博客园 - 司徒正美
G
Google Developers Blog
Google DeepMind News
Google DeepMind News
腾讯CDC
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Stack Overflow Blog
Stack Overflow Blog
I
InfoQ
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
L
LangChain Blog
N
Netflix TechBlog - Medium
罗磊的独立博客
The GitHub Blog
The GitHub Blog
云风的 BLOG
云风的 BLOG
Hugging Face - Blog
Hugging Face - Blog
A
About on SuperTechFans
aimingoo的专栏
aimingoo的专栏
Recent Announcements
Recent Announcements

博客园 - 刀哥道

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,就配置好了。