Bug 2538 - [Anolis 23 Preview][aarch64]yum安装sysak模块需要输入包全名并缺少相关python依赖,解决安装依赖问题,使用部分命令会报错和提示缺少相关依赖
Summary: [Anolis 23 Preview][aarch64]yum安装sysak模块需要输入包全名并缺少相关python依赖,解决安装依赖问题,使用部分命令会...
Status: RESOLVED DUPLICATE of bug 2547
Alias: None
Product: Antest
Classification: Infrastructures
Component: 测试用例 (show other bugs) 测试用例
Version: unspecified
Hardware: x86_64 Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: shuming
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-10-25 14:12 UTC by Banana
Modified: 2022-10-25 15:32 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Banana alibaba_cloud_group 2022-10-25 14:12:14 UTC
[问题描述]:
1、yum安装sysak缺少相关python依赖,无法正常安装;
2、解决安装依赖问题,使用部分命令会报错和提示缺少相关依赖。
3、yum安装不能直接输入yum install sysak,需要将sysak包名补全,见安装时报错问题描述。

1、安装时报错:
[root@iZbp14ub0x084rkaiux0ktZ ~]# yum install sysak
Last metadata expiration check: 0:05:52 ago on Tue Oct 25 14:03:43 2022.
No match for argument: sysak
Error: Unable to find a match: sysak
[root@iZbp14ub0x084rkaiux0ktZ ~]# yum list | grep sysak
Failed to set locale, defaulting to C.UTF-8
sysak-5.19.0-1.1.x86_64                                  1.3.0-1.an23                       Plus
[root@iZbp14ub0x084rkaiux0ktZ ~]# yum install sysak-5.19.0-1.1.x86_64
Failed to set locale, defaulting to C.UTF-8
Last metadata expiration check: 1:39:12 ago on Tue Oct 25 11:46:48 2022.
Error:
 Problem: conflicting requests
  - nothing provides /usr/bin/python2 needed by sysak-5.19.0-1.1-1.3.0-1.an23.x86_64
  - nothing provides /usr/bin/python2.7 needed by sysak-5.19.0-1.1-1.3.0-1.an23.x86_64
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)

2、命令执行报错:
[root@VM20190228-125 logs]# sysak list
sysak tools for user self-help analysis
    ossre_client        一键快速诊断当前系统可能存在的已知风险
    sysconf             用于比较2个不同系统或机器的配置差异(sysctl、模块列表、系统启动参数等)
    appscan             扫描运行进程可能存在的性能瓶颈点
    iosdiag             IO存储诊断工具,目前包括IO延迟自动诊断功能以及IO夯诊断或其他功能等等
    loadtask            自动诊断当前或历史系统负载高的原因

If you want to known the detail about the system, please use 'sysak list -a'.
[root@VM20190228-125 logs]# sysak ossre_client
  File "/usr/local/sysak/.sysak_components/tools/ossre_set/ossre.py", line 724
    await = float(line[await_index])
          ^
SyntaxError: invalid syntax
[root@VM20190228-125 logs]# sysak memleak -t
sysak_modules has not been installed, do you want to auto download and install ? Enter Y/N:y
no sysak server config file
sysak_modules not installed, exit ...
[root@VM20190228-125 logs]#


[环境信息]:
内核信息:
# uname -r
5.10.134-12.1.an23.x86_64

操作系统信息:
# cat /etc/os-release
NAME="Anolis OS"
VERSION="23"
ID="anolis"
VERSION_ID="23"
PLATFORM_ID="platform:an23"
PRETTY_NAME="Anolis OS 23"
ANSI_COLOR="0;31"
HOME_URL="https://openanolis.cn/"
BUG_REPORT_URL="https://bugzilla.openanolis.cn/"


软件包信息:
# yum info qt5-assistant.x86_64
Last metadata expiration check: 1:46:15 ago on Tue Oct 25 11:46:48 2022.
Available Packages
Name         : qt5-assistant
Version      : 5.15.5
Release      : 1.an23
Architecture : x86_64
Size         : 361 k
Source       : qt5-qttools-5.15.5-1.an23.src.rpm
Repository   : AppStream
Summary      : Documentation browser for Qt5
URL          : http://www.qt.io
License      : LGPLv3 or LGPLv2
Description  : Documentation browser for Qt5.

[问题发生概率]:必现

[复现步骤]:
1、yum安装sysak缺少相关python依赖,无法正常安装;
yum list | grep sysak
yum install -y sysak + 版本号
2、解决安装依赖问题,使用部分命令会报错和提示缺少相关依赖。
解决安装依赖问题为前提,安装成功后执行:
sysak ossre_client
sysak memleak -t
3、yum安装不能直接输入yum install sysak,需要将sysak包名补全
yum install -y sysak
yum list | grep sysak
yum install -y sysak + 版本号
Comment 1 Banana alibaba_cloud_group 2022-10-25 14:40:45 UTC
qt5软件包信息为复制的忘记删除,属于多上传的无关内容。
Comment 2 bolong_tbl alibaba_cloud_group 2022-10-25 15:32:17 UTC
描述多了无效的内容,重新提一个,这个重复了

*** This bug has been marked as a duplicate of bug 2547 ***