Linux-Mint

如何在 Linux Mint 上安裝 sshfs?

  • July 29, 2013

我正在嘗試sshfs在 Linux Mint 上安裝以通過 SSH 掛載遠端文件夾。我已經在Google上上下搜尋瞭如何安裝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

我發現的所有教程都沒有提到添加任何儲存庫,只是為了進行通常的安裝。我不知所措。有人可以幫我解決這個相對簡單的問題嗎?

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

怎麼樣sudo apt-get install sshfs-fuse

做不到這一點,會apt-cache search sshfs返回什麼?

引用自:https://unix.stackexchange.com/questions/80174