IBM / ibmi-oss-issues

Important resources for anyone interested in open source on IBM i
Creative Commons Zero v1.0 Universal
13 stars 0 forks source link

Cannot install on Debian-based distro #45

Closed jscottSwift closed 1 month ago

jscottSwift commented 1 year ago

I have a base Ubuntu image that has the ibm-iaccess driver installed. However, running my build process has recently been failing. I am using the commands provided in the documentation.

curl https://public.dhe.ibm.com/software/ibmi/products/odbc/debs/dists/1.1.0/ibmi-acs-1.1.0.list | tee /etc/apt/sources.list.d/ibmi-acs-1.1.0.list
apt-get update -y

The image successfully built on June 13 2023, but has been failing since July 1 2023. See the attached screenshot from my successful build. The output shows the process installing the libodbc2 and other dependencies successfully.

However, I am now getting the following error:

The following packages have unmet dependencies:
ibm-iaccess:

It seems like something has changed that it is now requiring old, nonexistent dependencies.

successbuild

kadler commented 1 year ago

Which Ubuntu version are you using? Can you also paste the relevant install log for the failing build as text (not a screenshot).

jscottSwift commented 1 year ago

I'm using Ubuntu 23.10. But I am open to other suggestions. Attached is the full dockerfile and the output logs showing success and failures.

The successful one was done back in June by our GitLab CICD pipeline. That one was also installing .NET because this part of a larger base image for our .NET apps that utilize the iaccess driver to query our AS400.

Thanks,

Jeff Scott

From: Kevin Adler @.> Sent: Tuesday, October 3, 2023 3:08 PM To: IBM/ibmi-oss-issues @.> Cc: Jeff Scott @.>; Author @.> Subject: Re: [IBM/ibmi-oss-issues] Cannot install on Debian-based distro (Issue #45)

[External Email] This email originated from outside the organization. Review the sender's email address and mouse over links before clicking or responding. Validate any requests or attachments before proceeding. If in doubt, contact the help desk.

Which Ubuntu version are you using? Can you also paste the relevant install log for the failing build as text (not a screenshot).

- Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https://github.com/IBM/ibmi-oss-issues/issues/45*issuecomment-1745801940__;Iw!!AJ42WkbdAfjdAg!lheVEg1lIYV5qK0-44SM-6OMX4Qnhy1bEqDOEJpql7LcaMTAhWH1I8k3QA27LyrhBIXLPxhuVRz-UwGCsD4QPvCUs_B3TIWd$, or unsubscribehttps://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AZSBHFUDEE32HYZWP4RM25TX5SECLAVCNFSM6AAAAAA5RUABHWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONBVHAYDCOJUGA__;!!AJ42WkbdAfjdAg!lheVEg1lIYV5qK0-44SM-6OMX4Qnhy1bEqDOEJpql7LcaMTAhWH1I8k3QA27LyrhBIXLPxhuVRz-UwGCsD4QPvCUs07VX44m$. You are receiving this because you authored the thread.Message ID: @.***>

Base Image

FROM ubuntu:23.10

Run Updates and install PreReqs

RUN apt-get update -y && \ apt-get upgrade -y && \ apt-get install -y curl && \ apt-get clean

Pull Packages and Add Additional APT Repos

RUN curl https://public.dhe.ibm.com/software/ibmi/products/odbc/debs/dists/1.1.0/ibmi-acs-1.1.0.list | tee /etc/apt/sources.list.d/ibmi-acs-1.1.0.list && \ apt-get update -y

Install IBM IAccess Driver

RUN apt-get install -y ibm-iaccess

kadler commented 1 year ago

23.10 isn't even out yet, but you said it has been failing since July so presumably you were using a different image then. Were you using a different image back in June? We only support the LTS releases for Ubuntu (currently 20.04 and 22.04) BTW.

jscottSwift commented 1 year ago

I switched to 23.04 and that has seemed to solve my issue. 23.10 images are available on DockerHub, just didn't realize they were still in the dev stage. I KNOW I was using 23.10 back in June. Maybe they changed something in more recent images that is using a different/outdated APT repo.

Thanks!

Jeff

From: Kevin Adler @.> Sent: Tuesday, October 3, 2023 4:03 PM To: IBM/ibmi-oss-issues @.> Cc: Jeff Scott @.>; Author @.> Subject: Re: [IBM/ibmi-oss-issues] Cannot install on Debian-based distro (Issue #45)

[External Email] This email originated from outside the organization. Review the sender's email address and mouse over links before clicking or responding. Validate any requests or attachments before proceeding. If in doubt, contact the help desk.

23.10 isn't even out yet, but you said it has been failing since July so presumably you were using a different image then. Were you using a different image back in June? We only support the LTS releases for Ubuntu (currently 20.04 and 22.04) BTW.

- Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https://github.com/IBM/ibmi-oss-issues/issues/45*issuecomment-1745858190__;Iw!!AJ42WkbdAfjdAg!kFtFVhELJfEWfqATWMZ6LkLRQ-rtofRs_Gm3vX11FS42a9xVmzI2mbM5F4wv8b5luGawTMNNhWZmfgv5O6bCBOIi2E59DWns$, or unsubscribehttps://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AZSBHFRYL7IFOEEZWQMSBJ3X5SKS5AVCNFSM6AAAAAA5RUABHWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONBVHA2TQMJZGA__;!!AJ42WkbdAfjdAg!kFtFVhELJfEWfqATWMZ6LkLRQ-rtofRs_Gm3vX11FS42a9xVmzI2mbM5F4wv8b5luGawTMNNhWZmfgv5O6bCBOIi2HX6ydVw$. You are receiving this because you authored the thread.Message ID: @.***>

kadler commented 1 month ago

So it looks like libodbc1 and odbcinst1debian2 went away with 23.10 at least. The latest driver 1.1.0.28 has fixes for this so it can be installed on 24.04. It may or may not work on 23.10, but we only support LTS releases as mentioned previously.