我无法使用 yum 安装软件包 [Errno 5] [Errno 13] 权限被拒绝

我无法使用 yum 安装软件包 [Errno 5] [Errno 13] 权限被拒绝

我无法在服务器上安装 git 包。以下是 yum 命令的输出:

   [root@sbybz221033 ~]# yum update git
    Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
    Resolving Dependencies
    --> Running transaction check
    ---> Package git.x86_64 0:1.8.3.1-21.el7_7 will be updated
    --> Processing Dependency: git = 1.8.3.1-21.el7_7 for package: perl-Git-1.8.3.1-21.el7_7.noarch
    ---> Package git.x86_64 0:1.8.3.1-22.el7_8 will be an update
    --> Running transaction check
    ---> Package perl-Git.noarch 0:1.8.3.1-21.el7_7 will be updated
    ---> Package perl-Git.noarch 0:1.8.3.1-22.el7_8 will be an update
    --> Finished Dependency Resolution

    Dependencies Resolved

    ============================================================================================================
     Package              Arch               Version                       Repository                      Size
    ============================================================================================================
    Updating:
     git                  x86_64             1.8.3.1-22.el7_8              rhel-7-server-rpms             4.4 M
    Updating for dependencies:
     perl-Git             noarch             1.8.3.1-22.el7_8              rhel-7-server-rpms              56 k

    Transaction Summary
    ============================================================================================================
    Upgrade  1 Package (+1 Dependent package)

    Total download size: 4.4 M
    Is this ok [y/d/N]: y
    Downloading packages:


    Error downloading packages:
      git-1.8.3.1-22.el7_8.x86_64: [Errno 5] [Errno 13] Permission denied
      perl-Git-1.8.3.1-22.el7_8.noarch: [Errno 5] [Errno 13] Permission denied

    [root@sbybz221033 ~]# 

相关内容