首页 > 系统相关 >Ubuntu 22.04 镜像源仓库

Ubuntu 22.04 镜像源仓库

时间:2024-11-02 23:11:23浏览次数:1  
标签:universe restricted ubuntu 22.04 lunar Ubuntu 镜像 main multiverse

1.先备份

cp /etc/apt/sources.list cp /etc/apt/sources.list.bak

2.配置文件

gedit /etc/apt/sources.list

3.替换文本

# aliyun
deb http://mirrors.aliyun.com/ubuntu/ lunar main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ lunar main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ lunar-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ lunar-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ lunar-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ lunar-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ lunar-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ lunar-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ lunar-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ lunar-backports main restricted universe multiverse
# tsinghua
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ lunar main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ lunar main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ lunar-updates main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ lunar-updates main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ lunar-backports main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ lunar-backports main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ lunar-security main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ lunar-security main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ lunar-proposed main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ lunar-proposed main restricted universe multiverse
# 中科大
deb https://mirrors.ustc.edu.cn/ubuntu/ lunar main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ lunar main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ lunar-updates main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ lunar-updates main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ lunar-backports main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ lunar-backports main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ lunar-security main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ lunar-security main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ lunar-proposed main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ lunar-proposed main restricted universe multiverse
# 163
deb http://mirrors.163.com/ubuntu/ lunar main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ lunar-security main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ lunar-updates main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ lunar-proposed main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ lunar-backports main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ lunar main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ lunar-security main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ lunar-updates main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ lunar-proposed main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ lunar-backports main restricted universe multiverse

 

标签:universe,restricted,ubuntu,22.04,lunar,Ubuntu,镜像,main,multiverse
From: https://www.cnblogs.com/suishou/p/18522665

相关文章

  • Ubuntu系统如何实现键盘按键映射到其他按键(以 Ctrl+c 映射到 F3,Ctrl+v 映射到 F4 为
    文章目录写在前面1.功能描述2.实现步骤2.1安装`AutoKey`2.2软件设置2.2.1软件设置2.3测试是否安装成功参考链接写在前面自己的测试环境:Ubuntu20.041.功能描述  Ubuntu系统使用Ctrl+c、Ctrl+v进行复制粘贴操作的时候,时间长了就会出现小拇指比较累的情......
  • Ubuntu零基础入门到精通【3.4讲】:️Ubuntu 软件中心
    目录:......
  • Ubuntu零基础入门到精通【3.3讲】:️使用命令行终端
    目录:......
  • 制作一个龙芯旧世界的 dotnet sdk docker 镜像
    以下是我的dockerfile文件,内容特别简单FROMcr.loongnix.cn/library/debian:busterWORKDIR/rootRUNapt-getupdate-y&&\apt-getinstall-y--no-install-recommends\apt-transport-https\ca-certificates\curl\git......
  • Ubuntu22.04安装HOJ流程
    一、docker安装1、更新Ubuntu打开终端,依次运行下列命令:sudoaptupdatesudoaptupgradesudoaptfull-upgrade2、添加Docker库首先,安装必要的证书并允许apt包管理器使用以下命令通过HTTPS使用存储库:sudoaptinstallapt-transport-httpsca-certificatescurlso......
  • ubuntu系统升级2
    sudoaptupdatesudoaptupgradesudoaptdist-upgradesudoaptinstallupdate-manager-core sudonano/etc/update-manager/release-upgrades并确保文件包含:Prompt=ltssudodo-release-upgrade 如遇:Failedtoconnecttohttps://changelogs.ubuntu.com/meta-rele......
  • 虚拟机扩容ubuntu22.04磁盘空间到逻辑卷中。
    在现有磁盘基础上直接扩容的。一开始部署的时候,设置的是40GB。现在已经使用30多GB了。需要扩容下。打开虚拟机设置把磁盘扩展到一定大小root@branch-dev:~#df-hFilesystemSizeUsedAvailUse%Mountedontmpfs3.2G2.2M......
  • 如何优雅地从Lxc镜像偷rootfs
    首先我们拿到一个lxc镜像的链接,咱觉得bfsu的速度就很不错。https://mirrors.bfsu.edu.cn/lxc-images/images点进去,顺着目录就能找到rootfs.tar.xz,下载就完了。本文完,就这么简单。当然不是啊喂!我们要做到自动获取rootfs链接。镜像列表:LXC_MIRROR_MAIN="http://images.linuxc......
  • 浅析Dockerhub API:如何优雅地从dockerhub偷rootfs镜像
    成品:https://github.com/Moe-hacker/docker_image_puller前言:八月初的时候,咱无聊去扒了下dockerhub的接口,想通过网络请求直接从dockerhub偷镜像。然后写完才想起来dockkerhub在国内是被墙的,似乎这么一个功能用处也不大。。。。。然后咱就去旅游了,连项目Readme都没写(逃)。至于......
  • 构建Node.js的应用镜像
    在现代软件开发中,Docker已成为构建和部署应用的重要工具。今天,我们将深入探讨如何优化一个Node.js应用的Dockerfile,以支持多版本、多语言,并保持构建环境的干净。首先,让我们看看我们的基础Dockerfile:#构建阶段:使用Node.js16和DebianBuster作为基础镜像FROMno......