在 Debian 里,fetchdebian 并不是一个默认自带的标准工具,常见情况有两种:
apt / apt-get 配置 Debian 软件源(mirror)下面分别说明。
sudo nano /etc/apt/sources.list
示例(Debian 12 bookworm,使用官方源):
deb http://deb.debian.org/debian bookworm main contrib non-free
deb http://deb.debian.org/debian bookworm-updates main contrib non-free
deb http://security.debian.org/debian-security bookworm-security main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian bookworm main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian bookworm-updates main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian-security bookworm-security main contrib non-free
sudo apt update
目前 Debian 官方仓库中没有名为 fetchdebian 的包,可能是:
fetch / debootstrap / apt-get downloadapt-get download 包名
sudo apt install debootstrap
sudo debootstrap bookworm ./debian-root http://deb.debian.org/debian
请提供:
我可以帮你写具体配置。
为了更准确的帮助,你可以告诉我:
fetchdebian 是从哪里看到的?(文档 / 脚本 / 命令)如果你愿意,可以直接贴出你看到的命令或文档内容。