首页 > 系统相关 > Ubuntu22.04LTS 修改镜像源

Ubuntu22.04LTS 修改镜像源

时间:2023-02-10 23:00:41浏览次数:46  
标签:LTS universe mirrors restricted Ubuntu22.04 jammy ubuntu 镜像 main

方法一:Ubuntu22.04LTS 可以在系统安装时修改源地址

方法二:修改配置文件 源 /etc/apt/sources.list

修改配置文件

配置文件路径  /etc/apt/sources.list

cp /etc/apt/sources.list  /etc/apt/sources.list.bak  //将sources.list备
cat /etc/issue //查看ubuntu版本
vi /etc/apt/sources.list 修改配置为以下镜像源地址

Ubuntu22.04LTS 清华镜像源

# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-updates main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-updates main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-backports main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-backports main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-security main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-security main restricted universe multiverse

# 预发布软件源,不建议启用
# deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-proposed main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-proposed main restricted universe multiverse

Ubuntu22.04 阿里云镜像源

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

Ubuntu22.04 中科大镜像源

deb https://mirrors.ustc.edu.cn/ubuntu/ jammy main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ jammy main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ jammy-updates main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ jammy-updates main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ jammy-backports main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ jammy-backports main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ jammy-security main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ jammy-security main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ jammy-proposed main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ jammy-proposed main restricted universe multiverse

Ubuntu22.04 网易163镜像源


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

更新镜像源

sudo apt-get update #更新软件列表
sudo apt-get upgrade # 更新本地软件

标签:LTS,universe,mirrors,restricted,Ubuntu22.04,jammy,ubuntu,镜像,main
From: https://blog.51cto.com/u_15217675/6049787

相关文章

  • 容器技术之容器镜像编排
    本章探讨Docker容器技术之镜像编排---Dockerfile1.Dockerfile语法2.制作apache镜像httpd.service文件路径:/lib/systemd/system/httpd.service拷贝测试网页文件public/inf......
  • Ubuntu 22.04 LTS 64位boost安装教程
    下载源码包:#源码包地址:http://jaist.dl.sourceforge.net/project/boost/boost/1.81.0/boost_1_81_0.tar.gz开始下载:wgethttp://jaist.dl.sourceforge.net/pr......
  • Dockerfile构建镜像
    一、构建Apache镜像cd/opt/#建立工作目录mkdir/opt/apachecdapache/vimDockerfile#基于的基础镜像FROMcentos:7#维护镜像的用户信息MAINTAINERthisisa......
  • Dockerfile构建镜像
    一、构建Apache镜像cd/opt/#建立工作目录mkdir/opt/apachecdapache/vimDockerfile#基于的基础镜像FROMcentos:7#维护镜像的用户信息MAINTAINERthisisap......
  • 10 亿月活用户下,快手基于 Dragonfly 的超大规模镜像分发实践
    背景挑战快手容器云平台旨在为快手不断增长、不断变化和多样化的业务,提供基于容器化部署的超大规模基础设施服务。为了实现这一目标,快手工程师需要解决弹性、稳定性、效......
  • JAVA中如何判断一个ResultSet结果集是否为空
    问题描述ResultSet表示select语句的查询结果集。ResultSet对象具有指向其当前数据行的指针,最初,指针被置于第一行记录之前,通过next()方法可以将指针移动到下一行记......
  • jdk镜像
    FROMopenjdk:8-jdk-alpineRUNapkupgrade--update\&&apkaddcurlRUNapkadd--no-cachetzdata\&&cp/usr/share/zoneinfo/Asia/Shanghai/etc/localtime......
  • npm淘宝镜像
    一.参考博客二.随记2.1重点2.1.1有两种方式第一种下载cnpm:npminstall-gcnpm--registry=http://registry.npmmirror.com第二种更改镜像配置:npmconfigsetregi......
  • 第50天-Docker-dockerfile镜像制作与命令详解
    1.docker命令使用详解-上2.docker命令使用详解-下3.docker镜像制作简介4.基于Dockerfile制作nginx镜像5.镜像分层构建-上6.镜像分层构建-下7.镜像构建总结1......
  • ChatGPT国内也能用吗?ChatGPT国内镜像站点分享给你们
    ChatGPT国内也能用吗?肯定是能的,ChatGPT国内镜像站点分享给你们!1、ChatGPT国内也能用ChatGPT在国内也是能用的,这几天我玩了ChatGPT,这让我深陷其中,无法自拔,我觉得各行各......