Bug 1910 - 安装 anolis-experimental-release 报错
Summary: 安装 anolis-experimental-release 报错
Status: NEW
Alias: None
Product: Anolis OS 8
Classification: Anolis OS
Component: BaseOS Packages (show other bugs) BaseOS Packages
Version: 8.4
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: GA
Assignee: happy_orange
QA Contact: shuming
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-08-16 14:40 UTC by dust.li
Modified: 2022-08-24 11:08 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 dust.li alibaba_cloud_group 2022-08-16 14:40:28 UTC
Description of problem:

安装 anolis-experimental-release 报错


Version-Release number of selected component (if applicable):


How reproducible:

[root@wuya-anolis8 ~]# yum install -y anolis-experimental-release.noarch
Last metadata expiration check: 3:05:04 ago on Tue 16 Aug 2022 11:31:23 AM CST.
Dependencies resolved.
=============================================================================================================================================================
 Package                                              Architecture                    Version                          Repository                       Size
=============================================================================================================================================================
Installing:
 anolis-experimental-release                          noarch                          8-1.an8                          Extras                          7.1 k

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

Total download size: 7.1 k
Installed size: 664
Downloading Packages:
anolis-experimental-release-8-1.an8.noarch.rpm                                                                               122 kB/s | 7.1 kB     00:00
-------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                        120 kB/s | 7.1 kB     00:00
Running transaction check
Transaction check succeeded.
Running transaction test
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'yum clean packages'.
Error: Transaction test error:
  file /etc/yum.repos.d/AnolisOS-Experimental.repo from install of anolis-experimental-release-8-1.an8.noarch conflicts with file from package anolis-repos-8.4-8.an8.x86_64


Actual results:


Expected results:


Additional info:
Comment 1 happy_orange alibaba_cloud_group 2022-08-23 15:49:41 UTC
我理解您的诉求其实是想安装 AnolisOS-Experimental 里的package。

解决方案:
当前系统环境是 Anolis 8.4,anolis-repos-8.4-8.an8.x86_64 中已经包含了 AnolisOS-Experimental.repo,但是没有默认开启,您可以在安装某个软件后面添加 --enablerepo=Experimental 使得repo生效,或者通过命令先将Experimental使能后再安装某个软件。

样例1: 
yum install xxx --enablerepo=Experimental

样例2: 
yum config-manager --enable Experimental
yum install xxx
yum config-manager --disable Experimental # 使用过后也可以关闭使能
Comment 2 dust.li alibaba_cloud_group 2022-08-24 11:08:23 UTC
(In reply to happy_orange from comment #1)
> 我理解您的诉求其实是想安装 AnolisOS-Experimental 里的package。
> 
> 解决方案:
> 当前系统环境是 Anolis 8.4,anolis-repos-8.4-8.an8.x86_64 中已经包含了
> AnolisOS-Experimental.repo,但是没有默认开启,您可以在安装某个软件后面添加 --enablerepo=Experimental
> 使得repo生效,或者通过命令先将Experimental使能后再安装某个软件。
> 
> 样例1: 
> yum install xxx --enablerepo=Experimental
> 
> 样例2: 
> yum config-manager --enable Experimental
> yum install xxx
> yum config-manager --disable Experimental # 使用过后也可以关闭使能


收到,可以了,谢谢。