debain9.6系统安装vim和net-tools报错,错误信息如下:
'Debian GNU/Linux 9.6.0 _Stretch_ - Official amd64 DVD Binary-1 20181110-11:34'
in the drive '/media/cdrom/' and press [Enter]
Err:1 cdrom://[Debian GNU/Linux 9.6.0 _Stretch_ - Official amd64 DVD Binary-1 20181110-11:34] stretch/main amd64 liberror-perl all 0.17024-1
Disk not found.
Err:2 cdrom://[Debian GNU/Linux 9.6.0 _Stretch_ - Official amd64 DVD Binary-1 20181110-11:34] stretch/main amd64 less amd64 481-2.1
File not found
Err:3 cdrom://[Debian GNU/Linux 9.6.0 _Stretch_ - Official amd64 DVD Binary-1 20181110-11:34] stretch/main amd64 patch amd64 2.7.5-1+deb9u1
File not found
E: Failed to fetch cdrom://[Debian GNU/Linux 9.6.0 _Stretch_ - Official amd64 DVD Binary-1 20181110-11:34]/pool/main/libe/liberror-perl/liberror-perl_0.17024-1_all.deb Disk notfound.
E: Failed to fetch cdrom://[Debian GNU/Linux 9.6.0 _Stretch_ - Official amd64 DVD Binary-1 20181110-11:34]/pool/main/l/less/less_481-2.1_amd64.deb File not found
E: Failed to fetch cdrom://[Debian GNU/Linux 9.6.0 _Stretch_ - Official amd64 DVD Binary-1 20181110-11:34]/pool/main/p/patch/patch_2.7.5-1+deb9u1_amd64.deb File not found
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
更换源步骤:
$ rm -f /etc/apt/sources.list
$ echo "deb http://ftp.cn.debian.org/debian/ stretch main" > /etc/apt/sources.list
$ echo "deb http://ftp.cn.debian.org/debian/ stretch-updates main" >> /etc/apt/sources.list
$ echo "deb http://ftp.cn.debian.org/debian-security stretch/updates main" >> /etc/apt/sources.list
apt-get update然后就可以用了。
温馨提示
感谢您浏览《debain9.6更换源,自带的不能用,装不上软件》
现邀请您关注我们的【5分享】(fivsha)公众号,你将获取更多的IT资源。
如果有疑问也可以在公众号里面回复您遇到的问题或是点击在线帮助联系我们。