bla*_*ail 6 debian mc package-management
我的 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
Run Code Online (Sandbox Code Playgroud)
您缺少主要的 Debian 存储库,您的来源仅指向安全存储库。取消注释中的最后几行/etc/apt/sources/list。改变这个:
# deb http://ftp.debian.org/debian/ wheezy-updates main
# deb-src http://ftp.debian.org/debian/ wheezy-updates main
Run Code Online (Sandbox Code Playgroud)
对此:
deb http://ftp.debian.org/debian/ wheezy main
deb-src http://ftp.debian.org/debian/ wheezy main
Run Code Online (Sandbox Code Playgroud)
但是,这将使您可以访问通用存储库,如果您选择本地镜像之一,您将获得更好的性能。所以,要么从这个列表中选择一个离你很近的人,要么使用netselect-apt:
sudo apt-get install netselect-apt
sudo netselect-apt -n wheezy
sudo cp ./sources.list /etc/apt/sources.list
Run Code Online (Sandbox Code Playgroud)
无论您选择做什么,请记住通过运行来刷新您的源
sudo apt-get update
Run Code Online (Sandbox Code Playgroud)