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

Bootstrap Install Fail - line 248 - Ubuntu 24.04 LTS #40

Open
TankVet opened this issue May 11, 2024 · 2 comments
Open

Bootstrap Install Fail - line 248 - Ubuntu 24.04 LTS #40

TankVet opened this issue May 11, 2024 · 2 comments

Comments

@TankVet
Copy link

TankVet commented May 11, 2024

While running the bootstrap.sh script, I received the following error:
Install OpenNMS Horizon packages ... bootstrap-debian.sh: Error on line 248: sudo apt-get install -y -qq rrdtool jrrd2 jicmp jicmp6 opennms opennms-webapp-hawtio 2>> "${ERROR_LOG}"

When attempting to run the install command directly, I get the following response:

sudo apt-get install rrdtool jrrd2 jicmp jicmp6 opennms opennms-webapp-hawtio
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 opennms-db : Depends: postgresql-15 but it is not installable or
                       postgresql-14 but it is not installable or
                       postgresql-13 but it is not installable or
                       postgresql-12 but it is not installable or
                       postgresql-11 but it is not installable or
                       postgresql-10 but it is not installable
              Depends: iplike-pgsql15 (>= 2.3.0) but it is not going to be installed or
                       iplike-pgsql14 (>= 2.3.0) but it is not going to be installed or
                       iplike-pgsql13 (>= 2.3.0) but it is not going to be installed or
                       iplike-pgsql12 (>= 2.3.0) but it is not going to be installed or
                       iplike-pgsql11 (>= 2.3.0) but it is not going to be installed or
                       iplike-pgsql10 (>= 2.3.0) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Contents of bootstrap.log:

ALTER ROLE
CREATE ROLE
GRANT
CREATE DATABASE
E: Unable to correct problems, you have held broken packages.
@indigo423
Copy link
Member

indigo423 commented May 14, 2024

I was able to reproduce the problem. I've tried it with a plain Ubuntu 24.04 LTS install and got the following error message:

Enable SCRAM-SHA-256 in PostgreSQL    ... [ OK ]
Restart PostgreSQL Server             ... [ OK ]
Create database and users             ... [ OK ]
Install Horizon Repository            ...
Executing the  setup script for the 'opennms/stable' repository ...

   OK: Checking for required executable 'curl' ...
   OK: Checking for required executable 'apt-get' ...
   OK: Detecting your OS distribution and release using system methods ...
 ^^^^: ... Detected/provided for your OS/distribution, version and architecture:
 >>>>:
 >>>>: ... distro=ubuntu  version=24.04  codename=noble  arch=x86_64
 >>>>:
   OK: Checking for apt dependency 'apt-transport-https' ...
   OK: Checking for apt dependency 'ca-certificates' ...
   OK: Checking for apt dependency 'gnupg' ...
   OK: Checking for apt signed-by key support ...
   OK: Importing 'opennms/stable' repository GPG keys ...
   OK: Checking if upstream install config is OK ...
   OK: Installing 'opennms/stable' repository via apt ...
   OK: Updating apt repository metadata cache ...
   OK: The repository has been installed successfully - You're ready to rock!

Executing the  setup script for the 'opennms/common' repository ...

   OK: Checking for required executable 'curl' ...
   OK: Checking for required executable 'apt-get' ...
   OK: Detecting your OS distribution and release using system methods ...
 ^^^^: ... Detected/provided for your OS/distribution, version and architecture:
 >>>>:
 >>>>: ... distro=ubuntu  version=24.04  codename=noble  arch=x86_64
 >>>>:
   OK: Checking for apt dependency 'apt-transport-https' ...
   OK: Checking for apt dependency 'ca-certificates' ...
   OK: Checking for apt dependency 'gnupg' ...
   OK: Checking for apt signed-by key support ...
   OK: Importing 'opennms/common' repository GPG keys ...
   OK: Checking if upstream install config is OK ...
   OK: Installing 'opennms/common' repository via apt ...
   OK: Updating apt repository metadata cache ...
   OK: The repository has been installed successfully - You're ready to rock!

Install OpenNMS Horizon packages      ... bootstrap-debian.sh: Error on line 248: sudo apt-get install -y -qq rrdtool jrrd2 jicmp jicmp6 opennms opennms-webapp-hawtio 2>> "${ERROR_LOG}"

The bootstrap.log shows the same error:

indigo@ubuntu:~$ cat bootstrap.log
ALTER ROLE
CREATE ROLE
GRANT
CREATE DATABASE
E: Unable to correct problems, you have held broken packages.

The apt history log shows PostgreSQL version 16 which is not supported today.

Start-Date: 2024-05-14  13:27:00
Commandline: apt-get install -y postgresql
Requested-By: indigo (1000)
Install: libtypes-serialiser-perl:amd64 (1.01-1, automatic), ssl-cert:amd64 (1.1.2ubuntu1, automatic), postgresql-16:amd64 (16.2-1ubuntu4, automatic), sysstat:amd64 (12.6.1-2, automatic), logrotate:amd64 (3.21.0-2build1, automatic), libjson-perl:amd64 (4.10000-1, automatic), locales:amd64 (2.39-0ubuntu8.1, automatic), postgresql-client-16:amd64 (16.2-1ubuntu4, automatic), libcommon-sense-perl:amd64 (3.75-3build3, automatic), libxslt1.1:amd64 (1.1.39-0exp1build1, automatic), postgresql-common:amd64 (257build1, automatic), postgresql-client-common:amd64 (257build1, automatic), postgresql:amd64 (16+257build1), libjson-xs-perl:amd64 (4.030-2build3, automatic), libpq5:amd64 (16.2-1ubuntu4, automatic)
End-Date: 2024-05-14  13:27:11

The only way to get it running on the latest Ubuntu 24.04 LTS is by installing PostgreSQL 15.

@indigo423
Copy link
Member

indigo423 commented May 17, 2024

I have opened an enhancement request in IPL-39 to solve this problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants