Bug 266 - [Anolis OS 8.4 龙芯版][4.19.190-3.an8.loongarch64][AppStream]yum install安装ant和ant-lib失败,报错No available modular metadata for modular package
Summary: [Anolis OS 8.4 龙芯版][4.19.190-3.an8.loongarch64][AppStream]yum install安装ant和an...
Status: CLOSED FIXED
Alias: None
Product: Anolis OS 8
Classification: Anolis OS
Component: BaseOS Modules (show other bugs) BaseOS Modules
Version: 8.4
Hardware: loongarch Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: geliwei-ali
QA Contact: shuming
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-01-04 18:33 UTC by shanxifanshi
Modified: 2023-07-25 15:23 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 shanxifanshi alibaba_cloud_group 2022-01-04 18:33:58 UTC
[问题描述]:
yum install安装ant和ant-lib失败,报错No available modular metadata for modular package

[环境信息]:
内核信息:
# 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/"

# yum list ant
Last metadata expiration check: 0:19:40 ago on Tue 04 Jan 2022 06:11:12 PM CST.
Available Packages
ant.noarch                                                1.10.5-1.module+an8.4.0+10490+9a974b21                                                AppStream

# yum list ant-lib
Last metadata expiration check: 0:19:45 ago on Tue 04 Jan 2022 06:11:12 PM CST.
Available Packages
ant-lib.noarch                                              1.10.5-1.module+an8.4.0+10490+9a974b21                                              AppStream                                             

[复现概率]:必现

[期望结果]:
yum install可以成功安装ant和ant-lib包

[实际结果]:
ant和ant-lib包安装失败

# yum install ant
Last metadata expiration check: 0:14:07 ago on Tue 04 Jan 2022 06:11:12 PM CST.
Dependencies resolved.
=========================================================================================================================================================
 Package                                 Architecture               Version                                               Repository                Size
=========================================================================================================================================================
Installing:
 ant                                     noarch                     1.10.5-1.module+an8.4.0+10490+9a974b21                AppStream                192 k
Installing dependencies:
 ant-lib                                 noarch                     1.10.5-1.module+an8.4.0+10490+9a974b21                AppStream                2.0 M
 java-1.8.0-openjdk                      loongarch64                1:1.8.0.282.b08-1.an8                                 AppStream                385 k
 java-1.8.0-openjdk-devel                loongarch64                1:1.8.0.282.b08-1.an8                                 AppStream                7.9 M
 javapackages-tools                      noarch                     5.3.0-1.module+an8.4.0+10468+3b8a3d18                 AppStream                 42 k
 ttmkfdir                                loongarch64                3.0.9-54.el8                                          AppStream                 56 k
 xorg-x11-fonts-Type1                    noarch                     7.5-19.el8                                            AppStream                521 k

Transaction Summary
=========================================================================================================================================================
Install  7 Packages

Total download size: 11 M
Installed size: 43 M
Is this ok [y/N]: y
Downloading Packages:
(1/7): ant-1.10.5-1.module+an8.4.0+10490+9a974b21.noarch.rpm                                                             2.7 MB/s | 192 kB     00:00
(2/7): java-1.8.0-openjdk-1.8.0.282.b08-1.an8.loongarch64.rpm                                                            3.0 MB/s | 385 kB     00:00
(3/7): ant-lib-1.10.5-1.module+an8.4.0+10490+9a974b21.noarch.rpm                                                          13 MB/s | 2.0 MB     00:00
(4/7): javapackages-tools-5.3.0-1.module+an8.4.0+10468+3b8a3d18.noarch.rpm                                               772 kB/s |  42 kB     00:00
(5/7): ttmkfdir-3.0.9-54.el8.loongarch64.rpm                                                                             782 kB/s |  56 kB     00:00
(6/7): xorg-x11-fonts-Type1-7.5-19.el8.noarch.rpm                                                                        6.3 MB/s | 521 kB     00:00
(7/7): java-1.8.0-openjdk-devel-1.8.0.282.b08-1.an8.loongarch64.rpm                                                       23 MB/s | 7.9 MB     00:00
---------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                     27 MB/s |  11 MB     00:00
Running transaction check
No available modular metadata for modular package 'ant-1.10.5-1.module+an8.4.0+10490+9a974b21.noarch', it cannot be installed on the system
No available modular metadata for modular package 'ant-lib-1.10.5-1.module+an8.4.0+10490+9a974b21.noarch', it cannot be installed on the system
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'yum clean packages'.
Error: No available modular metadata for modular package

# yum install ant-lib
Last metadata expiration check: 0:14:21 ago on Tue 04 Jan 2022 06:11:12 PM CST.
Dependencies resolved.
=========================================================================================================================================================
 Package                     Architecture               Version                                                      Repository                     Size
=========================================================================================================================================================
Installing:
 ant-lib                     noarch                     1.10.5-1.module+an8.4.0+10490+9a974b21                       AppStream                     2.0 M

