8 Star 1 Fork 52

src-openEuler/dnf

 / 详情

dnf group install Core之后dnf group remove Core '--disablerepo=*'会卸载被保护的软件包

已完成
缺陷
创建于  
2022-12-14 16:11

【环境信息】
openEuler虚拟机

【版本信息】
dnf 4.14.0

【问题复现步骤】

  1. dnf group install -y Core
Last metadata expiration check: 0:41:00 ago on Mon 12 Dec 2022 04:33:52 PM CST.
Dependencies resolved.
================================================================================
 Package                Arch     Version                          Repo     Size
================================================================================
Installing group/module packages:
 tuned                  noarch   2.19.0-2.oe2203sp1               Euler   362 k
Installing dependencies:
 boost-atomic           x86_64   1.78.0-13.oe2203sp1              Euler    16 k
 boost-chrono           x86_64   1.78.0-13.oe2203sp1              Euler    24 k
 boost-date-time        x86_64   1.78.0-13.oe2203sp1              Euler    13 k
 boost-filesystem       x86_64   1.78.0-13.oe2203sp1              Euler    63 k
 boost-system           x86_64   1.78.0-13.oe2203sp1              Euler    13 k
 boost-thread           x86_64   1.78.0-13.oe2203sp1              Euler    50 k
 boost-timer            x86_64   1.78.0-13.oe2203sp1              Euler    22 k
 dyninst                x86_64   11.0.1-3.oe2203sp1               Euler   3.8 M
 efivar-libs            x86_64   38-1.oe2203sp1                   Euler   103 k
 hdparm                 x86_64   9.65-1.oe2203sp1                 Euler    65 k
 mokutil                x86_64   1:0.6.0-1.oe2203sp1              Euler    43 k
 powertop               x86_64   2.13-2.oe2203sp1                 Euler   243 k
 python3-configobj      noarch   5.0.6-18.oe2203sp1               Euler    65 k
 python3-linux-procfs   noarch   0.7.0-1.oe2203sp1                Euler    38 k
 python3-perf           x86_64   5.10.0-132.0.0.73.oe2203sp1      Euler   596 k
 python3-schedutils     x86_64   0.6-7.oe2203sp1                  Euler    23 k
 systemtap              x86_64   4.5-4.oe2203sp1                  Euler    76 k
 systemtap-client       x86_64   4.5-4.oe2203sp1                  Euler   3.0 M
 systemtap-runtime      x86_64   4.5-4.oe2203sp1                  Euler   389 k
 tbb                    x86_64   2020.3-5.oe2203sp1               Euler   147 k
Installing Groups:
 Core                                                                          

Transaction Summary
================================================================================
Install  21 Packages

