我的 Debian Linux 上没有安装午夜指挥官,所以我尝试下载它。
我跑进apt-get install mc
了终端,但它说the pack is not found
.我以 root 身份完成了这项任务,并且互联网连接非常完美。不知道为什么我无法下载并安装MC。有人知道吗?
我的/etc/apt/sources.list
:
#
# deb cdrom: [Debian GNU/Linux 7.6.0 _Wheezy_ - Offical amd64 CD Binary-1 20140712-14:11]/ wheezy main
deb cdrom: [Debian GNU/Linux 7.6.0 _Wheezy_ - Offical amd64 CD Binary-1 20140712-14:11]/wheezy main
deb http://security.debian.org/ wheezy/update main
deb-src http://security.debian.org/ wheezy/updates main
# wheezy-updates, previously known as 'volatile'
# A networl mirror was not selected during install. The following entries
# are provided as examples, but you should amend them as appropriate
# for your mirror of choice.
#
# deb http://ftp.debian.org/debian/ wheezy-updates main
# deb-src http://ftp.debian.org/debian/ wheezy-updates main
答案1
您缺少主要的 Debian 存储库,您的源仅指向安全存储库。取消注释中的最后几行/etc/apt/sources/list
。改变这个:
# deb http://ftp.debian.org/debian/ wheezy-updates main
# deb-src http://ftp.debian.org/debian/ wheezy-updates main
对此:
deb http://ftp.debian.org/debian/ wheezy main
deb-src http://ftp.debian.org/debian/ wheezy main
然而,这将使您能够访问通用存储库,如果您选择本地镜像之一,您将获得更好的性能。所以,要么选择一个离你最近的这个清单或使用netselect-apt
:
sudo apt-get install netselect-apt
sudo netselect-apt -n wheezy
sudo cp ./sources.list /etc/apt/sources.list
无论您选择做什么,请记住通过运行来刷新您的源
sudo apt-get update
答案2
使用 Debian 重定向器 (http://http.debian.net/)...
重定向器使用用户和镜像的地理位置和网络位置、所请求文件的体系结构、IP 地址系列、镜像的可用性和新鲜度以及其他一些信息。
将 main、contrib 和 non-free 与重定向器一起使用,/etc/apt/sources.list
如下所示:
deb http://http.debian.net/debian/ wheezy main contrib non-free
deb-src http://http.debian.net/debian/ wheezy main contrib non-free
deb http://security.debian.org/ wheezy/updates main contrib
deb-src http://security.debian.org/ wheezy/updates main contrib
# wheezy-updates, previously known as 'volatile'
deb http://http.debian.net/debian/ wheezy-updates main contrib
deb-src http://http.debian.net/debian/ wheezy-updates main contrib
更新:sudo apt-get update
安装 mc:sudo apt-get install mc