[问题描述] 兆芯物理机,使用anolis7.9 x86 RC1 iso装机,由于物理机所在网络限制无法连接外网,装机后的系统yum源采用iso挂载方式,搭建的本地源 在yum install libbcc时缺少依赖clang-libs = 7.0.1 [环境信息]: 内核信息: # uname -r 4.19.91-25.an7.x86_64 操作系统信息: # cat /etc/os-release NAME="Anolis OS" VERSION="7.9" ID="anolis" ID_LIKE="rhel fedora centos" VERSION_ID="7.9" PRETTY_NAME="Anolis OS 7.9" ANSI_COLOR="0;31" HOME_URL="https://openanolis.cn/" BUG_REPORT_URL="https://bugs.openanolis.cn/" CENTOS_MANTISBT_PROJECT="CentOS-7" CENTOS_MANTISBT_PROJECT_VERSION="7" REDHAT_SUPPORT_PRODUCT="centos" REDHAT_SUPPORT_PRODUCT_VERSION="7" CPU信息: # lscpu Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit Byte Order: Little Endian CPU(s): 16 On-line CPU(s) list: 0-15 Thread(s) per core: 1 Core(s) per socket: 8 Socket(s): 2 NUMA node(s): 2 Vendor ID: CentaurHauls CPU family: 7 Model: 59 Model name: ZHAOXIN KaiSheng KH-37800D@2.7GHz Stepping: 14 CPU MHz: 1200.000 CPU max MHz: 2700.0000 CPU min MHz: 1200.0000 BogoMIPS: 5389.29 Virtualization: VT-x L1d cache: 32K L1i cache: 32K L2 cache: 4096K NUMA node0 CPU(s): 0-7 NUMA node1 CPU(s): 8-15 Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon rep_good nopl xtopology nonstop_tsc cpuid pni pclmulqdq monitor vmx smx est tm2 ssse3 cx16 xtpr pcid sse4_1 sse4_2 movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand rng rng_en sm3 sm4 sm3_en sm4_en ace ace_en ace2 phe phe_en pmm pmm_en parallax parallax_en rng2 rng2_en phe2 phe2_en rsa rsa_en lahf_lm abm 3dnowprefetch invpcid_single ibrs ibpb tpr_shadow vnmi ept vpid fsgsbase tsc_adjust bmi1 smep bmi2 invpcid rdseed adx sha_ni xsaveopt dtherm ida umip arch_capabilities [期望结果]: 可以成功安装libbcc包 [实际结果]: 安装libbcc包失败 # yum install libbcc Loaded plugins: fastestmirror, langpacks, product-id, search-disabled-repos, subscription-manager This system is not registered with an entitlement server. You can use subscription-manager to register. Loading mirror speeds from cached hostfile Resolving Dependencies --> Running transaction check ---> Package libbcc.x86_64 0:0.16.0-1.an7 will be installed --> Processing Dependency: clang-libs = 7.0.1 for package: libbcc-0.16.0-1.an7.x86_64 --> Finished Dependency Resolution Error: Package: libbcc-0.16.0-1.an7.x86_64 (79-anck-x86) Requires: clang-libs = 7.0.1 You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest [问题发生概率]:必现 [复现步骤]: yum -y install libbcc
在飞腾机器上测试arm内核也存在同样问题: # yum install libbcc Loaded plugins: fastestmirror, langpacks, product-id, search-disabled-repos, subscription-manager This system is not registered with an entitlement server. You can use subscription-manager to register. Loading mirror speeds from cached hostfile Resolving Dependencies --> Running transaction check ---> Package libbcc.aarch64 0:0.16.0-1.an7 will be installed --> Processing Dependency: clang-libs = 7.0.1 for package: libbcc-0.16.0-1.an7.aarch64 --> Finished Dependency Resolution Error: Package: libbcc-0.16.0-1.an7.aarch64 (local) Requires: clang-libs = 7.0.1 You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest 内核信息: # uname -r 4.19.91-25.an7.aarch64
Hi man , sorry to late. UOS developer checked the Requires: clang-libs = 7.0.1 , it not provide by anolis os 7.9 rc1 mirrors or repo. some details as below: llvm-libs-7.0.1-4.4.al7.x86_64 clang-libs-7.0.1-9.3.al7.x86_64 clang-tools-extra-7.0.1-9.3.al7.x86_64 al7 maybe come from alinux repo, please Confirmed anolis need it indeed , and then add Requires packages to dist-an7 or dist-an7-updates.
配置 https://mirrors.aliyun.com/alinux/2/plus/$arch/ yum repo 可以解决你的问题。
如开发评论,在repo源中包含即可,关闭该bug