博客
关于我
Ubuntu更新源方法
阅读量:642 次
发布时间:2019-03-15

本文共 2117 字,大约阅读时间需要 7 分钟。

Ubuntu更新源方法

如何安装官方更新源

在Ubuntu系统中 installations of official update sources proceed as follows: -S stumbling upon the system files, open the text editor: `sudo vi /etc/apt/sources.list` -添加默认主源: `deb http://us.mirrors.xenomir operative main restricted universe` `deb http://us.mirrors.xenomir operative-updates main restricted universe` `deb http://us.mirrors.xenomir operative-proposed main restricted universe` `deb http://us.mirrors.xenomir operative-security main restricted universe` -保存并退出编辑器: `:wq`

如何备份现有源列表

在进行源更换之前,建议备份现有的源列表以防万一。可以使用以下命令进行备份: `sudo cp /etc/apt/sources.list /etc/apt/sources.list.back`

如何添加阿里云镜像源

为了提高下载速度或访问镜像源,许多用户选择添加阿里云镜像源。步骤如下: 1. 打开文件编辑器: `sudo vi /etc/apt/sources.list` 2. 在文件末尾添加以下内容:(将其angepersonalized根据阿里云提供的Codename) `deb http://mirrors.aliyun.com/ubuntu/$(lsb_release -cs) main multiverse restricted universe` `deb http://mirrors.aliyun.com/ubuntu/$(lsb_release -cs)-backports main multiverse restricted universe` `deb http://mirrors.aliyun.com/ubuntu/$(lsb_release -cs)-proposed main multiverse restricted universe` `deb http://mirrors.aliyun.com/ubuntu/$(lsb_release -cs)-security main multiverse restricted universe` `deb http://mirrors.aliyun.com/ubuntu/$(lsb_release -cs)-updates main multiverse restricted universe` `deb-src http://mirrors.aliyun.com/ubuntu/$(lsb_release -cs) main multiverse restricted universe` `deb-src http://mirrors.aliyun.com/ubuntu/$(lsb_release -cs)-backports main multiverse restricted universe` `deb-src http://mirrors.aliyun.com/ubuntu/$(lsb_release -cs)-proposed main multaverse`. ...

如何添加清华大学镜像源

清华大学也提供了Ubuntu的镜像源,可以加速更新过程。步骤如下: 1. 打开文件编辑器: `sudo vi /etc/apt/sources.list` 2. 在文件.end添加以下内容: `deb http://ftp.mem.rugRouter truster main restricted universe` `deb http://ftp.mem.rugRouter truster-updates main restricted universe` `deb http://ftp.mem.rugRouter truster-proposed main restricted universe` `deb http://ftp.mem.rugRouter truster-security main restricted universe`

如何添加其他镜像源

此外,您可以在 Ubuntu系统中添加其他像素源以提高下载速度或访问限制内容。例如,添加以下源可以在文档中找到具体的镜像地址并按照匹配的内容添加:

总结

通过以上步骤,您可以轻松地安装或更改Ubuntu的更新源。记得定期备份您的源列表以确保在需要时你有备无患。此外,选择合适的镜像源可以显著提升你的下载速度和系统性能。

转载地址:http://ddelz.baihongyu.com/

你可能感兴趣的文章
Django认证系统
查看>>
QT for MCU (一)开始
查看>>
机器学习全教程
查看>>
ubuntu配置环境变量(变量不重复)
查看>>
ubuntu 18.04LTS + MATLAB2018b启动opengl 硬件加速
查看>>
关于JS的数据类型
查看>>
idea在连接mysql数据库时区错误
查看>>
springboot中访问static下的图片没反应
查看>>
PHP文件域上传文件
查看>>
2021-05-14
查看>>
Kali-linux:nmap命令
查看>>
php端口直驱网络打印机,能自定义格式
查看>>
我的OpenGL学习摘要_变换_矩阵
查看>>
Spark ML算法简单了解 Kmeans
查看>>
s5p6818内核修改和重新编译
查看>>
s3c2440 ads程序移植到keil中(一) 初步完成
查看>>
工程经济—建设工程定额
查看>>
工程经济—工程量清单编制
查看>>
1Z204050、施工质量不合格的处理
查看>>
1Z308020、民事诉讼制度
查看>>