Transaction Summary
=========================================================================================================================================================
Install  1 Package

Total download size: 2.0 M
Installed size: 2.2 M
Is this ok [y/N]: y
Downloading Packages:
ant-lib-1.10.5-1.module+an8.4.0+10490+9a974b21.noarch.rpm                                                                 25 MB/s | 2.0 MB     00:00
---------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                     25 MB/s | 2.0 MB     00:00
Running transaction check
No available modular metadata for modular package 'ant-lib-1.10.5-1.module+an8.4.0+10490+9a974b21.noarch', it cannot be installed on the system
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'yum clean packages'.
Error: No available modular metadata for modular package

[复现步骤]:	
yum install ant
yum install ant-lib
Comment 1 shanxifanshi alibaba_cloud_group 2022-01-05 15:09:16 UTC
istack-commons-tools包安装时存在同样问题

# yum install istack-commons-tools
Last metadata expiration check: 0:12:24 ago on Wed 05 Jan 2022 02:53:57 PM CST.
Dependencies resolved.
=========================================================================================================================================================
 Package                               Architecture            Version                                                  Repository                  Size
=========================================================================================================================================================
Installing:
 istack-commons-tools                  noarch                  2.21-9.el8                                               AppStream                   46 k
Installing dependencies:
 ant-lib                               noarch                  1.10.5-1.module+an8.4.0+10490+9a974b21                   AppStream                  2.0 M
 javapackages-tools                    noarch                  5.3.0-1.module+an8.4.0+10468+3b8a3d18                    AppStream                   42 k

Transaction Summary
=========================================================================================================================================================
Install  3 Packages

Total download size: 2.1 M
Installed size: 2.3 M
Is this ok [y/N]: y
Downloading Packages:
(1/3): istack-commons-tools-2.21-9.el8.noarch.rpm                                                                        527 kB/s |  46 kB     00:00
(2/3): javapackages-tools-5.3.0-1.module+an8.4.0+10468+3b8a3d18.noarch.rpm                                               413 kB/s |  42 kB     00:00
(3/3): ant-lib-1.10.5-1.module+an8.4.0+10490+9a974b21.noarch.rpm                                                          12 MB/s | 2.0 MB     00:00
---------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                     12 MB/s | 2.1 MB     00:00
Running transaction check
No available modular metadata for modular package 'ant-lib-1.10.5-1.module+an8.4.0+10490+9a974b21.noarch', it cannot be installed on the system
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'yum clean packages'.
Error: No available modular metadata for modular package
Comment 2 shanxifanshi alibaba_cloud_group 2022-01-05 15:21:50 UTC
istack-commons-tools包安装存在同样问题

# yum install istack-commons-tools
Last metadata expiration check: 0:26:05 ago on Wed 05 Jan 2022 02:53:57 PM CST.
Dependencies resolved.
=========================================================================================================================================================
 Package                               Architecture            Version                                                  Repository                  Size
=========================================================================================================================================================
Installing:
 istack-commons-tools                  noarch                  2.21-9.el8                                               AppStream                   46 k
Installing dependencies:
 ant-lib                               noarch                  1.10.5-1.module+an8.4.0+10490+9a974b21                   AppStream                  2.0 M
 javapackages-tools                    noarch                  5.3.0-1.module+an8.4.0+10468+3b8a3d18                    AppStream                   42 k

Transaction Summary
=========================================================================================================================================================
Install  3 Packages

Total size: 2.1 M
Installed size: 2.3 M
Is this ok [y/N]: y
Downloading Packages:
[SKIPPED] ant-lib-1.10.5-1.module+an8.4.0+10490+9a974b21.noarch.rpm: Already downloaded
[SKIPPED] istack-commons-tools-2.21-9.el8.noarch.rpm: Already downloaded
[SKIPPED] javapackages-tools-5.3.0-1.module+an8.4.0+10468+3b8a3d18.noarch.rpm: Already downloaded
Running transaction check
No available modular metadata for modular package 'ant-lib-1.10.5-1.module+an8.4.0+10490+9a974b21.noarch', it cannot be installed on the system
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'yum clean packages'.
Error: No available modular metadata for modular package
Comment 4 shanxifanshi alibaba_cloud_group 2022-01-10 17:02:05 UTC
使用开发更新后的repo源进行验证,ant、ant-lib、istack-commons-tools均可安装成功,问题已解决。

# yum list ant ant-lib istack-commons-tools
Last metadata expiration check: 0:01:45 ago on Mon 10 Jan 2022 04:58:01 PM CST.
Installed Packages
ant.noarch                                                        1.10.5-1.module+an8.4.0+10490+9a974b21                                       @AppStream
ant-lib.noarch                                                    1.10.5-1.module+an8.4.0+10490+9a974b21                                       @AppStream
istack-commons-tools.noarch                                       2.21-9.el8                                                                   @AppStream