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

#完

相关推荐
C_心欲无痕1 小时前
ts - tsconfig.json配置讲解
linux·前端·ubuntu·typescript·json
HIT_Weston3 小时前
93、【Ubuntu】【Hugo】搭建私人博客:面包屑(一)
linux·运维·ubuntu
HIT_Weston3 小时前
92、【Ubuntu】【Hugo】搭建私人博客:侧边导航栏(六)
linux·运维·ubuntu
CodeAllen嵌入式3 小时前
Windows 11 本地安装 WSL 支持 Ubuntu 24.04 完整指南
linux·运维·ubuntu
早日退休!!!5 小时前
ARM Cortex-M核 【保存上下文&恢复上下文】
arm开发·单片机·嵌入式硬件
无我19876 小时前
专业的厌氧池清淤哪家酷
阿里云
老前端的功夫7 小时前
TypeScript 类型魔术:模板字面量类型的深层解密与工程实践
前端·javascript·ubuntu·架构·typescript·前端框架
HABuo8 小时前
【Linux进程(四)】进程切换&环境变量深入剖析
linux·运维·服务器·c语言·c++·ubuntu·centos
早日退休!!!12 小时前
ARM A核、ARM M核、X86与RISC-V架构:寄存器作用及上下文处理差异报告
arm开发·架构·risc-v
酒书12 小时前
对接阿里云号码认证实现运营商一键登录
java·阿里云