linux9更换软件源,debain9.6更换源,自带的不能用,装不上软件

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资源。

如果有疑问也可以在公众号里面回复您遇到的问题或是点击在线帮助联系我们。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值