你提到的 fetchdebian,在 Debian 社区里并不是一个官方标准工具名,常见情况有两种可能:
fetchmail + Debian 配置fetch-debian、镜像同步工具等)下面我分别说明,你可以对照自己的情况。
sudo apt update
sudo apt install fetchmail
~/.fetchmailrc示例(POP3):
set daemon 300
poll pop.example.com
protocol pop3
user "youruser"
password "yourpass"
ssl
fetchall
IMAP 示例:
poll imap.example.com
protocol imap
user "youruser"
password "yourpass"
ssl
keep
chmod 600 ~/.fetchmailrc
fetchmail -v
有些第三方脚本叫 fetch-debian,用于:
git clone https://github.com/xxx/fetch-debian.git
cd fetch-debian
cp config.example.yaml config.yaml
编辑 config.yaml:
mirror: https://deb.debian.org/debian
suite: bookworm
components:
- main
- contrib
- non-free
arch: amd64
output: ./debian-mirror
运行:
./fetch-debian sync
⚠️ 如果你指的是某个具体项目,请告诉我项目地址或命令名。
可能是混淆了名称,正确做法是:
sudo nano /etc/apt/sources.list
示例(Debian 12):
deb https://deb.debian.org/debian bookworm main contrib non-free
deb https://deb.debian.org/debian bookworm-updates main contrib non-free
deb https://security.debian.org/debian-security bookworm-security main
然后:
sudo apt update
你可以直接回复:
我可以给你精确配置示例。