Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation assistant 4.6 Cannot install dependency: coreutils #2430

Closed
javimed opened this issue Sep 7, 2023 · 2 comments · Fixed by #2790
Closed

Installation assistant 4.6 Cannot install dependency: coreutils #2430

javimed opened this issue Sep 7, 2023 · 2 comments · Fixed by #2790
Assignees
Labels
level/task Subtask issue qa_known Issues that are already known by the QA team type/bug Bug issue

Comments

@javimed
Copy link
Member

javimed commented Sep 7, 2023

Wazuh version Install type Action performed Platform
4.6.0-alpha1 Installation assistant Install Amazon Linux 2023
$ docker run -it amazonlinux:2023 /bin/bash
bash-5.2# curl -sO https://packages-dev.wazuh.com/4.6/wazuh-install.sh
bash-5.2# curl -sO https://packages-dev.wazuh.com/4.6/config.yml
bash-5.2# cat ./config.yml 
nodes:
  # Wazuh indexer nodes
  indexer:
    - name: node-1
      ip: 172.17.0.2
    - name: node-2
      ip: 172.17.0.3
    #- name: node-3
    #  ip: <indexer-node-ip>

  # Wazuh server nodes
  # If there is more than one Wazuh server
  # node, each one must have a node_type
  server:
    - name: wazuh-1
      ip: 172.17.0.4
    #  node_type: master
    #- name: wazuh-2
    #  ip: <wazuh-manager-ip>
    #  node_type: worker
    #- name: wazuh-3
    #  ip: <wazuh-manager-ip>
    #  node_type: worker

  # Wazuh dashboard nodes
  dashboard:
    - name: dashboard
      ip: 172.17.0.4
bash-5.2# bash wazuh-install.sh --generate-config-files
07/09/2023 13:45:54 INFO: Starting Wazuh installation assistant. Wazuh version: 4.6.0
07/09/2023 13:45:54 INFO: Verbose logging redirected to /var/log/wazuh-install.log
07/09/2023 13:45:56 INFO: --- Dependencies ---
07/09/2023 13:45:56 INFO: Installing systemd.
07/09/2023 13:46:09 INFO: Installing tar.
07/09/2023 13:46:12 INFO: Installing coreutils.
07/09/2023 13:46:13 ERROR: Cannot install dependency: coreutils.
bash-5.2#
bash-5.2# cat /var/log/wazuh-install.log
07/09/2023 13:48:26 INFO: Starting Wazuh installation assistant. Wazuh version: 4.6.0
07/09/2023 13:48:26 INFO: Verbose logging redirected to /var/log/wazuh-install.log
07/09/2023 13:48:28 INFO: --- Dependencies ---
07/09/2023 13:48:28 INFO: Installing coreutils.
Last metadata expiration check: 0:26:18 ago on Thu Sep  7 13:22:10 2023.
Error: 
 Problem: problem with installed package coreutils-single-8.32-30.amzn2023.0.3.x86_64
  - package coreutils-8.32-30.amzn2023.0.3.x86_64 conflicts with coreutils-single provided by coreutils-single-8.32-30.amzn2023.0.3.x86_64
  - conflicting requests
(try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages)
07/09/2023 13:48:28 ERROR: Cannot install dependency: coreutils.
bash-5.2# 

@javimed
Copy link
Member Author

javimed commented Sep 7, 2023

Pre-installing the dependency

bash-5.2# yum remove coreutils-single
Error: 
 Problem: The operation would result in removing the following protected packages: dnf
(try to add '--skip-broken' to skip uninstallable packages)
bash-5.2# yum remove coreutils-single --skip-broken
Error: 
 Problem: The operation would result in removing the following protected packages: dnf
bash-5.2# yum install coreutils --allowerasing
Last metadata expiration check: 1:58:14 ago on Thu Sep  7 13:22:10 2023.
Dependencies resolved.
===========================================================================================================================================================================================
 Package                                       Architecture                        Version                                                  Repository                                Size
===========================================================================================================================================================================================
Installing:
 coreutils                                     x86_64                              8.32-30.amzn2023.0.3                                     amazonlinux                              1.1 M
Installing dependencies:
 coreutils-common                              x86_64                              8.32-30.amzn2023.0.3                                     amazonlinux                              2.0 M
Installing weak dependencies:
 glibc-doc                                     noarch                              2.34-52.amzn2023.0.3                                     amazonlinux                              1.0 M
 ncurses                                       x86_64                              6.2-4.20200222.amzn2023.0.4                              amazonlinux                              394 k
Removing dependent packages:
 coreutils-single                              x86_64                              8.32-30.amzn2023.0.3                                     @System                                  1.3 M

Transaction Summary
===========================================================================================================================================================================================
Install  4 Packages
Remove   1 Package

