AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / server / 问题 / 1059157
Accepted
TylrRssl1
TylrRssl1
Asked: 2021-04-03 01:10:17 +0800 CST2021-04-03 01:10:17 +0800 CST 2021-04-03 01:10:17 +0800 CST

gcsfuse 无法在 centos-7 上安装

  • 772

自 4 月 1 日星期四以来,我们在每天从基本 centos-7 映像启动的 GCP comoute 虚拟机上遇到问题。

启动时,启动脚本将使用此处列出的命令安装 gcsFuse: https ://github.com/GoogleCloudPlatform/gcsfuse/blob/master/docs/installing.md#centos-and-red-hat-latest-releases

自最新版本以来,此安装方法现在失败:

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
epel/x86_64/metalink                                                                                                                                                                                                           | 8.6 kB  00:00:00     
 * base: mirror.atl.genesisadaptive.com
 * epel: iad.mirror.rackspace.com
 * extras: mirrors.mit.edu
 * updates: mirrors.raystedman.org
base                                                                                                                                                                                                                           | 3.6 kB  00:00:00     
extras                                                                                                                                                                                                                         | 2.9 kB  00:00:00     
gcsfuse/signature                                                                                                                                                                                                              |  844 B  00:00:00     
Retrieving key from https://packages.cloud.google.com/yum/doc/yum-key.gpg
Retrieving key from https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg
gcsfuse/signature                                                                                                                                                                                                              | 1.4 kB  00:00:00 !!! 
https://packages.cloud.google.com/yum/repos/gcsfuse-el7-x86_64/repodata/repomd.xml: [Errno -1] repomd.xml signature could not be verified for gcsfuse
Trying other mirror.

有谁知道如何解决这个错误?

google-cloud-platform gcsfuse
  • 1 1 个回答
  • 776 Views

1 个回答

  • Voted
  1. Best Answer
    Wojtek_B
    2021-04-03T04:49:59+08:002021-04-03T04:49:59+08:00

    有一个快速的解决方法,但这意味着跳过 GPG 存储库密钥验证。我只是改变repo_gpgcheck=1并repo_gpgcheck=0保持原样。

    最终脚本如下所示:

    sudo tee /etc/yum.repos.d/gcsfuse.repo > /dev/null <<EOF
    [gcsfuse]
    name=gcsfuse (packages.cloud.google.com)
    baseurl=https://packages.cloud.google.com/yum/repos/gcsfuse-el7-x86_64
    enabled=1
    gpgcheck=1
    repo_gpgcheck=0
    gpgkey=https://packages.cloud.google.com/yum/doc/yum-key.gpg
           https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg
    EOF
    

    结果是这样的:

    [wb@instance-1 yum.repos.d]$ sudo tee /etc/yum.repos.d/gcsfuse.repo > /dev/null <<EOF
    > [gcsfuse]
    > name=gcsfuse (packages.cloud.google.com)
    > baseurl=https://packages.cloud.google.com/yum/repos/gcsfuse-el7-x86_64
    > enabled=1
    > gpgcheck=1
    > repo_gpgcheck=0
    > gpgkey=https://packages.cloud.google.com/yum/doc/yum-key.gpg
    >        https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg
    > EOF
    [wb@instance-1 yum.repos.d]$ sudo yum update
    Loaded plugins: fastestmirror
    Loading mirror speeds from cached hostfile
     * base: atl.mirrors.clouvider.net
     * epel: mirror.steadfastnet.com
     * extras: centos.mirrors.hoobly.com
     * updates: mirror.genesisadaptive.com
    gcsfuse                                                                                  | 1.4 kB  00:00:00     
    gcsfuse/primary                                                                          | 2.5 kB  00:00:00     
    gcsfuse                                                                                                   16/16
    No packages marked for update
    [wb@instance-1 yum.repos.d]$ sudo yum install gcsfuse -y
    Loaded plugins: fastestmirror
    Loading mirror speeds from cached hostfile
     * base: atl.mirrors.clouvider.net
     * epel: mirror.steadfastnet.com
     * extras: centos.mirrors.hoobly.com
     * updates: mirror.genesisadaptive.com
    Resolving Dependencies
    --> Running transaction check
    ---> Package gcsfuse.x86_64 0:0.28.1-1 will be installed
    --> Processing Dependency: fuse for package: gcsfuse-0.28.1-1.x86_64
    --> Running transaction check
    ---> Package fuse.x86_64 0:2.9.2-11.el7 will be installed
    --> Finished Dependency Resolution
    
    Dependencies Resolved
    
    ================================================================================================================
     Package                  Arch                    Version                        Repository                Size
    ================================================================================================================
    Installing:
     gcsfuse                  x86_64                  0.28.1-1                       gcsfuse                  4.0 M
    Installing for dependencies:
     fuse                     x86_64                  2.9.2-11.el7                   base                      86 k
    
    Transaction Summary
    ================================================================================================================
    Install  1 Package (+1 Dependent package)
    
    Total download size: 4.1 M
    Installed size: 12 M
    Downloading packages:
    (1/2): fuse-2.9.2-11.el7.x86_64.rpm                                                      |  86 kB  00:00:00     
    (2/2): 4d9c7e630b6a8c14c6c054f5c23107be50e8d8a3b2707e6bef66ef6a236bb5c4-gcsfuse-0.28.1-1 | 4.0 MB  00:00:00     
    ----------------------------------------------------------------------------------------------------------------
    Total                                                                           7.4 MB/s | 4.1 MB  00:00:00     
    Running transaction check
    Running transaction test
    Transaction test succeeded
    Running transaction
      Installing : fuse-2.9.2-11.el7.x86_64                                                                     1/2 
      Installing : gcsfuse-0.28.1-1.x86_64                                                                      2/2 
      Verifying  : gcsfuse-0.28.1-1.x86_64                                                                      1/2 
      Verifying  : fuse-2.9.2-11.el7.x86_64                                                                     2/2 
    
    Installed:
      gcsfuse.x86_64 0:0.28.1-1                                                                                     
    
    Dependency Installed:
      fuse.x86_64 0:2.9.2-11.el7                                                                                    
    
    Complete!
    
    

    我刚刚在具有默认设置的 CentOS 7 的新虚拟机上对其进行了测试。我还将它用作启动脚本,它按预期工作。

    这里讨论了类似的问题,但这种方法对我不起作用。

    • 1

相关问题

  • 带有 OpenVPN 的 Google Compute Engine 上的 VPN 服务器

  • 如果您失去了 Google Apps 的管理员权限,如何恢复?

  • 云有多大?[关闭]

  • 谷歌应用引擎中的 joomla

  • 无需短信即可注册 Google AppEngine?

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve