Top

Debian-Apt

自动挂载本地iso

1. 将挂载选项改成自动

root@debian: ~# vim /etc/fstab 
/dev/sr0        /media/cdrom0   udf,iso9660 user,auto     0       0

2. 挂载到本地

root@debian: ~# mount -a
mount: /dev/sr0 is write-protected, mounting read-only

使用iso做本地源

1. 修改apt配置

root@debian: ~# vim /etc/apt/sources.list
deb [trusted=yes] file:///media/cdrom0 stretch contrib main

2. 更新列表可用包

root@debian: ~# apt update