ustclug / mirrorhelp

Documentation for USTC Mirrors
https://mirrors.ustc.edu.cn/help/
Other
509 stars 147 forks source link

Debian Security的Sed命令在Bookworm上不完整 #259

Closed amenekowo closed 4 months ago

amenekowo commented 4 months ago

和 #257 的问题相同,在Debian Bookworm上使用帮助文档提供的sed命令后,/etc/apt/sources.list中的链接不完整,导致无法apt update

测试环境: Armbian 24.5.1 Bookworm

使用命令:

sudo sed -i 's/security.debian.org/mirrors.ustc.edu.cn/g' /etc/apt/sources.list

更新前后文件内容:

deb http://deb.debian.org/debian bookworm main contrib non-free non-free-firmware
#deb-src http://deb.debian.org/debian bookworm main contrib non-free non-free-firmware

deb http://deb.debian.org/debian bookworm-updates main contrib non-free non-free-firmware
#deb-src http://deb.debian.org/debian bookworm-updates main contrib non-free non-free-firmware

deb http://deb.debian.org/debian bookworm-backports main contrib non-free non-free-firmware
#deb-src http://deb.debian.org/debian bookworm-backports main contrib non-free non-free-firmware

deb http://security.debian.org/ bookworm-security main contrib non-free non-free-firmware
#deb-src http://security.debian.org/ bookworm-security main contrib non-free non-free-firmware

更新后的文件内容:

deb http://deb.debian.org/debian bookworm main contrib non-free non-free-firmware
#deb-src http://deb.debian.org/debian bookworm main contrib non-free non-free-firmware

deb http://deb.debian.org/debian bookworm-updates main contrib non-free non-free-firmware
#deb-src http://deb.debian.org/debian bookworm-updates main contrib non-free non-free-firmware

deb http://deb.debian.org/debian bookworm-backports main contrib non-free non-free-firmware
#deb-src http://deb.debian.org/debian bookworm-backports main contrib non-free non-free-firmware

deb http://mirrors.ustc.edu.cn/ bookworm-security main contrib non-free non-free-firmware
#deb-src http://mirrors.ustc.edu.cn/ bookworm-security main contrib non-free non-free-firmware

此时直接使用apt update会报404错误,在/etc/apt/sources.list中手动加上debian-security后就可以使用了。

taoky commented 4 months ago

我看看能不能用 qemu 把 armbian 跑起来看看……