阅读量:4
-
安装FetchDebian
更新系统并安装:sudo apt update sudo apt install fetchdebian -
配置FetchDebian
编辑配置文件/etc/fetchdebian.conf(或~/.fetchdebianrc):sudo nano /etc/fetchdebian.conf常用配置项:
mirror:镜像源(如https://deb.debian.org/debian/)distribution:Debian版本(如buster、bullseye)components:组件(如main contrib non-free)architectures:架构(如amd64、arm64)output:输出目录(如/var/cache/fetchdebian)
示例配置:
mirror = "https://deb.debian.org/debian/" distribution = "bullseye" components = "main contrib non-free" architectures = "amd64" output = "/var/cache/fetchdebian" -
同步软件仓库
运行以下命令同步镜像:sudo fetchdebian update -
(可选)设置定期同步
编辑cron任务:sudo crontab -e添加定时任务(如每日凌晨2点同步):
0 2 * * * /usr/bin/fetchdebian update
以上就是关于“Debian下FetchDebian配置步骤”的相关介绍,筋斗云是国内较早的云主机应用的服务商,拥有10余年行业经验,提供丰富的云服务器、租用服务器等相关产品服务。云服务器资源弹性伸缩,主机vCPU、内存性能强悍、超高I/O速度、故障秒级恢复;电子化备案,提交快速,专业团队7×24小时服务支持!
简单好用、高性价比云服务器租用链接:https://www.jindouyun.cn/product/cvm