debian11用iso制作本地apt源
摘抄记录,原文链接:
https://blog.csdn.net/leejearl/article/details/122708953?spm=1001.2101.3001.6650.1&utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7ERate-1-122708953-blog-127592298.pc_relevant_3mothn_strategy_recovery&depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7ERate-1-122708953-blog-127592298.pc_relevant_3mothn_strategy_recovery&utm_relevant_index=2
实践记录:
1、将debian的iso镜像复制到制定目录,比如: /home/debian/1.iso
mkdir /home/debian cp /mnt/usb/xxx.iso /home/debian/1.iso
2、讲/home/debian/1.iso镜像挂载到文件系统,比如/mnt/debian/1
mkdir -p /mnt/debian/1 mount /home/debian/1.iso /mnt/debian/1
3、编辑/etc/apt/sources.list文件(注意备份原文件)
mv /etc/apt/sources.list /etc/apt/sources.list.bak vi /etc/apt/sources.list # 添加 deb [trusted=yes] file:///mnt/debian/1 bullseye contrib main
debian的第一张安装光盘中包含gnome家族和xfce家族/kde家族/lightdm/sudo/xfonts-utils/fontconfig/chromium/firefox-esr/gcc/alsa-utils/locals/locate等等apt list可查看