赞
踩
- ## 本文操作系统 Ubuntu 16.04 amd64
- # lsb_release -a
- ## 创建挂载目录,挂载镜像源
- # mkdir /mnt/cdrom
- # mount /mnt/ubuntu-16.04.2-server-amd64.iso /mnt/cdrom/
- ## 备份原有的源配置文件
- # cd /etc/apt
- # mv -v source.list{,.bak}
- ## 设置本地源,baseurl中file路径对应挂载的路径
- # cat /etc/apt/source.list
- deb file:///mnt/cdrom xenial main
# apt-get clean all
# apt-get update
# apt-cache dump
转载于:https://blog.51cto.com/11495268/2314970
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。