suse 12SP5 安装Gluster 6.10 需要安装 python3-requests

SUSE 12SP5 安装GLUSTER 6.10 要点

rpm -ivh glusterfs-6.10-100.1.x86_64.rpm
warning: glusterfs-6.10-100.1.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID 4b432c0e: NOKEY
error: Failed dependencies:
        python3-requests is needed by glusterfs-6.10-100.1.x86_64

提示需要安装 PYTHON3-REQUESTS

安装pip
python3 -m ensurepip --default-pip

升级pip
pip install --upgrade pip 

安装python3

zypper in python3 python3-base

安装python3-requests库 单单是这个还不够,gluster提示没有找到
python3 -m pip install requests

warning: glusterfs-6.10-100.1.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID 4b432c0e: NOKEY
error: Failed dependencies:
        python3-requests is needed by glusterfs-6.10-100.1.x86_64
 

zypper in  python3-requests //没有注册的SLES 12SP5提示找不到这个包

注册suse后 可以安装

linux-12sp5-1:~ # zypper in  python3-requests
Refreshing service 'SUSE_Linux_Enterprise_Server_12_SP5_x86_64'.
Loading repository data...
Reading installed packages...
Resolving package dependencies...

The following 4 NEW packages are going to be installed:
  python3-certifi python3-chardet python3-requests python3-urllib3

4 new packages to install.
Overall download size: 528.8 KiB. Already cached: 0 B. After the operation, additional 2.4 MiB will be used.
Continue? [y/n/...? shows all options] (y):
Retrieving package python3-certifi-2018.4.16-3.6.1.noarch                (1/4),  10.9 KiB (  8.3 KiB unpacked)
Retrieving: python3-certifi-2018.4.16-3.6.1.noarch.rpm .................................................[done]
Retrieving package python3-chardet-3.0.4-5.6.1.noarch                    (2/4), 163.8 KiB (  1.1 MiB unpacked)
Retrieving: python3-chardet-3.0.4-5.6.1.noarch.rpm ........................................[done (96.0 KiB/s)]
Retrieving package python3-urllib3-1.22-3.20.1.noarch                    (3/4), 199.5 KiB (975.5 KiB unpacked)
Retrieving: python3-urllib3-1.22-3.20.1.noarch.rpm .....................................................[done]
Retrieving package python3-requests-2.20.1-5.2.noarch                    (4/4), 154.6 KiB (375.4 KiB unpacked)
Retrieving: python3-requests-2.20.1-5.2.noarch.rpm .....................................................[done]
Checking for file conflicts: ...........................................................................[done]
(1/4) Installing: python3-certifi-2018.4.16-3.6.1.noarch ...............................................[done]
(2/4) Installing: python3-chardet-3.0.4-5.6.1.noarch ...................................................[done]
Additional rpm output:
update-alternatives: using /usr/bin/chardetect-3.4 to provide /usr/bin/chardetect (chardetect) in auto mode


(3/4) Installing: python3-urllib3-1.22-3.20.1.noarch ...................................................[done]
(4/4) Installing: python3-requests-2.20.1-5.2.noarch ...................................................[done]
linux-12sp5-1:~ #
 

zypper in  python3-requests
Refreshing service 'SUSE_Linux_Enterprise_Server_12_SP5_x86_64'.
Retrieving repository 'SLES12-SP5-Updates' metadata ......................................................................[done]
Building repository 'SLES12-SP5-Updates' cache ...........................................................................[done]
Loading repository data...
Reading installed packages...
'python3-requests' is already installed.
No update candidate for 'python3-requests-2.20.1-5.2.noarch'. The highest available version is already installed.
Resolving package dependencies...
 

之后可以顺利安装GLUSTER 6.10

标签
菜单分类