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: gnupg2 #2436

Closed
pro-akim opened this issue Sep 8, 2023 · 1 comment · Fixed by #2790
Closed

Installation assistant 4.6 Cannot install dependency: gnupg2 #2436

pro-akim opened this issue Sep 8, 2023 · 1 comment · Fixed by #2790
Assignees
Labels
level/task Subtask issue type/bug Bug issue

Comments

@pro-akim
Copy link
Member

pro-akim commented Sep 8, 2023

Wazuh version Install type Action performed Platform
4.6.0-alpha1 Installation assistant Install Amazon Linux 2023

The following error message related with dependencies appears when trying to install Indexer, Manager and Dashboard for Wazuh installation on Amazon Linux 2023.

Issue related to:

Wazuh Indexer

[root@ip-172-31-36-239 ec2-user]# bash wazuh-install.sh --wazuh-indexer node-1
07/09/2023 16:13:39 INFO: Starting Wazuh installation assistant. Wazuh version: 4.6.0
07/09/2023 16:13:39 INFO: Verbose logging redirected to /var/log/wazuh-install.log
07/09/2023 16:13:43 ERROR: The recommended systems are: Red Hat Enterprise Linux 7, 8, 9; CentOS 7, 8; Amazon Linux 2; Ubuntu 16.04, 18.04, 20.04, 22.04. The current system does not match this list. Use -i|--ignore-check to skip this check.
[root@ip-172-31-36-239 ec2-user]# bash wazuh-install.sh --wazuh-indexer node-1 --ignore-check
07/09/2023 16:13:57 INFO: Starting Wazuh installation assistant. Wazuh version: 4.6.0
07/09/2023 16:13:57 INFO: Verbose logging redirected to /var/log/wazuh-install.log
07/09/2023 16:14:06 WARNING: Hardware and system checks ignored.
07/09/2023 16:14:07 INFO: --- Dependencies ---
07/09/2023 16:14:07 INFO: Installing gnupg2.
07/09/2023 16:14:08 ERROR: Cannot install dependency: gnupg2.
[root@ip-172-31-36-239 ec2-user]# yum install gnupg2 --allowerasing
Last metadata expiration check: 0:05:14 ago on Thu Sep  7 16:09:30 2023.
Dependencies resolved.
======================================================================================================
 Package                    Architecture   Version                          Repository           Size
======================================================================================================
Installing:
 gnupg2                     x86_64         2.3.7-1.amzn2023.0.4             amazonlinux         2.5 M
Installing dependencies:
 libksba                    x86_64         1.6.3-1.amzn2023.0.2             amazonlinux         159 k
 libsecret                  x86_64         0.20.4-2.amzn2023.0.2            amazonlinux         158 k
 libusbx                    x86_64         1.0.24-2.amzn2023.0.2            amazonlinux          73 k
 pcsc-lite                  x86_64         1.9.1-1.amzn2023.0.3             amazonlinux          92 k
 pcsc-lite-libs             x86_64         1.9.1-1.amzn2023.0.3             amazonlinux          28 k
 polkit                     x86_64         0.117-11.amzn2023                amazonlinux         146 k
 polkit-libs                x86_64         0.117-11.amzn2023                amazonlinux         8.3 M
 polkit-pkla-compat         x86_64         0.1-19.amzn2023.0.2              amazonlinux          45 k
Installing weak dependencies:
 gnupg2-smime               x86_64         2.3.7-1.amzn2023.0.4             amazonlinux         249 k
 pcsc-lite-ccid             x86_64         1.4.34-1.amzn2023.0.3            amazonlinux         300 k
 pinentry                   x86_64         1.2.0-1.amzn2023.0.5             amazonlinux          99 k
Removing dependent packages:
 gnupg2-minimal             x86_64         2.3.7-1.amzn2023.0.4             @System             917 k

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