Total download size: 9.0 M
Installed size: 30 M
Downloading Packages:
(1/21): boost-chrono-1.78.0-13.oe2203sp1.x86_64 743 kB/s |  24 kB     00:00    
(2/21): boost-date-time-1.78.0-13.oe2203sp1.x86 393 kB/s |  13 kB     00:00    
(3/21): boost-atomic-1.78.0-13.oe2203sp1.x86_64 407 kB/s |  16 kB     00:00    
(4/21): boost-system-1.78.0-13.oe2203sp1.x86_64 328 kB/s |  13 kB     00:00    
(5/21): boost-filesystem-1.78.0-13.oe2203sp1.x8 1.4 MB/s |  63 kB     00:00    
(6/21): boost-timer-1.78.0-13.oe2203sp1.x86_64. 1.2 MB/s |  22 kB     00:00    
(7/21): boost-thread-1.78.0-13.oe2203sp1.x86_64 952 kB/s |  50 kB     00:00    
(8/21): dyninst-11.0.1-3.oe2203sp1.x86_64.rpm    40 MB/s | 3.8 MB     00:00    
(9/21): hdparm-9.65-1.oe2203sp1.x86_64.rpm      837 kB/s |  65 kB     00:00    
(10/21): efivar-libs-38-1.oe2203sp1.x86_64.rpm  1.2 MB/s | 103 kB     00:00    
(11/21): mokutil-0.6.0-1.oe2203sp1.x86_64.rpm   7.3 MB/s |  43 kB     00:00    
(12/21): python3-configobj-5.0.6-18.oe2203sp1.n 2.9 MB/s |  65 kB     00:00    
(13/21): powertop-2.13-2.oe2203sp1.x86_64.rpm   7.0 MB/s | 243 kB     00:00    
(14/21): python3-linux-procfs-0.7.0-1.oe2203sp1 1.1 MB/s |  38 kB     00:00    
(15/21): python3-schedutils-0.6-7.oe2203sp1.x86 1.3 MB/s |  23 kB     00:00    
(16/21): python3-perf-5.10.0-132.0.0.73.oe2203s  16 MB/s | 596 kB     00:00    
(17/21): systemtap-runtime-4.5-4.oe2203sp1.x86_  18 MB/s | 389 kB     00:00    
(18/21): systemtap-4.5-4.oe2203sp1.x86_64.rpm   1.5 MB/s |  76 kB     00:00    
(19/21): tbb-2020.3-5.oe2203sp1.x86_64.rpm      8.2 MB/s | 147 kB     00:00    
(20/21): tuned-2.19.0-2.oe2203sp1.noarch.rpm    7.4 MB/s | 362 kB     00:00    
(21/21): systemtap-client-4.5-4.oe2203sp1.x86_6  22 MB/s | 3.0 MB     00:00    
--------------------------------------------------------------------------------
Total                                            25 MB/s | 9.0 MB     00:00     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                        1/1 
  Installing       : boost-system-1.78.0-13.oe2203sp1.x86_64               1/21 
  Installing       : boost-chrono-1.78.0-13.oe2203sp1.x86_64               2/21 
  Installing       : boost-atomic-1.78.0-13.oe2203sp1.x86_64               3/21 
  Installing       : boost-filesystem-1.78.0-13.oe2203sp1.x86_64           4/21 
  Installing       : boost-timer-1.78.0-13.oe2203sp1.x86_64                5/21 
  Installing       : tbb-2020.3-5.oe2203sp1.x86_64                         6/21 
  Installing       : python3-schedutils-0.6-7.oe2203sp1.x86_64             7/21 
  Installing       : python3-perf-5.10.0-132.0.0.73.oe2203sp1.x86_64       8/21 
  Installing       : python3-linux-procfs-0.7.0-1.oe2203sp1.noarch         9/21 
  Installing       : python3-configobj-5.0.6-18.oe2203sp1.noarch          10/21 
  Running scriptlet: powertop-2.13-2.oe2203sp1.x86_64                     11/21 
  Installing       : powertop-2.13-2.oe2203sp1.x86_64                     11/21 
  Running scriptlet: powertop-2.13-2.oe2203sp1.x86_64                     11/21 
  Installing       : hdparm-9.65-1.oe2203sp1.x86_64                       12/21 
  Installing       : efivar-libs-38-1.oe2203sp1.x86_64                    13/21 
  Running scriptlet: mokutil-1:0.6.0-1.oe2203sp1.x86_64                   14/21 
  Installing       : mokutil-1:0.6.0-1.oe2203sp1.x86_64                   14/21 
  Running scriptlet: mokutil-1:0.6.0-1.oe2203sp1.x86_64                   14/21 
  Installing       : boost-thread-1.78.0-13.oe2203sp1.x86_64              15/21 
  Installing       : boost-date-time-1.78.0-13.oe2203sp1.x86_64           16/21 
  Installing       : dyninst-11.0.1-3.oe2203sp1.x86_64                    17/21 
  Running scriptlet: dyninst-11.0.1-3.oe2203sp1.x86_64                    17/21 
  Running scriptlet: systemtap-runtime-4.5-4.oe2203sp1.x86_64             18/21 
  Installing       : systemtap-runtime-4.5-4.oe2203sp1.x86_64             18/21 
  Installing       : systemtap-client-4.5-4.oe2203sp1.x86_64              19/21 
  Installing       : systemtap-4.5-4.oe2203sp1.x86_64                     20/21 
  Running scriptlet: systemtap-4.5-4.oe2203sp1.x86_64                     20/21 
  Installing       : tuned-2.19.0-2.oe2203sp1.noarch                      21/21 
  Running scriptlet: tuned-2.19.0-2.oe2203sp1.noarch                      21/21 
