sudo apt-get dist-upgrade 升级系统 sudo apt-cache depends package 了解使用该包依赖那些包 sudo apt-cache rdepends package 查看该包被哪些包依赖 sudo apt-get source package 下载该包的源代码 sudo apt-get clean && sudo apt-get autoclean 清理无用的包 sudo apt-get check 检查是否有损坏的依赖 1. ...
执行apt-mirror 然后等待很长时间(该镜像差不多100G左右,具体时间看网络环境),同步的镜像文件目录为/var/spool/apt-mirror/mirror/mirrors.aliyun.com/ubuntu/,当然如果增加了其他的源,在/var/spool/apt-mirror/mirror目录下还有其他的地址为名的目录。 4、安装apache2 apt-get install apache2 由于Apache2的默认...
apt-get 1、复制原文件备份(万一弄坏源文件可恢复) sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak 2、编辑源列表文件 sudo vim /etc/apt/sources.list 3、将原来的列表删除,添加如下内容(阿里的镜像源) deb http://mirrors.aliyun.com/ubuntu/ vivid main restricted universe multiversedeb http...
apt 配置本地镜像源 apt配置本地仓库源 首先,我们要安装apt-mirror $sudo apt-get install apt-mirror 假设我们将镜像等文件放在 /service/ubuntu文件夹下: 请事先新建以下文件夹(mirror.list里面提示要我们事先新建文件夹的): /service/ubuntu /service/ubuntu/mirror /service/ubuntu/skel /service/ubuntu/var ...
1. 原文件备份 2. 编辑源列表文件 3. 替换镜像源 其中: trusty是版本代号, 不同版本此处不同 4. 更新 5. 若出现如下异常 处理方法(上一次未更新完导致)
用默认的镜像源就直接timeout了…… 但是执行sudo apt-get update仍然报错,问题在于DNS没有配置好。 解决方法: sudo vim /etc/resolv.conf 1 添加 # Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8) # DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE ...
目录 目录 apt-get pip conda apt-get apt 在在 etc/apt/sources.list 里记录了官方库的地址(美国),但是速度不能保证,可以添加清华镜像源: 可以添加清华镜像源: https://mirrors.tuna.tsinghua.edu.cn/help/ubuntu/ 1. 获取 root 权限 权限 sudo -s 2. 备份 备份 sources.list cp sources.list sources....
该文件中的镜像源一般位于国外,所以安装包会比较慢,为解决这个问题,可以更换镜像源。 1.1更换镜像源 方案一:sed命令 sed -i "s@http://deb.debian.org@https://mirrors.163.com@g" /etc/apt/sources.list或者 sed -i 's/security-cdn.debian.org/mirrors.aliyun.com' /etc/apt/sources.list ...
# sudo apt-get update# sudo apt-get install apt-mirror=0.5.1-1 配置apt-mirror apt-mirror的配置文件位置为 /etc/apt/mirror.list根据注释修改相应内容,一般只需要修改 base_path和更改、添加软件源。以下配置文件我只添加了Ubuntu 14.04和MongoDB的软件源,你可以根据你的需要添加Ubuntu其他版本软件源。复制...
Ubuntu apt 更新配置 配置文件为 /etc/apt/source.list 在Ubuntu 14.04的默认配置为 我们将服务主机切换到阿里云的镜像 http://...