从 Github 下载仓库

从 Github 下载仓库

我想下载并安装 fuse,我正在关注本教程

下载并编译最新版本的 fuse 源代码。在本文中,我们使用 fuse 版本 3.5。按照命令集将编译 fuse 并在内核中添加 fuse 模块。

cd /usr/src/
wget https://github.com/libfuse/libfuse/releases/download/fuse-3.5.0/fuse-3.5.0.tar.xz

我已经执行了上述 2 个命令,但似乎没有起作用——输出:

HTTP request sent, awaiting response... 302 Found
Location: https://github-production-release-asset-2e65be.s3.amazonaws.com/48296177/f5f40080-6080-11e9-831e-924025a26137?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20190819%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20190819T032718Z&X-Amz-Expires=300&X-Amz-Signature=9daad2fc48ac63c665e7bb3c4af49d43b4d9f04170b13e31cd134f8f4bf37c72&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Dfuse-3.5.0.tar.xz&response-content-type=application%2Foctet-stream [following]
--2019-08-19 03:27:18--  https://github-production-release-asset-2e65be.s3.amazonaws.com/48296177/f5f40080-6080-11e9-831e-924025a26137?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20190819%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20190819T032718Z&X-Amz-Expires=300&X-Amz-Signature=9daad2fc48ac63c665e7bb3c4af49d43b4d9f04170b13e31cd134f8f4bf37c72&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Dfuse-3.5.0.tar.xz&response-content-type=application%2Foctet-stream
Resolving github-production-release-asset-2e65be.s3.amazonaws.com (github-production-release-asset-2e65be.s3.amazonaws.com)... 52.217.36.188
Connecting to github-production-release-asset-2e65be.s3.amazonaws.com (github-production-release-asset-2e65be.s3.amazonaws.com)|52.217.36.188|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1021676 (998K) [application/octet-stream]
fuse-3.5.0.tar.xz: Permission denied

Cannot write to ‘fuse-3.5.0.tar.xz’ (Success).

我看不到任何正在下载的代码:/usr/src

答案1

只需在 wget 之前放置 sudo 即可。

fuse-3.5.0.tar.xz:权限被拒绝无法写入‘fuse-3.5.0.tar.xz’(成功)。

这部分表明您的系统拒绝在 usr/src/ 上写入 fuse-3.5.0.tar.xz,因为您没有权限。

相关内容