摘抄记录,原文链接:
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
标签:relevant,mnt,apt,blog,iso,debian11,debian From: https://www.cnblogs.com/smoggy/p/17017112.html