由于“需要身份验证才能以超级用户身份运行‘/usr/bin/dropbox’”错误,无法运行 Dropbox

use*_*212 6 nautilus dropbox

当我从 12 升级到 13 时,没有任何问题。去 14.04 得到相同的消息:

Nautilus Restart Required 
Run Code Online (Sandbox Code Playgroud)

Dropbox 需要重新启动 Nautilus 才能正常运行。

(带有重启 Nautilus 的按钮)

当我这次点击按钮时,没有任何反应。我可以使用 Dropbox 文档中的命令启动它:

~/.dropbox-dist/dropboxd
Run Code Online (Sandbox Code Playgroud)

就同​​步 Dropbox 中的文件而言,一切似乎都很好。我可以在此过程中让终端保持开启状态,但它应该自行完成此操作。

我确实在启动时收到消息:

Authentication is needed to run '/usr/bin/dropbox' as the super user
Run Code Online (Sandbox Code Playgroud)

我输入了密码,但似乎没有任何反应。看来我应该做更多的事情了。

谁能帮我解决这个问题?

mha*_*hat 4

这些命令将解决您的问题:

sudo rm -rf /var/lib/dropbox/.dropbox-dist
dropbox start -i
Run Code Online (Sandbox Code Playgroud)

  • 这些命令有什么作用?如果能再补充一点就好了。任何以“sudo rm -rf”开头的命令都需要一个很好的解释。:) (3认同)
  • 它将删除旧的 Dropbox 安装文件并重新安装。请参阅 https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=734628 (2认同)

Mil*_*iez 1

The executable file for Dropbox lies in the \xe2\x80\x9c/usr/bin\xe2\x80\x9d folder and it is pointing to the \xe2\x80\x9c/var/lib/dropbox\xe2\x80\x9d folder for its config files. Since the \xe2\x80\x9c/var/lib/dropbox\xe2\x80\x99 folder is in the root directory, it will need superuser permission for Dropbox to be able to access it.

\n\n

However, that is not the main cause of the problem. The main issue is that your config file should lie in your home folder (~/.dropbox-dist/), and it shouldn\xe2\x80\x99t point to the \xe2\x80\x9c/var/lib/dropbox\xe2\x80\x9d folder.

\n\n
    \n
  1. Open a terminal and type:

    \n\n

    which dropbox

  2. \n
  3. Open it with a text editor:

    \n\n

    sudo nano /usr/bin/dropbox

  4. \n
  5. Scroll down in the file until you find the lines:

    \n\n

    PARENT_DIR = os.path.expanduser("/var/lib/dropbox")

  6. \n
\n\n

All we need to do is to change the filepath \xe2\x80\x9c/var/lib/dropbox\xe2\x80\x9d to \xe2\x80\x9c~\xe2\x80\x9d, so it becomes:

\n\n
PARENT_DIR = os.path.expanduser("~")\n
Run Code Online (Sandbox Code Playgroud)\n\n

This will direct Dropbox to access your Home folder for the config files.

\n\n
    \n
  1. Restart Dropbox.

    \n\n

    dropbox start -i

  2. \n
\n\n

摘自这里: http: //www.maketecheasier.com/fixing-authentication-issue-dropbox-ubuntu/

\n