我正在尝试sshfs
在 Linux Mint 上安装以通过 SSH 挂载远程文件夹。我已经在谷歌上搜索了如何安装sshfs
(因为我无法使用该命令),但我正在用头撞墙,因为我找不到它所在的存储库。
~ $ sshfs
The program 'sshfs' is currently not installed. You can install it by typing:
sudo apt-get install sshfs
~ $ sudo apt-get install sshfs
[sudo] password for XXXX:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package sshfs
编辑:在此处添加来自 Kalamazoo 答案的 @Nate 响应以进行代码格式化:
~ $ sudo apt-get install sshfs-fuse
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package sshfs-fuse
~ $ apt-cache search sshfs
~ $
编辑:添加输出cat /etc/apt/sources.list /etc/apt/sources.list.d/*.list
:
deb http://packages.linuxmint.com/ olivia main upstream import
deb http://ppa.launchpad.net/dockbar-main/ppa/ubuntu raring main
deb-src http://ppa.launchpad.net/dockbar-main/ppa/ubuntu raring main
### THIS FILE IS AUTOMATICALLY CONFIGURED ###
# You may comment out this entry, but any other modifications may be lost.
deb http://dl.google.com/linux/chrome/deb/ stable main
#deb file:///usr/share/local-repository binary/
deb http://ppa.launchpad.net/nuvola-player-builders/stable/ubuntu raring main
deb-src http://ppa.launchpad.net/nuvola-player-builders/stable/ubuntu raring main
# Do not edit this file manually, use Software Sources instead.
deb http://packages.linuxmint.com olivia main upstream import #id:linuxmint_main
deb http://archive.ubuntu.com/ubuntu raring main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu raring-updates main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu/ raring-security main restricted universe multiverse
deb http://archive.canonical.com/ubuntu/ raring partner
deb http://ppa.launchpad.net/webupd8team/jupiter/ubuntu raring main
deb-src http://ppa.launchpad.net/webupd8team/jupiter/ubuntu raring main
deb http://ppa.launchpad.net/webupd8team/sublime-text-2/ubuntu raring main
deb-src http://ppa.launchpad.net/webupd8team/sublime-text-2/ubuntu raring main
我发现的所有教程都没有提到添加任何存储库,只是进行常规安装。我不知所措。有人可以帮我解决这个相对简单的问题吗?
答案1
Mint(假设您使用的是 Mint 而不是 Mint Debian)可以使用 Ubuntu 存储库。事实上,它们应该默认配置,但它们似乎不在您的sources.list
.将此行添加到您的源中:
deb http://packages.ubuntu-com raring main restricted
然后运行
$ sudo apt-get update
$ sudo apt-get install sshfs
如果这不起作用,请从以下位置下载软件包这里并使用安装
$ sudo dpkg -i sshfs_2.4-1ubuntu1_amd64.deb
答案2
怎么样sudo apt-get install sshfs-fuse
?
如果失败的话,会apt-cache search sshfs
返回什么?
答案3
请尝试以下操作:
$ sudo apt-get update
$ sudo apt-get install sshfs
答案4
我在安装 Ubuntu 软件包时遇到了类似的问题。无奈之下,我打开了“软件源”应用程序,更改了我的 Ubuntu 镜像(更接近),选择了应用程序源并向后移植。更新后,我可以从 Ubuntu 存储库安装应用程序。我试图回溯我所采取的步骤,看看哪一步产生了效果,但即使在撤消所有操作之后,Ubuntu 软件包仍然在缓存中。因此,我不确定上面的哪一步解决了问题。