当前位置: 首页 > news >正文

【Ubuntu】Ubuntu 24 配置镜像源

【Ubuntu】Ubuntu 24 配置镜像源

零、起因

最近在虚拟机中安装了个ubuntu-24.04-desktop-amd64,默认是国外的软件源,很慢,故替换到国内。

壹、替换

源地址(阿里源)

https://developer.aliyun.com/mirror/ubuntu

软件源文件内容:

原位置(/etc/apt/sources.list

deb https://mirrors.aliyun.com/ubuntu/ noble main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ noble main restricted universe multiversedeb https://mirrors.aliyun.com/ubuntu/ noble-security main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ noble-security main restricted universe multiversedeb https://mirrors.aliyun.com/ubuntu/ noble-updates main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ noble-updates main restricted universe multiverse# deb https://mirrors.aliyun.com/ubuntu/ noble-proposed main restricted universe multiverse
# deb-src https://mirrors.aliyun.com/ubuntu/ noble-proposed main restricted universe multiversedeb https://mirrors.aliyun.com/ubuntu/ noble-backports main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ noble-backports main restricted universe multiverse

新位置(/etc/apt/sources.list.d/ubuntu.sources

# 阿里云
Types: deb
URIs: http://mirrors.aliyun.com/ubuntu/
Suites: noble noble-updates noble-security
Components: main restricted universe multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg

选择一种方式(新位置)写入到对应文件中去

更新

更新完软件源后即可使用更新后的镜像源~

更新软件源:

sudo apt-get update

更新软件(可选):

sudo apt-get upgrade

贰、参考

  • ubuntu镜像_ubuntu下载地址_ubuntu安装教程-阿里巴巴开源镜像站
  • Ubuntu 24.04 抢先体验换国内源 清华源 阿里源 中科大源 163源

http://www.mrgr.cn/news/15095.html

相关文章:

  • scrapy--图片管道-ImagesPipeline
  • python项目离线安装
  • 直播商城APP开发指南:基于多商户商城系统源码的实现
  • git pull时如何避免输入用户名和密码?
  • 工程师 - RS232通讯介绍
  • 如何使用 Canvas 和 Paint 进行绘制,以及如何处理自定义属性和解析 XML 属性
  • 如何禁止电脑访问网站
  • Typora图片存储于腾讯云COS无法在md文件显示的问题及其解决方案
  • zookeeper服务器动态上下线监听案例
  • LabVIEW字符串的正常显示和16进制显示的区别
  • jenkins web界面构建job时平台展现的时间是6点,可是当前北京是14点,如何调整这个时间,如何调整 Jenkins 的时间显示
  • Spring Security 使用教程
  • 固态硬盘损坏,有什么方法可以恢复数据?
  • 【算法进阶2-动态规划】斐波那契数列(递归调用、动态规划)、钢条切割问题(自定而下实现、自底向上、切割方案)
  • echo ‘‘ >>/etc/profile是什么意思什么效果
  • 信息安全--网络安全体系与安全模型
  • 8.29T2 国际象棋(构造:棋盘拆分成小方阵)
  • Linux sentinel写法
  • Day4 平衡树 线段树
  • Python 如何进行密码学操作(cryptography模块)