重新授权onedrive

Lin*_*nda 5 cloud password microsoft

更改微软密码后,我一直在尝试寻找在 Ubuntu 终端中重新授权 onedrive 的方法。我的 ubuntu 版本:20.04.1 LTS。Onedrive 版本 v2.3.13-6-g38aa7f0。

如果我使用onedrive --synchronise我会收到错误:

错误:OneDrive 返回“HTTP 401 未经授权” - 无法初始化同步引擎
错误:请检查您的配置,因为您的访问令牌可能为空或无效

如果我使用journalctl --user-unit onedrive -f我会收到以下错误:

onedrive.service:主进程已退出,代码=已退出,状态=255/异常
onedrive.service:失败,结果为“退出代码”。
接下来就是上面提到的错误。

我找不到更改访问令牌的方法。如果有人能帮助我那就太好了!谢谢你!

Rin*_*ind 9

你需要更新...

~/.config/onedrive/refresh_token
Run Code Online (Sandbox Code Playgroud)

===

授权方式:

cp ~/.config/onedrive/refresh_token ~/.config/onedrive/refresh_token.backup
rm ~/.config/onedrive/refresh_token
onedrive
onedrive --synchronize --verbose
Run Code Online (Sandbox Code Playgroud)

===

显示您的配置:

onedrive --display-config
Run Code Online (Sandbox Code Playgroud)

如果您使用另一个路径进行配置,请调整上述命令。


小智 3

披露:我是 Linux 版 OneDrive 客户端的开发人员 - https://github.com/abraunegg/onedrive

您正在运行过时/不受支持的客户端版本 (2.3.13-6),并且您需要升级/安装最新的客户端。从“master”构建时,客户端的最新版本是 v2.4.8-6-g464398d;使用 Ubuntu PPA 时,客户端的最新版本是 v2.4.8。

不要使用默认的 Ubuntu 软件包。它们包含错误并且已经过时。

有关安装客户端的正确信息,请参阅 GitHub 站点:https://github.com/abraunegg/onedrive