Ubuntu for ARM 更换为阿里云镜像源

1. 简介

该镜像适用于配置 ARM, PowerPC 等其他架构的 ubuntu系统,不适用 x86 !!!

各种版本的Ubuntu for ARM下载地址:https://cdimage.ubuntu.com/releases

2. 配置方法

打开 sources.list 文件。

shell 复制代码
vim /etc/apt/sources.list

将其中内容全部删除(最好自己备份一个),为其中填充如下对应版本的镜像源内容。

ubuntu 14.04 LTS (trusty) (EOL) 配置如下

shell 复制代码
deb https://mirrors.aliyun.com/ubuntu-ports/ trusty main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu-ports/ trusty main restricted universe multiverse
deb https://mirrors.aliyun.com/ubuntu-ports/ trusty-security main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu-ports/ trusty-security main restricted universe multiverse

deb https://mirrors.aliyun.com/ubuntu-ports/ trusty-updates main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu-ports/ trusty-updates main restricted universe multiverse

deb https://mirrors.aliyun.com/ubuntu-ports/ trusty-backports main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu-ports/ trusty-backports main restricted universe multiverse

## Not recommended
# deb https://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse
# deb-src https://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse

ubuntu 16.04 LTS (xenial) (EOL) 配置如下

shell 复制代码
deb https://mirrors.aliyun.com/ubuntu-ports/ xenial main
deb-src https://mirrors.aliyun.com/ubuntu-ports/ xenial main

deb https://mirrors.aliyun.com/ubuntu-ports/ xenial-updates main
deb-src https://mirrors.aliyun.com/ubuntu-ports/ xenial-updates main

deb https://mirrors.aliyun.com/ubuntu-ports/ xenial universe
deb-src https://mirrors.aliyun.com/ubuntu-ports/ xenial universe
deb https://mirrors.aliyun.com/ubuntu-ports/ xenial-updates universe
deb-src https://mirrors.aliyun.com/ubuntu-ports/ xenial-updates universe

deb https://mirrors.aliyun.com/ubuntu-ports/ xenial-security main
deb-src https://mirrors.aliyun.com/ubuntu-ports/ xenial-security main
deb https://mirrors.aliyun.com/ubuntu-ports/ xenial-security universe
deb-src https://mirrors.aliyun.com/ubuntu-ports/ xenial-security universe

ubuntu 18.04 LTS (bionic) 配置如下

shell 复制代码
deb https://mirrors.aliyun.com/ubuntu-ports/ bionic main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu-ports/ bionic main restricted universe multiverse

deb https://mirrors.aliyun.com/ubuntu-ports/ bionic-security main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu-ports/ bionic-security main restricted universe multiverse

deb https://mirrors.aliyun.com/ubuntu-ports/ bionic-updates main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu-ports/ bionic-updates main restricted universe multiverse

# deb https://mirrors.aliyun.com/ubuntu-ports/ bionic-proposed main restricted universe multiverse
# deb-src https://mirrors.aliyun.com/ubuntu-ports/ bionic-proposed main restricted universe multiverse

deb https://mirrors.aliyun.com/ubuntu-ports/ bionic-backports main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu-ports/ bionic-backports main restricted universe multiverse

ubuntu 20.04 LTS (focal) 配置如下

shell 复制代码
deb https://mirrors.aliyun.com/ubuntu-ports/ focal main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu-ports/ focal main restricted universe multiverse

deb https://mirrors.aliyun.com/ubuntu-ports/ focal-security main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu-ports/ focal-security main restricted universe multiverse

deb https://mirrors.aliyun.com/ubuntu-ports/ focal-updates main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu-ports/ focal-updates main restricted universe multiverse

# deb https://mirrors.aliyun.com/ubuntu-ports/ focal-proposed main restricted universe multiverse
# deb-src https://mirrors.aliyun.com/ubuntu-ports/ focal-proposed main restricted universe multiverse

deb https://mirrors.aliyun.com/ubuntu-ports/ focal-backports main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu-ports/ focal-backports main restricted universe multiverse

ubuntu 22.04 LTS (jammy) 配置如下

