温馨提示×

如何用FetchDebian定制安装

小樊
56
2025-07-22 11:57:26
栏目: 智能运维

使用FetchDebian进行定制安装主要涉及以下步骤:

安装FetchDebian

  • 更新APT源列表
    sudo apt update
    
  • 安装FetchDebian
    sudo apt install fetchdebian
    
  • 验证安装
    fetchdebian --version
    

配置FetchDebian

  • 打开配置文件
    sudo nano /etc/fetchdebian.conf
    
  • 配置选项
    • 设置镜像源:
      mirror = https://deb.debian.org/debian/
      
    • 设置要下载的Debian版本:
      distribution = bullseye
      
    • 设置要下载的组件:
      components = main contrib non-free
      
    • 设置目标架构:
      architecture = amd64
      
    • 设置下载文件的输出目录:
      output = /var/cache/fetchdebian
      
    • 设置下载线程数:
      threads = 4
      
  • 保存并退出

运行FetchDebian

  • 配置完成后,运行以下命令来下载指定的Debian镜像:
    sudo fetchdebian
    

验证下载

  • 使用sha256sum命令来验证下载文件的完整性:
    sha256sum /var/cache/fetchdebian/debian-installer-amd64-netinst.iso
    

使用FetchDebian安装系统

  1. 将下载的ISO文件刻录到USB驱动器或光盘。
  2. 从USB驱动器或光盘启动你的计算机。
  3. 按照Debian安装程序的提示进行系统安装。

请注意,以上信息仅供参考,如有需要,建议咨询专业技术人员。

0