debian: aptitude install sshfs > 找不到任何名称为 [已关闭] 的包

debian: aptitude install sshfs > 找不到任何名称为 [已关闭] 的包

为什么 aptitude 找不到 sshfs?如何通过 aptitude 安装 sshfs?请求,没有第三方。

https://packages.debian.org/en/wheezy/sshfs

我输入了这个:

root@s18:~# aptitude update
Hit http://security.debian.org wheezy/updates Release.gpg
Hit http://security.debian.org wheezy/updates Release
Hit http://ftp.de.debian.org wheezy Release.gpg
Hit http://security.debian.org wheezy/updates/main Sources
Hit http://ftp.de.debian.org wheezy Release
Hit http://security.debian.org wheezy/updates/contrib Sources
Hit http://security.debian.org wheezy/updates/non-free Sources
Hit http://security.debian.org wheezy/updates/main amd64 Packages
Hit http://ftp.de.debian.org wheezy/main Sources
Hit http://security.debian.org wheezy/updates/contrib amd64 Packages
Hit http://security.debian.org wheezy/updates/non-free amd64 Packages
Hit http://ftp.de.debian.org wheezy/contrib Sources
Hit http://security.debian.org wheezy/updates/contrib Translation-en
Hit http://security.debian.org wheezy/updates/main Translation-en
Hit http://ftp.de.debian.org wheezy/non-free Sources
Hit http://security.debian.org wheezy/updates/non-free Translation-en
Hit http://ftp.de.debian.org wheezy/contrib amd64 Packages
Hit http://ftp.de.debian.org wheezy/non-free amd64 Packages
Hit http://ftp.de.debian.org wheezy/contrib Translation-en
Hit http://ftp.de.debian.org wheezy/non-free Translation-en

root@s18:~# aptitude dist-upgrade
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.

root@s18:~# aptitude install sshfs
Couldn't find any package whose name or description matched "sshfs"
Couldn't find any package whose name or description matched "sshfs"
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.

root@s18:~# cat /etc/debian_version 
7.5
root@s18:~# 

我的资料来源:

root@s18:~# cat /etc/apt/sources.list
deb http://ftp.de.debian.org/debian/ wheezy contrib non-free
deb-src http://ftp.de.debian.org/debian/ wheezy main contrib non-free
deb http://security.debian.org/ wheezy/updates main contrib non-free
deb-src http://security.debian.org/ wheezy/updates main contrib non-free
root@s18:~# ls /etc/apt/sources.list.d/
root@s18:~#

root@s18:~# aptitude search sshfs
root@s18:~# apt-cache search sshfs       
root@s18:~# apt-get -s install sshfs
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package sshfs
root@s18:~# 

答案1

您的问题是您的主要deb源行:

deb http://ftp.de.debian.org/debian/ wheezy contrib non-free

这会拉入版本的contrib和存储库,non-freewheezy但不是main存储库这是大多数 Debian 所在的地方。然而,您正在拉取安全更新主要的以及;我想自从 Wheezy 发布以来,sshfs 还没有任何值得发布的东西。

正如在问题的评论中发现的那样,添加main存储库可以解决问题:

deb http://ftp.de.debian.org/debian/ wheezy main contrib non-free

相关内容