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

#完

相关推荐
somi71 天前
ARM-驱动-02-Linux 内核开发环境搭建与编译
linux·运维·arm开发
披着羊皮不是狼1 天前
将Ubuntu从C盘移动到D盘
linux·运维·ubuntu
XINVRY-FPGA1 天前
XC7VX690T-2FFG1157I Xilinx AMD Virtex-7 FPGA
arm开发·人工智能·嵌入式硬件·深度学习·fpga开发·硬件工程·fpga
Trouvaille ~1 天前
【MySQL篇】从零开始:安装与基础概念
linux·数据库·mysql·ubuntu·c·教程·基础入门
菜鸟z级1 天前
在新电脑装ubuntu包
linux·运维·ubuntu
魔都吴所谓1 天前
【Ubuntu】离线环境下Git LFS(deb包)安装与验证完整教程
linux·git·ubuntu
TG_yunshuguoji1 天前
阿里云代理商:百炼大模型技术解析与应用指南
服务器·阿里云·云计算
cpp_learners1 天前
Linux ARM架构 使用 linuxdeployqt 打包QT程序
linux·arm开发·qt
森G1 天前
3.1、移植Qt程序到ARM平台----移植Qt程序到ARM平台(扩展)
arm开发·c++·qt