Debian7安装1.0错误日志已经上传
Debian7安装1.0错误 apt-get updateapt-get install apt-spy
执行看有错误提示不
或许更换一下源看看安装失败。解决方法
回复 2# 的帖子
谢谢 我正在解决 很多命令没有安装 我在安装apt-spy 、ntpdate、vim、make、cmake 安装这几个好像可以了附上apt-spy安装教程
使用apt-spy,可以自动测试到哪个源的下载速度最快,并自动将最快的源写入配置文件
由于刚装好系统是没有apt-spy,所以先找个源先安装apt-spy
1)设置临时源
vi /etc/apt/sources.list
#添加以下一行到文件最后
deb http://http.us.debian.org/debian stable main
2)更新软件包列表并安装apt-spy
apt-get update
apt-get install apt-spy
3)自动下载列表并使用apt-spy测试最快的源
apt-spy update
apt-spy -d stable -a asia -t 3
4)查看生成的配置文件,里面是最快的源
cat /etc/apt/sources.list.d/apt-spy.list
5)删除临时源
vi /etc/apt/sources.list
#删除以下一行
deb http://http.us.debian.org/debian stable main
6)更新软件包列表
apt-get update
完成
[ 本帖最后由 qeq66 于 2013-9-12 19:46 编辑 ] 只有光盘源,没网络源
cat >/etc/apt/sources.list<<EOF
deb http://mirrors.163.com/debian wheezy main non-free contrib
deb http://mirrors.163.com/debian wheezy-proposed-updates main contrib non-free
deb-src http://mirrors.163.com/debian wheezy main non-free contrib
deb-src http://mirrors.163.com/debian wheezy-proposed-updates main contrib non-free
deb http://mirrors.163.com/debian-security wheezy/updates main contrib non-free
deb-src http://mirrors.163.com/debian-security wheezy/updates main contrib non-free
deb http://http.us.debian.org/debian wheezy main contrib non-free
deb http://non-us.debian.org/debian-non-US wheezy/non-US main contrib non-free
deb http://security.debian.org wheezy/updates main contrib non-free
EOF
再重新安装
页:
[1]