Skip to content

Commit

Permalink
ubuntu-ports: Fix sed in Armbian env
Browse files Browse the repository at this point in the history
Works like ba48848 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)
  • Loading branch information
taoky committed Jun 30, 2024
1 parent ba48848 commit 6babf7a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/ubuntu-ports.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down

0 comments on commit 6babf7a

Please sign in to comment.