Bug 9455 - [anolis8.8][no_arch] python安装后并未创建软连接/usr/bin/python
Summary: [anolis8.8][no_arch] python安装后并未创建软连接/usr/bin/python
Status: NEW
Alias: None
Product: Anolis OS 8
Classification: Anolis OS
Component: BaseOS Packages (show other bugs) BaseOS Packages
Version: 8.8
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: Jacob
QA Contact: shuming
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-07-01 10:34 UTC by Accelerator
Modified: 2024-07-01 10:34 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Accelerator alibaba_cloud_group 2024-07-01 10:34:48 UTC
Description of problem:
安装了python2 python36的包,但未创建/usr/bin/python软连接,直接现象就是系统which python获取不到python
日志如下:
[root@iZbp13vgsw0i4iqsran5e8Z ~]# yum install python2 python36
Failed to set locale, defaulting to C.UTF-8
Last metadata expiration check: 0:04:00 ago on Mon Jul  1 10:27:52 2024.
Package python2-2.7.18-17.0.1.module+an8.9.0+11214+2a3a4a9e.x86_64 is already installed.
Package python36-3.6.8-39.module+an8.9.0+11221+05282142.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!
[root@iZbp13vgsw0i4iqsran5e8Z ~]# which python
/usr/bin/which: no python in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin)

Version-Release number of selected component (if applicable):
python2-2.7.18-17.0.1.module+an8.9.0+11214+2a3a4a9e.x86_64
python36-3.6.8-39.module+an8.9.0+11221+05282142.x86_64

How reproducible:


Steps to Reproduce:
1.yum install -y python2 python3
2.which python

Actual results:
/usr/bin/which: no python in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin)

Expected results:
打印python二进制地址

Additional info:
另外这个问题是在6.26的测试发现的,此前都没有这个问题