Bug 194 - [Anolis OS 8.4 龙芯版][4.19.190-3.an8.loongarch64]开发环境测试语言项安装nodejs failed,yum源无该安装包
Summary: [Anolis OS 8.4 龙芯版][4.19.190-3.an8.loongarch64]开发环境测试语言项安装nodejs failed,yum源无...
Status: VERIFIED FIXED
Alias: None
Product: Anolis OS 8
Classification: Anolis OS
Component: Images&Installations (show other bugs) Images&Installations
Version: 8.4
Hardware: loongarch Linux
: P2-High S2-major
Target Milestone: ---
Assignee: 葛立伟
QA Contact: shuming
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-12-23 20:59 UTC by xugangjian
Modified: 2022-01-21 16:31 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description xugangjian alibaba_cloud_group 2021-12-23 20:59:04 UTC
[问题描述]
龙芯 Anolis OS 8.4 loongarch64开发环境测试语言项安装nodejs failed,yum源无该安装包

[root@localhost ~]# yum install nodejs
Last metadata expiration check: 1:15:34 ago on Thu 23 Dec 2021 11:00:18 AM CST.
No match for argument: nodejs
Error: Unable to find a match: nodejs

[环境信息]:
内核信息:
# uname -r
4.19.190-3.an8.loongarch64

操作系统信息:
# cat /etc/os-release
NAME="Anolis OS"
VERSION="8.4"
ID="anolis"
ID_LIKE="rhel fedora centos"
VERSION_ID="8.4"
PLATFORM_ID="platform:an8"
PRETTY_NAME="Anolis OS 8.4"
ANSI_COLOR="0;31"
HOME_URL="https://openanolis.cn/"


cpu信息:
# lscpu
Architecture: loongarch64
Byte Order: Little Endian
CPU(s): 4
On-line CPU(s) list: 0-3
Thread(s) per core: 1
Core(s) per socket: 4
Socket(s): 1
NUMA node(s): 1
CPU family: Loongson-64bit
Model name: Loongson-3A5000LL
BogoMIPS: 4600.00
L1d cache: 64K
L1i cache: 64K
L2 cache: 256K
L3 cache: 16384K
NUMA node0 CPU(s): 0-3
Flags: cpucfg lam ual fpu lsx lasx complex crypto lvz lbt_x86 lbt_arm lbt_mips

内存信息:
# free -h
              total used free shared buff/cache available
Mem: 15Gi 578Mi 14Gi 15Mi 460Mi 13Gi
Swap: 7.9Gi 0B 7.9Gi


[期望结果]:
nodejs 能 正常安装使用

[实际结果]:
nodejs 安装失败
Comment 1 geliwei-ali 2021-12-27 19:55:12 UTC
详见RC1声明
Comment 2 xugangjian alibaba_cloud_group 2022-01-04 14:35:44 UTC
已和开发确认, rc2 yum源还是存在该问题,包安装失败,缺失安装包。

[root@localhost ~]# yum install nodejs
Last metadata expiration check: 1:13:06 ago on Tue 04 Jan 2022 01:05:48 PM CST.
No match for argument: nodejs
Error: Unable to find a match: nodejs
[root@localhost ~]#
Comment 3 shanxifanshi alibaba_cloud_group 2022-01-10 16:02:14 UTC
qt5-qtwebchannel-examples包安装失败,失败原因是缺少/usr/bin/node,经排查该二进制文件是由nodejs提供
# yum install qt5-qtwebchannel-examples
Last metadata expiration check: 0:02:02 ago on Mon 10 Jan 2022 03:53:21 PM CST.
Error:
 Problem: conflicting requests
  - nothing provides /usr/bin/node needed by qt5-qtwebchannel-examples-5.12.5-1.el8.loongarch64
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)

# yum provides /usr/bin/node
Last metadata expiration check: 0:38:19 ago on Mon 10 Jan 2022 03:18:07 PM CST.
nodejs-1:10.19.0-1.module+el8.2.0+10019+e2fe9eb8.x86_64 : JavaScript runtime
Repo        : AppStream
Matched from:
Filename    : /usr/bin/node

nodejs-1:10.24.0-1.module+el8.2.0+10166+90fc3270.x86_64 : JavaScript runtime
Repo        : AppStream
Matched from:
Filename    : /usr/bin/node
Comment 5 shanxifanshi alibaba_cloud_group 2022-01-13 18:09:51 UTC
(In reply to shanxifanshi from comment #3)
> qt5-qtwebchannel-examples包安装失败,失败原因是缺少/usr/bin/node,经排查该二进制文件是由nodejs提供
> # yum install qt5-qtwebchannel-examples
> Last metadata expiration check: 0:02:02 ago on Mon 10 Jan 2022 03:53:21 PM
> CST.
> Error:
>  Problem: conflicting requests
>   - nothing provides /usr/bin/node needed by
> qt5-qtwebchannel-examples-5.12.5-1.el8.loongarch64
> (try to add '--skip-broken' to skip uninstallable packages or '--nobest' to
> use not only best candidate packages)
> 
> # yum provides /usr/bin/node
> Last metadata expiration check: 0:38:19 ago on Mon 10 Jan 2022 03:18:07 PM
> CST.
> nodejs-1:10.19.0-1.module+el8.2.0+10019+e2fe9eb8.x86_64 : JavaScript runtime
> Repo        : AppStream
> Matched from:
> Filename    : /usr/bin/node
> 
> nodejs-1:10.24.0-1.module+el8.2.0+10166+90fc3270.x86_64 : JavaScript runtime
> Repo        : AppStream
> Matched from:
> Filename    : /usr/bin/node

-----
使用开发更新后的repo源进行验证,nodejs和qt5-qtwebchannel-examples均可成功安装,问题已解决
# yum list qt5-qtwebchannel-examples
Last metadata expiration check: 0:00:25 ago on Thu 13 Jan 2022 06:06:30 PM CST.
Installed Packages
qt5-qtwebchannel-examples.loongarch64                                    5.12.5-1.el8                                     @AppStream

# yum list nodejs
Last metadata expiration check: 0:00:33 ago on Thu 13 Jan 2022 06:06:30 PM CST.
Installed Packages
nodejs.loongarch64                                            1:14.16.1-2.an8                                             @AppStream