Debian 8.5.0-如何将网络镜像添加到/etc/apt/sources.list文件

Debian 8.5.0-如何将网络镜像添加到/etc/apt/sources.list文件,debian,Debian,在安装Debian 8.5.0时,我忘记选择网络镜像。 当我使用apt get安装任何新软件时,它没有安装。 例如:安装vim E:包“vim”没有安装候选者 我的/etc/apt/sources.list文件如下: deb http://httpredir.debian.org/debian jessie main deb-src http://httpredir.debian.org/debian jessie main deb http://httpredir.debian.org/de

在安装Debian 8.5.0时,我忘记选择网络镜像。 当我使用apt get安装任何新软件时,它没有安装。 例如:安装vim

E:包“vim”没有安装候选者

我的/etc/apt/sources.list文件如下:

deb http://httpredir.debian.org/debian jessie main
deb-src http://httpredir.debian.org/debian jessie main

deb http://httpredir.debian.org/debian jessie-updates main
deb-src http://httpredir.debian.org/debian jessie-updates main

deb http://security.debian.org/ jessie/updates main contrib
deb-src http://security.debian.org/ jessie/updates main contrib

deb http://ftp.us.debian.org/debian/ jessie-updates main contrib non-free
deb-src http://ftp.us.debian.org/debian/ jessie-updates main contrib non-free
我自己添加了前四行,并修改了后两行,以便从《美国镜报》获取。不知道哪里出了问题


谢谢,

你做过“apt get update”吗?

你做过“apt get update”吗