Total download size: 12 M
Is this ok [y/N]: y
Downloading Packages:
(1/12): libksba-1.6.3-1.amzn2023.0.2.x86_64.rpm                       2.1 MB/s | 159 kB     00:00    
(2/12): polkit-0.117-11.amzn2023.x86_64.rpm                           1.5 MB/s | 146 kB     00:00    
(3/12): pcsc-lite-libs-1.9.1-1.amzn2023.0.3.x86_64.rpm                278 kB/s |  28 kB     00:00    
(4/12): polkit-pkla-compat-0.1-19.amzn2023.0.2.x86_64.rpm             1.7 MB/s |  45 kB     00:00    
(5/12): polkit-libs-0.117-11.amzn2023.x86_64.rpm                       46 MB/s | 8.3 MB     00:00    
(6/12): gnupg2-smime-2.3.7-1.amzn2023.0.4.x86_64.rpm                  1.7 MB/s | 249 kB     00:00    
(7/12): libsecret-0.20.4-2.amzn2023.0.2.x86_64.rpm                    922 kB/s | 158 kB     00:00    
(8/12): pcsc-lite-1.9.1-1.amzn2023.0.3.x86_64.rpm                     4.0 MB/s |  92 kB     00:00    
(9/12): libusbx-1.0.24-2.amzn2023.0.2.x86_64.rpm                      2.5 MB/s |  73 kB     00:00    
(10/12): pcsc-lite-ccid-1.4.34-1.amzn2023.0.3.x86_64.rpm              6.1 MB/s | 300 kB     00:00    
(11/12): pinentry-1.2.0-1.amzn2023.0.5.x86_64.rpm                     1.7 MB/s |  99 kB     00:00    
(12/12): gnupg2-2.3.7-1.amzn2023.0.4.x86_64.rpm                        14 MB/s | 2.5 MB     00:00    
------------------------------------------------------------------------------------------------------
Total                                                                  23 MB/s |  12 MB     00:00     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                              1/1 
  Installing       : polkit-libs-0.117-11.amzn2023.x86_64                                        1/13 
  Running scriptlet: polkit-0.117-11.amzn2023.x86_64                                             2/13 
  Installing       : polkit-0.117-11.amzn2023.x86_64                                             2/13 
  Running scriptlet: polkit-0.117-11.amzn2023.x86_64                                             2/13 
  Installing       : polkit-pkla-compat-0.1-19.amzn2023.0.2.x86_64                               3/13 
  Installing       : libksba-1.6.3-1.amzn2023.0.2.x86_64                                         4/13 
  Installing       : libusbx-1.0.24-2.amzn2023.0.2.x86_64                                        5/13 
  Installing       : libsecret-0.20.4-2.amzn2023.0.2.x86_64                                      6/13 
  Installing       : pinentry-1.2.0-1.amzn2023.0.5.x86_64                                        7/13 
  Installing       : pcsc-lite-libs-1.9.1-1.amzn2023.0.3.x86_64                                  8/13 
  Installing       : pcsc-lite-ccid-1.4.34-1.amzn2023.0.3.x86_64                                 9/13 
  Running scriptlet: pcsc-lite-ccid-1.4.34-1.amzn2023.0.3.x86_64                                 9/13 
  Installing       : pcsc-lite-1.9.1-1.amzn2023.0.3.x86_64                                      10/13 
  Running scriptlet: pcsc-lite-1.9.1-1.amzn2023.0.3.x86_64                                      10/13 