Total download size: 4.5 M
Is this ok [y/N]: y
Downloading Packages:
(1/4): ncurses-6.2-4.20200222.amzn2023.0.4.x86_64.rpm                                                                                                      950 kB/s | 394 kB     00:00    
(2/4): coreutils-8.32-30.amzn2023.0.3.x86_64.rpm                                                                                                           501 kB/s | 1.1 MB     00:02    
(3/4): coreutils-common-8.32-30.amzn2023.0.3.x86_64.rpm                                                                                                    822 kB/s | 2.0 MB     00:02    
(4/4): glibc-doc-2.34-52.amzn2023.0.3.noarch.rpm                                                                                                           489 kB/s | 1.0 MB     00:02    
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                                      1.1 MB/s | 4.5 MB     00:04     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                                                                   1/1 
  Installing       : glibc-doc-2.34-52.amzn2023.0.3.noarch                                                                                                                             1/5 
  Installing       : ncurses-6.2-4.20200222.amzn2023.0.4.x86_64                                                                                                                        2/5 
  Installing       : coreutils-common-8.32-30.amzn2023.0.3.x86_64                                                                                                                      3/5 
  Installing       : coreutils-8.32-30.amzn2023.0.3.x86_64                                                                                                                             4/5 
  Erasing          : coreutils-single-8.32-30.amzn2023.0.3.x86_64                                                                                                                      5/5 
  Running scriptlet: coreutils-single-8.32-30.amzn2023.0.3.x86_64                                                                                                                      5/5 
  Verifying        : coreutils-common-8.32-30.amzn2023.0.3.x86_64                                                                                                                      1/5 
  Verifying        : coreutils-8.32-30.amzn2023.0.3.x86_64                                                                                                                             2/5 
  Verifying        : ncurses-6.2-4.20200222.amzn2023.0.4.x86_64                                                                                                                        3/5 
  Verifying        : glibc-doc-2.34-52.amzn2023.0.3.noarch                                                                                                                             4/5 
  Verifying        : coreutils-single-8.32-30.amzn2023.0.3.x86_64                                                                                                                      5/5 

Installed:
  coreutils-8.32-30.amzn2023.0.3.x86_64      coreutils-common-8.32-30.amzn2023.0.3.x86_64      glibc-doc-2.34-52.amzn2023.0.3.noarch      ncurses-6.2-4.20200222.amzn2023.0.4.x86_64     
Removed:
  coreutils-single-8.32-30.amzn2023.0.3.x86_64                                                                                                                                             

Complete!
bash-5.2# 

Leads to similar error with curl reported in #2432

bash-5.2# bash wazuh-install.sh --generate-config-files
07/09/2023 15:24:13 INFO: Starting Wazuh installation assistant. Wazuh version: 4.6.0
07/09/2023 15:24:13 INFO: Verbose logging redirected to /var/log/wazuh-install.log
07/09/2023 15:24:15 INFO: --- Dependencies ---
07/09/2023 15:24:15 INFO: Installing procps-ng.
07/09/2023 15:24:17 INFO: Installing lsof.
07/09/2023 15:24:21 INFO: Installing curl.
07/09/2023 15:24:21 ERROR: Cannot install dependency: curl.
bash-5.2# cat /var/log/wazuh-install.log
07/09/2023 15:24:13 INFO: Starting Wazuh installation assistant. Wazuh version: 4.6.0
07/09/2023 15:24:13 INFO: Verbose logging redirected to /var/log/wazuh-install.log
07/09/2023 15:24:15 INFO: --- Dependencies ---
07/09/2023 15:24:15 INFO: Installing procps-ng.
Last metadata expiration check: 2:02:05 ago on Thu Sep  7 13:22:10 2023.
Dependencies resolved.
================================================================================
 Package        Arch        Version                      Repository        Size
================================================================================
Installing:
 procps-ng      x86_64      3.3.17-1.amzn2023.0.2        amazonlinux      331 k

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

Total download size: 331 k
Installed size: 990 k
Downloading Packages:
procps-ng-3.3.17-1.amzn2023.0.2.x86_64.rpm      1.0 MB/s | 331 kB     00:00    
--------------------------------------------------------------------------------
Total                                           199 kB/s | 331 kB     00:01     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                        1/1 
  Installing       : procps-ng-3.3.17-1.amzn2023.0.2.x86_64                 1/1 
  Running scriptlet: procps-ng-3.3.17-1.amzn2023.0.2.x86_64                 1/1 
  Verifying        : procps-ng-3.3.17-1.amzn2023.0.2.x86_64                 1/1 

Installed:
  procps-ng-3.3.17-1.amzn2023.0.2.x86_64                                        