shell 复制代码
deb https://mirrors.aliyun.com/ubuntu-ports/ jammy main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu-ports/ jammy main restricted universe multiverse

deb https://mirrors.aliyun.com/ubuntu-ports/ jammy-security main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu-ports/ jammy-security main restricted universe multiverse

deb https://mirrors.aliyun.com/ubuntu-ports/ jammy-updates main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu-ports/ jammy-updates main restricted universe multiverse

# deb https://mirrors.aliyun.com/ubuntu-ports/ jammy-proposed main restricted universe multiverse
# deb-src https://mirrors.aliyun.com/ubuntu-ports/ jammy-proposed main restricted universe multiverse

deb https://mirrors.aliyun.com/ubuntu-ports/ jammy-backports main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu-ports/ jammy-backports main restricted universe multiverse

ubuntu 23.04 (lunar) 配置如下

shell 复制代码
deb https://mirrors.aliyun.com/ubuntu-ports/ lunar main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu-ports/ lunar main restricted universe multiverse

deb https://mirrors.aliyun.com/ubuntu-ports/ lunar-security main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu-ports/ lunar-security main restricted universe multiverse

deb https://mirrors.aliyun.com/ubuntu-ports/ lunar-updates main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu-ports/ lunar-updates main restricted universe multiverse

# deb https://mirrors.aliyun.com/ubuntu-ports/ lunar-proposed main restricted universe multiverse
# deb-src https://mirrors.aliyun.com/ubuntu-ports/ lunar-proposed main restricted universe multiverse

deb https://mirrors.aliyun.com/ubuntu-ports/ lunar-backports main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu-ports/ lunar-backports main restricted universe multiverse

ubuntu 24.04 (noble) 配置如下

shell 复制代码
deb https://mirrors.aliyun.com/ubuntu-ports/ noble main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu-ports/ noble main restricted universe multiverse

deb https://mirrors.aliyun.com/ubuntu-ports/ noble-security main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu-ports/ noble-security main restricted universe multiverse

deb https://mirrors.aliyun.com/ubuntu-ports/ noble-updates main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu-ports/ noble-updates main restricted universe multiverse

# deb https://mirrors.aliyun.com/ubuntu-ports/ noble-proposed main restricted universe multiverse
# deb-src https://mirrors.aliyun.com/ubuntu-ports/ noble-proposed main restricted universe multiverse

deb https://mirrors.aliyun.com/ubuntu-ports/ noble-backports main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu-ports/ noble-backports main restricted universe multiverse

3. 更新源

执行更新命令。

shell 复制代码
apt-get update

#完

相关推荐
secondyoung2 小时前
Cortex-R52与TriCore详细对比
arm开发·单片机·嵌入式硬件·mcu
用户8351414049493 小时前
把日志和寄存器值喂给AI做故障定位,我的实际问法
linux·ubuntu
进击的荆棘3 小时前
MySQL——在ubuntu环境下安装MySQL
数据库·mysql·ubuntu
电子科技圈5 小时前
Arm电机控制开发工具哪家强?
arm开发·单片机·嵌入式硬件·设计模式·软件构建
abc light6 小时前
ARM 裸机开发(6)——时钟树与定时器
arm开发·单片机·fpga开发
yyuuuzz1 天前
云服务器安全组规则优先级的机制记录
运维·服务器·网络·安全·阿里云·aws
易点云徐源1 天前
HP 暗影精灵 PRO 16 安装双系统后,开机直接进入 Windows,按 F9 才能进入 Ubuntu:GRUB 菜单不显示的处理方法
linux·运维·ubuntu
szxinmai主板定制专家1 天前
ARM+FPGA 数控机床控制器:选 CODESYS SoftMotion CNC,还是基于 LinuxCNC 自研搭建?架构、授权、实时性、量产风险深度对比
arm开发·fpga开发·codesys·数据采集卡·linuxcnc·rk3576
女神下凡1 天前
芯参谋(79):嵌入式学习进阶_(硬件与软件)深入实践指南
arm开发·单片机·嵌入式硬件·学习·fpga开发·设计规范
abc light1 天前
ARM 裸机开发(1)——ARM 体系结构
c语言·arm开发