Created symlink /etc/systemd/system/sockets.target.wants/pcscd.socket → /usr/lib/systemd/system/pcscd.socket.

  Installing       : gnupg2-smime-2.3.7-1.amzn2023.0.4.x86_64                                   11/13 
  Installing       : gnupg2-2.3.7-1.amzn2023.0.4.x86_64                                         12/13 
  Erasing          : gnupg2-minimal-2.3.7-1.amzn2023.0.4.x86_64                                 13/13 
  Running scriptlet: gnupg2-minimal-2.3.7-1.amzn2023.0.4.x86_64                                 13/13 
  Verifying        : pcsc-lite-libs-1.9.1-1.amzn2023.0.3.x86_64                                  1/13 
  Verifying        : libksba-1.6.3-1.amzn2023.0.2.x86_64                                         2/13 
  Verifying        : polkit-0.117-11.amzn2023.x86_64                                             3/13 
  Verifying        : polkit-libs-0.117-11.amzn2023.x86_64                                        4/13 
  Verifying        : polkit-pkla-compat-0.1-19.amzn2023.0.2.x86_64                               5/13 
  Verifying        : libsecret-0.20.4-2.amzn2023.0.2.x86_64                                      6/13 
  Verifying        : gnupg2-smime-2.3.7-1.amzn2023.0.4.x86_64                                    7/13 
  Verifying        : pcsc-lite-ccid-1.4.34-1.amzn2023.0.3.x86_64                                 8/13 
  Verifying        : pcsc-lite-1.9.1-1.amzn2023.0.3.x86_64                                       9/13 
  Verifying        : libusbx-1.0.24-2.amzn2023.0.2.x86_64                                       10/13 
  Verifying        : gnupg2-2.3.7-1.amzn2023.0.4.x86_64                                         11/13 
  Verifying        : pinentry-1.2.0-1.amzn2023.0.5.x86_64                                       12/13 
  Verifying        : gnupg2-minimal-2.3.7-1.amzn2023.0.4.x86_64                                 13/13 

Installed:
  gnupg2-2.3.7-1.amzn2023.0.4.x86_64               gnupg2-smime-2.3.7-1.amzn2023.0.4.x86_64          
  libksba-1.6.3-1.amzn2023.0.2.x86_64              libsecret-0.20.4-2.amzn2023.0.2.x86_64            
  libusbx-1.0.24-2.amzn2023.0.2.x86_64             pcsc-lite-1.9.1-1.amzn2023.0.3.x86_64             
  pcsc-lite-ccid-1.4.34-1.amzn2023.0.3.x86_64      pcsc-lite-libs-1.9.1-1.amzn2023.0.3.x86_64        
  pinentry-1.2.0-1.amzn2023.0.5.x86_64             polkit-0.117-11.amzn2023.x86_64                   
  polkit-libs-0.117-11.amzn2023.x86_64             polkit-pkla-compat-0.1-19.amzn2023.0.2.x86_64     
Removed:
  gnupg2-minimal-2.3.7-1.amzn2023.0.4.x86_64                                                          

Complete!

Wazuh Dashboard

[root@ip-172-31-41-80 ec2-user]# bash wazuh-install.sh --wazuh-server wazuh-1 --ignore-check
08/09/2023 09:22:54 INFO: Starting Wazuh installation assistant. Wazuh version: 4.6.0
08/09/2023 09:22:54 INFO: Verbose logging redirected to /var/log/wazuh-install.log
08/09/2023 09:23:03 WARNING: Hardware and system checks ignored.
08/09/2023 09:23:04 INFO: --- Dependencies ---
08/09/2023 09:23:04 INFO: Installing gnupg2.
08/09/2023 09:23:05 ERROR: Cannot install dependency: gnupg2.

Wazuh Manager

[root@ip-172-31-37-148 ec2-user]# bash wazuh-install.sh --wazuh-dashboard dashboard --ignore-check
08/09/2023 10:25:10 INFO: Starting Wazuh installation assistant. Wazuh version: 4.6.0
08/09/2023 10:25:10 INFO: Verbose logging redirected to /var/log/wazuh-install.log
08/09/2023 10:25:19 WARNING: Hardware and system checks ignored.
08/09/2023 10:25:19 INFO: Wazuh web interface port will be 443.
08/09/2023 10:25:20 INFO: --- Dependencies ---
08/09/2023 10:25:20 INFO: Installing gnupg2.
08/09/2023 10:25:20 ERROR: Cannot install dependency: gnupg2.
@pro-akim pro-akim added level/task Subtask issue type/test Test issue type/bug Bug issue and removed type/test Test issue labels Sep 8, 2023
@wazuhci wazuhci moved this to Triage in Release 4.6.0 Sep 8, 2023
@wazuhci wazuhci moved this from Triage to Backlog in Release 4.6.0 Sep 8, 2023
@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
@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
@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 type/bug Bug issue
Projects
None yet
3 participants