Complete!
07/09/2023 15:24:17 INFO: Installing lsof.
Last metadata expiration check: 2:02:07 ago on Thu Sep  7 13:22:10 2023.
Dependencies resolved.
================================================================================
 Package       Arch        Version                       Repository        Size
================================================================================
Installing:
 lsof          x86_64      4.94.0-1.amzn2023.0.2         amazonlinux      240 k
Installing dependencies:
 libtirpc      x86_64      1.3.3-0.amzn2023              amazonlinux       95 k

Transaction Summary
================================================================================
Install  2 Packages

Total download size: 335 k
Installed size: 827 k
Downloading Packages:
(1/2): libtirpc-1.3.3-0.amzn2023.x86_64.rpm      68 kB/s |  95 kB     00:01    
(2/2): lsof-4.94.0-1.amzn2023.0.2.x86_64.rpm    158 kB/s | 240 kB     00:01    
--------------------------------------------------------------------------------
Total                                           120 kB/s | 335 kB     00:02     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                        1/1 
  Installing       : libtirpc-1.3.3-0.amzn2023.x86_64                       1/2 
  Installing       : lsof-4.94.0-1.amzn2023.0.2.x86_64                      2/2 
  Running scriptlet: lsof-4.94.0-1.amzn2023.0.2.x86_64                      2/2 
  Verifying        : lsof-4.94.0-1.amzn2023.0.2.x86_64                      1/2 
  Verifying        : libtirpc-1.3.3-0.amzn2023.x86_64                       2/2 

Installed:
  libtirpc-1.3.3-0.amzn2023.x86_64       lsof-4.94.0-1.amzn2023.0.2.x86_64      

Complete!
07/09/2023 15:24:21 INFO: Installing curl.
Last metadata expiration check: 2:02:11 ago on Thu Sep  7 13:22:10 2023.
Error: 
 Problem: problem with installed package curl-minimal-8.0.1-1.amzn2023.0.1.x86_64
  - package curl-minimal-8.0.1-1.amzn2023.0.1.x86_64 conflicts with curl provided by curl-7.87.0-2.amzn2023.0.2.x86_64
  - package curl-minimal-7.88.0-1.amzn2023.0.1.x86_64 conflicts with curl provided by curl-7.87.0-2.amzn2023.0.2.x86_64
  - package curl-minimal-7.88.1-1.amzn2023.0.1.x86_64 conflicts with curl provided by curl-7.87.0-2.amzn2023.0.2.x86_64
  - package curl-minimal-7.87.0-2.amzn2023.0.2.x86_64 conflicts with curl provided by curl-7.87.0-2.amzn2023.0.2.x86_64
  - package curl-minimal-8.0.1-1.amzn2023.x86_64 conflicts with curl provided by curl-7.87.0-2.amzn2023.0.2.x86_64
  - conflicting requests
  - package curl-minimal-8.0.1-1.amzn2023.0.1.x86_64 conflicts with curl provided by curl-7.88.0-1.amzn2023.0.1.x86_64
  - package curl-minimal-7.88.0-1.amzn2023.0.1.x86_64 conflicts with curl provided by curl-7.88.0-1.amzn2023.0.1.x86_64
  - package curl-minimal-7.88.1-1.amzn2023.0.1.x86_64 conflicts with curl provided by curl-7.88.0-1.amzn2023.0.1.x86_64
  - package curl-minimal-7.87.0-2.amzn2023.0.2.x86_64 conflicts with curl provided by curl-7.88.0-1.amzn2023.0.1.x86_64
  - package curl-minimal-8.0.1-1.amzn2023.x86_64 conflicts with curl provided by curl-7.88.0-1.amzn2023.0.1.x86_64
  - package curl-minimal-8.0.1-1.amzn2023.0.1.x86_64 conflicts with curl provided by curl-7.88.1-1.amzn2023.0.1.x86_64
  - package curl-minimal-7.88.0-1.amzn2023.0.1.x86_64 conflicts with curl provided by curl-7.88.1-1.amzn2023.0.1.x86_64
  - package curl-minimal-7.88.1-1.amzn2023.0.1.x86_64 conflicts with curl provided by curl-7.88.1-1.amzn2023.0.1.x86_64
  - package curl-minimal-7.87.0-2.amzn2023.0.2.x86_64 conflicts with curl provided by curl-7.88.1-1.amzn2023.0.1.x86_64
  - package curl-minimal-8.0.1-1.amzn2023.x86_64 conflicts with curl provided by curl-7.88.1-1.amzn2023.0.1.x86_64
  - package curl-minimal-8.0.1-1.amzn2023.0.1.x86_64 conflicts with curl provided by curl-8.0.1-1.amzn2023.x86_64
  - package curl-minimal-7.88.0-1.amzn2023.0.1.x86_64 conflicts with curl provided by curl-8.0.1-1.amzn2023.x86_64
  - package curl-minimal-7.88.1-1.amzn2023.0.1.x86_64 conflicts with curl provided by curl-8.0.1-1.amzn2023.x86_64
  - package curl-minimal-7.87.0-2.amzn2023.0.2.x86_64 conflicts with curl provided by curl-8.0.1-1.amzn2023.x86_64
  - package curl-minimal-8.0.1-1.amzn2023.x86_64 conflicts with curl provided by curl-8.0.1-1.amzn2023.x86_64
  - package curl-minimal-8.0.1-1.amzn2023.0.1.x86_64 conflicts with curl provided by curl-8.0.1-1.amzn2023.0.1.x86_64
  - package curl-minimal-7.88.0-1.amzn2023.0.1.x86_64 conflicts with curl provided by curl-8.0.1-1.amzn2023.0.1.x86_64
  - package curl-minimal-7.88.1-1.amzn2023.0.1.x86_64 conflicts with curl provided by curl-8.0.1-1.amzn2023.0.1.x86_64
  - package curl-minimal-7.87.0-2.amzn2023.0.2.x86_64 conflicts with curl provided by curl-8.0.1-1.amzn2023.0.1.x86_64
  - package curl-minimal-8.0.1-1.amzn2023.x86_64 conflicts with curl provided by curl-8.0.1-1.amzn2023.0.1.x86_64