/usr/lib/tmpfiles.d/net-snmp.conf:1: Line references path below legacy directory /var/run/, updating /var/run/net-snmp → /run/net-snmp; please update the tmpfiles.d/ drop-in file accordingly.

  Verifying        : boost-atomic-1.78.0-13.oe2203sp1.x86_64               1/21 
  Verifying        : boost-chrono-1.78.0-13.oe2203sp1.x86_64               2/21 
  Verifying        : boost-date-time-1.78.0-13.oe2203sp1.x86_64            3/21 
  Verifying        : boost-filesystem-1.78.0-13.oe2203sp1.x86_64           4/21 
  Verifying        : boost-system-1.78.0-13.oe2203sp1.x86_64               5/21 
  Verifying        : boost-thread-1.78.0-13.oe2203sp1.x86_64               6/21 
  Verifying        : boost-timer-1.78.0-13.oe2203sp1.x86_64                7/21 
  Verifying        : dyninst-11.0.1-3.oe2203sp1.x86_64                     8/21 
  Verifying        : efivar-libs-38-1.oe2203sp1.x86_64                     9/21 
  Verifying        : hdparm-9.65-1.oe2203sp1.x86_64                       10/21 
  Verifying        : mokutil-1:0.6.0-1.oe2203sp1.x86_64                   11/21 
  Verifying        : powertop-2.13-2.oe2203sp1.x86_64                     12/21 
  Verifying        : python3-configobj-5.0.6-18.oe2203sp1.noarch          13/21 
  Verifying        : python3-linux-procfs-0.7.0-1.oe2203sp1.noarch        14/21 
  Verifying        : python3-perf-5.10.0-132.0.0.73.oe2203sp1.x86_64      15/21 
  Verifying        : python3-schedutils-0.6-7.oe2203sp1.x86_64            16/21 
  Verifying        : systemtap-4.5-4.oe2203sp1.x86_64                     17/21 
  Verifying        : systemtap-client-4.5-4.oe2203sp1.x86_64              18/21 
  Verifying        : systemtap-runtime-4.5-4.oe2203sp1.x86_64             19/21 
  Verifying        : tbb-2020.3-5.oe2203sp1.x86_64                        20/21 
  Verifying        : tuned-2.19.0-2.oe2203sp1.noarch                      21/21 

Installed:
  boost-atomic-1.78.0-13.oe2203sp1.x86_64                                       
  boost-chrono-1.78.0-13.oe2203sp1.x86_64                                       
  boost-date-time-1.78.0-13.oe2203sp1.x86_64                                    
  boost-filesystem-1.78.0-13.oe2203sp1.x86_64                                   
  boost-system-1.78.0-13.oe2203sp1.x86_64                                       
  boost-thread-1.78.0-13.oe2203sp1.x86_64                                       
  boost-timer-1.78.0-13.oe2203sp1.x86_64                                        
  dyninst-11.0.1-3.oe2203sp1.x86_64                                             
  efivar-libs-38-1.oe2203sp1.x86_64                                             
  hdparm-9.65-1.oe2203sp1.x86_64                                                
  mokutil-1:0.6.0-1.oe2203sp1.x86_64                                            
  powertop-2.13-2.oe2203sp1.x86_64                                              
  python3-configobj-5.0.6-18.oe2203sp1.noarch                                   
  python3-linux-procfs-0.7.0-1.oe2203sp1.noarch                                 
  python3-perf-5.10.0-132.0.0.73.oe2203sp1.x86_64                               
  python3-schedutils-0.6-7.oe2203sp1.x86_64                                     
  systemtap-4.5-4.oe2203sp1.x86_64                                              
  systemtap-client-4.5-4.oe2203sp1.x86_64                                       
  systemtap-runtime-4.5-4.oe2203sp1.x86_64                                      
  tbb-2020.3-5.oe2203sp1.x86_64                                                 
  tuned-2.19.0-2.oe2203sp1.noarch                                               

Complete!
  1. dnf group remove -y Core '--disablerepo=*'

【预期结果】
卸载Core组和tuned组件及其依赖包

【实际结果】

Error: 
 Problem: The operation would result in removing the following protected packages: dnf, kernel, yum
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)

评论 (5)

哦那真是一级棒 创建了缺陷

Hi oh_thats_great, welcome to the openEuler Community.
I'm the Bot here serving you. You can find the instructions on how to interact with me at Here.
If you have any questions, please contact the SIG: sig-OS-Builder, and any of the maintainers: @yanan-rock , @orange-snn , @Anonymous_Z , @syyhao , @hexiaowen , @t.feng , @compile_success , @朱春意

openeuler-ci-bot 添加了
 
sig/sig-OS-Builder
标签
哦那真是一级棒 修改了描述
哦那真是一级棒 修改了标题
哦那真是一级棒 修改了描述
哦那真是一级棒 修改了描述

openEuler 该分支 与 22.03-LTS 分支版本,现象一致。
Core组内包含dnf、kernel等保护类型的包,不能被删除属于正常现象。

@哦那真是一级棒 hello,目前看dnf存在保护机制,在组删除的时候不能删除被保护的软件包,所以当前结果符合预期

t.feng 任务状态待办的 修改为已完成
哦那真是一级棒 任务状态已完成 修改为待办的

解释不通,保护机制确实是合理的,质疑的点是为什么会触发卸载dnf、yum、kernel?

dnf、yum、kernel是存在于group core中或者有依赖关系的,因此在卸载 core group时会因此报错。
认为当前为非问题。

Anonymous_Z 任务状态待办的 修改为已完成

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(5)
5329419 openeuler ci bot 1632792936
1
https://gitee.com/src-openeuler/dnf.git
git@gitee.com:src-openeuler/dnf.git
src-openeuler
dnf
dnf

搜索帮助

Cb406eda 1850385 E526c682 1850385