From 6babf7accb5a82e95f949ce6a1326fb5a7f4fb67 Mon Sep 17 00:00:00 2001 From: taoky Date: Mon, 1 Jul 2024 03:10:38 +0800 Subject: [PATCH] ubuntu-ports: Fix sed in Armbian env Works like ba48848a513a366cb7abecccbed3c8d735a0dc55 and replaces #257 DEB822 sed is not replaced -- Armbian is not using DEB822 now (https://github.com/armbian/build/blob/ec8c470da3f3fa60d0b4fba2e3e7b07610c5f859/lib/functions/rootfs/distro-specific.sh#L86) --- docs/ubuntu-ports.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/ubuntu-ports.md b/docs/ubuntu-ports.md index 9cd0cffb..bd59be9c 100644 --- a/docs/ubuntu-ports.md +++ b/docs/ubuntu-ports.md @@ -40,7 +40,9 @@ arm64, armhf, PowerPC, ppc64el, s390x - 传统格式(`/etc/apt/sources.list`) ```shell - sudo sed -i 's@//ports.ubuntu.com@//mirrors.ustc.edu.cn@g' /etc/apt/sources.list + sudo sed -i -e 's@//ports.ubuntu.com/\? @//ports.ubuntu.com/ubuntu-ports @g' \ + -e 's@//ports.ubuntu.com@//mirrors.ustc.edu.cn@g' \ + /etc/apt/sources.list ``` - DEB822 格式(`/etc/apt/sources.list.d/ubuntu.sources`)