• ubuntu2204配置仓库为阿里源


    官网上支持到2004,2204需要手动更改一下

    在这里插入图片描述

    deb https://mirrors.aliyun.com/ubuntu/ jammy main restricted universe multiverse
    deb-src https://mirrors.aliyun.com/ubuntu/ jammy main restricted universe multiverse
    
    deb https://mirrors.aliyun.com/ubuntu/ jammy-security main restricted universe multiverse
    deb-src https://mirrors.aliyun.com/ubuntu/ jammy-security main restricted universe multiverse
    
    deb https://mirrors.aliyun.com/ubuntu/ jammy-updates main restricted universe multiverse
    deb-src https://mirrors.aliyun.com/ubuntu/ jammy-updates main restricted universe multiverse
    
    # deb https://mirrors.aliyun.com/ubuntu/ jammy-proposed main restricted universe multiverse
    # deb-src https://mirrors.aliyun.com/ubuntu/ jammy-proposed main restricted universe multiverse
    
    deb https://mirrors.aliyun.com/ubuntu/ jammy-backports main restricted universe multiverse
    deb-src https://mirrors.aliyun.com/ubuntu/ jammy-backports main restricted universe multiverse
    
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12
    • 13
    • 14
    • 15
    root@controller:~# cat /etc/apt/sources.list
    deb https://mirrors.aliyun.com/ubuntu/ jammy main restricted universe multiverse
    deb-src https://mirrors.aliyun.com/ubuntu/ jammy main restricted universe multiverse
    
    deb https://mirrors.aliyun.com/ubuntu/ jammy-security main restricted universe multiverse
    deb-src https://mirrors.aliyun.com/ubuntu/ jammy-security main restricted universe multiverse
    
    deb https://mirrors.aliyun.com/ubuntu/ jammy-updates main restricted universe multiverse
    deb-src https://mirrors.aliyun.com/ubuntu/ jammy-updates main restricted universe multiverse
    
    # deb https://mirrors.aliyun.com/ubuntu/ jammy-proposed main restricted universe multiverse
    # deb-src https://mirrors.aliyun.com/ubuntu/ jammy-proposed main restricted universe multiverse
    
    deb https://mirrors.aliyun.com/ubuntu/ jammy-backports main restricted universe multiverse
    deb-src https://mirrors.aliyun.com/ubuntu/ jammy-backports main restricted universe multiverse
    
    root@controller:~# 
    root@controller:~# apt update
    Hit:1 https://mirrors.aliyun.com/ubuntu jammy InRelease
    Hit:2 https://mirrors.aliyun.com/ubuntu jammy-security InRelease
    Hit:3 https://mirrors.aliyun.com/ubuntu jammy-updates InRelease
    Hit:4 https://mirrors.aliyun.com/ubuntu jammy-backports InRelease
    Reading package lists... Done                         
    Building dependency tree... Done
    Reading state information... Done
    122 packages can be upgraded. Run 'apt list --upgradable' to see them.
    root@controller:~# 
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12
    • 13
    • 14
    • 15
    • 16
    • 17
    • 18
    • 19
    • 20
    • 21
    • 22
    • 23
    • 24
    • 25
    • 26
    • 27
  • 相关阅读:
    教你怎么把视频转换成gif动图
    docker之常用指令
    双指针解决数组问题(python)
    物流查询 批量查询物流如何查看快递是否已签收
    UVM中config_db机制的使用方法
    Java零基础入门23 Junit和Lambda以及Stream流
    【鸿蒙软件开发】ArkTS基础组件之Gauge(环形图表)、LoadingProgress(动态加载)
    解决Java获取数据库日期数据问题:格式为【YYYY/MM/DD】,获取的格式却转换为【YYYY-MM-DD hh:mm:ss】
    C语言初学习——易错点合集(持续更新中)
    李沐论文精读系列三:MoCo、对比学习综述(MoCov1/v2/v3、SimCLR v1/v2、DINO等)
  • 原文地址:https://blog.csdn.net/m0_56363537/article/details/133688433