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

Cannot install dependency: apt-transport-https when trying the Offline Assisted Installation #3062

Closed
CarlosALgit opened this issue Jul 29, 2024 · 2 comments
Assignees
Labels
level/task Subtask issue type/bug Bug issue

Comments

@CarlosALgit
Copy link
Member

Wazuh version Install type Action performed Platform
4.9.0-alpha3 AIO Install Ubuntu 22.04

Related: #3057

While working on the related issue, I was installing a Wazuh AIO using the Offline Installation Assistant.
First, I proceeded with the prerequisites step. Related documentation: https://documentation-dev.wazuh.com/v4.9.0-alpha3/deployment-options/offline-installation/index.html
Then, I followed the installation using the assistant. Related documentation: https://documentation-dev.wazuh.com/v4.9.0-alpha3/deployment-options/offline-installation/installation-assistant.html

The output when trying to install the indexer is the following:

root@ubuntu-jammy:~# bash wazuh-install.sh --offline-installation --wazuh-indexer node-1
29/07/2024 12:53:13 INFO: Starting Wazuh installation assistant. Wazuh version: 4.9.0
29/07/2024 12:53:13 INFO: Verbose logging redirected to /var/log/wazuh-install.log
29/07/2024 12:53:13 INFO: Checking installed dependencies for Offline installation.
29/07/2024 12:53:14 INFO: Verifying that your system meets the recommended minimum hardware requirements.
29/07/2024 12:53:22 INFO: --- Dependencies ----
29/07/2024 12:53:22 INFO: Installing apt-transport-https.
29/07/2024 12:53:22 ERROR: Cannot install dependency: apt-transport-https.
29/07/2024 12:53:22 INFO: --- Removing existing Wazuh installation ---
29/07/2024 12:53:22 INFO: Wazuh GPG key not found in the system
29/07/2024 12:53:22 INFO: Installation cleaned. Check the /var/log/wazuh-install.log file to learn more about the issue.

But installing the package with apt seems to work fine:

root@ubuntu-jammy:~# apt install -y apt-transport-https
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
  apt-transport-https
0 upgraded, 1 newly installed, 0 to remove and 114 not upgraded.
Need to get 1510 B of archives.
After this operation, 170 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 apt-transport-https all 2.4.12 [1510 B]
Fetched 1510 B in 0s (4331 B/s)               
Selecting previously unselected package apt-transport-https.
(Reading database ... 64005 files and directories currently installed.)
Preparing to unpack .../apt-transport-https_2.4.12_all.deb ...
Unpacking apt-transport-https (2.4.12) ...
Setting up apt-transport-https (2.4.12) ...
Scanning processes...                                                                                                                                                                                                                       
Scanning linux images...                                                                                                                                                                                                                    

Running kernel seems to be up-to-date.

No services need to be restarted.

No containers need to be restarted.

No user sessions are running outdated binaries.

No VM guests are running outdated hypervisor (qemu) binaries on this host.

So, the purpose of this issue is to investigate if this error depends on us (Wazuh) and, if so, check if the problem persists on other installation methods and fix the problem.

@CarlosALgit CarlosALgit added level/task Subtask issue type/bug Bug issue labels Jul 29, 2024
@CarlosALgit CarlosALgit self-assigned this Jul 29, 2024
@CarlosALgit
Copy link
Member Author

Update Report

I installed manually the apt-transport-https package and continued with the installation in order to see if there was more errors after.

The Wazuh Manager installation was completed successfully but the Wazuh Dashboard failed trying to install the debhelper dependency:

root@ubuntu-jammy:/home/vagrant# bash wazuh-install.sh --offline-installation --wazuh-dashboard dashboard
29/07/2024 14:59:23 INFO: Starting Wazuh installation assistant. Wazuh version: 4.9.0
29/07/2024 14:59:23 INFO: Verbose logging redirected to /var/log/wazuh-install.log
29/07/2024 14:59:23 INFO: Checking installed dependencies for Offline installation.
29/07/2024 14:59:25 INFO: Verifying that your system meets the recommended minimum hardware requirements.
29/07/2024 14:59:29 INFO: Wazuh web interface port will be 443.
29/07/2024 14:59:32 INFO: --- Dependencies ----
29/07/2024 14:59:32 INFO: Installing debhelper.
29/07/2024 14:59:33 ERROR: Cannot install dependency: debhelper.
29/07/2024 14:59:33 INFO: --- Removing existing Wazuh installation ---
29/07/2024 14:59:33 INFO: Wazuh GPG key not found in the system
29/07/2024 14:59:33 INFO: Installation cleaned. Check the /var/log/wazuh-install.log file to learn more about the issue.

Workaround

I'm going to check the code to review possible mistakes in the way we download the dependencies.

@teddytpc1
Copy link
Member

It's been decided to fix this kind of issue as part of the DevOps overhaul for 5.0.0.

@teddytpc1 teddytpc1 closed this as not planned Won't fix, can't repro, duplicate, stale Jul 30, 2024
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
No open projects
Status: Done
Development

No branches or pull requests

2 participants