(try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages)
07/09/2023 15:24:21 ERROR: Cannot install dependency: curl.
bash-5.2# 

And same for other dependencies

bash-5.2# bash wazuh-install.sh --wazuh-indexer node-1 --ignore-check
07/09/2023 16:07:30 INFO: Starting Wazuh installation assistant. Wazuh version: 4.6.0
07/09/2023 16:07:30 INFO: Verbose logging redirected to /var/log/wazuh-install.log
07/09/2023 16:07:35 WARNING: Hardware and system checks ignored.
07/09/2023 16:07:35 INFO: --- Dependencies ---
07/09/2023 16:07:35 INFO: Installing gnupg2.
07/09/2023 16:07:36 ERROR: Cannot install dependency: gnupg2.

bash-5.2# cat /var/log/wazuh-install.log
07/09/2023 16:07:30 INFO: Starting Wazuh installation assistant. Wazuh version: 4.6.0
07/09/2023 16:07:30 INFO: Verbose logging redirected to /var/log/wazuh-install.log
07/09/2023 16:07:35 WARNING: Hardware and system checks ignored.
07/09/2023 16:07:35 INFO: --- Dependencies ---
07/09/2023 16:07:35 INFO: Installing gnupg2.
Last metadata expiration check: 2:45:25 ago on Thu Sep  7 13:22:10 2023.
Error: 
 Problem: problem with installed package gnupg2-minimal-2.3.7-1.amzn2023.0.4.x86_64
  - package gnupg2-minimal-2.3.7-1.amzn2023.0.4.x86_64 conflicts with gnupg2 provided by gnupg2-2.3.7-1.amzn2023.0.3.x86_64
  - package gnupg2-minimal-2.3.7-1.amzn2023.0.3.x86_64 conflicts with gnupg2 provided by gnupg2-2.3.7-1.amzn2023.0.3.x86_64
  - conflicting requests
  - package gnupg2-minimal-2.3.7-1.amzn2023.0.4.x86_64 conflicts with gnupg2 provided by gnupg2-2.3.7-1.amzn2023.0.4.x86_64
  - package gnupg2-minimal-2.3.7-1.amzn2023.0.3.x86_64 conflicts with gnupg2 provided by gnupg2-2.3.7-1.amzn2023.0.4.x86_64
(try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages)
07/09/2023 16:07:36 ERROR: Cannot install dependency: gnupg2.
bash-5.2# 

@c-bordon c-bordon self-assigned this Sep 8, 2023
@wazuhci wazuhci moved this from Backlog to In progress in Release 4.6.0 Sep 8, 2023
@teddytpc1 teddytpc1 added level/task Subtask issue type/bug Bug issue labels Sep 8, 2023
@wazuhci wazuhci moved this from In progress to Pending review in Release 4.6.0 Sep 8, 2023
@wazuhci wazuhci moved this to Pending review in Release 4.6.0 Sep 11, 2023
@wazuhci wazuhci moved this from Pending review to Blocked in Release 4.6.0 Sep 11, 2023
@wazuhci wazuhci removed this from Release 4.6.0 Sep 12, 2023
@damarisg damarisg added the qa_known Issues that are already known by the QA team label Sep 28, 2023
@teddytpc1 teddytpc1 linked a pull request Jan 25, 2024 that will close this issue
@teddytpc1
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
level/task Subtask issue qa_known Issues that are already known by the QA team type/bug Bug issue
Projects
None yet
4 participants