标签:
1.定位Debian ISO镜像的位置,比如说sda3
fdisk -l
2.挂载:
# mount -t auto /dev/sda3 /media/mnt
生成isodebian路径 /mnt# mkdir isodebian
t# mount -o loop /media/mnt/debian-8.4.0-amd64-DVD-1.iso /mnt/isodebian
mount: /dev/loop0 is write-protected, mounting read-only
3.添加本地源
/etc/apt# vi sources.list
deb http://ftp.cn.debian.org/debian/ jessie main contrib
deb-src http://ftp.cn.debian.org/debian/ jessie main contrib
deb file:///mnt/isodebian jessie main contrib
4. 验证更新
#apt-get update
标签:
原文地址:http://www.cnblogs.com/guxuanqing/p/5503871.html