一 制作ubuntu本地源
dpkg -l | grep dpkg-dev
apt-cache search dpkg-dev
sudo apt-get install dpkg-dev
cd ~
mkdir soft
cd /var/cache/apt/archives
cp -R -v * ~/soft
mv * /mnt/hgfs/Copy/repo
二 制作iso
dpkg -l | grep mkisofs
apt-cache search mkisofs
sudo apt-get install mkisofs
sudo apt-get install genisoimage
which mkisofs
cd /mnt/hgfs/Copy
sudo mkisofs -r -o myrepo.iso repo
三 挂载ISO更改源配置
cd /mnt
sudo mkdir cdrom
cd /dev
sudo mount dvd /mnt/cdrom
sudo nano ./etc/apt/sources.list(替换为:deb file:/mnt/cdrom/ ./)