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

[Feature Request] Debian (12 Bookworm) support #375

Open
marcelrouw opened this issue Sep 4, 2023 · 2 comments
Open

[Feature Request] Debian (12 Bookworm) support #375

marcelrouw opened this issue Sep 4, 2023 · 2 comments

Comments

@marcelrouw
Copy link

I like to ask for Debian (12 Bookworm) support for the codedeploy agent.
Currently we are using Debian 11 and we can install and use codedeploy agent for our use case without a problem although it's not supported according to the AWS documentation. Probably a happy accident. :)

@CharlemagneLasse
Copy link

@t0shiii when will the deb packages finally be fixed? I can't deploy new servers since over half a year because of the problem:

cat /tmp/codedeploy-agent.update.log
# Logfile created on 2024-01-17 14:58:48 +0000 by logger.rb/v1.5.0
I, [2024-01-17T14:58:49.130833 #5556]  INFO -- : Starting Ruby version check.
I, [2024-01-17T14:58:49.130947 #5556]  INFO -- : Starting update check.
I, [2024-01-17T14:58:49.130974 #5556]  INFO -- : Attempting to automatically detect supported package manager type for system...
W, [2024-01-17T14:58:49.141987 #5556]  WARN -- : apt-get found but no gdebi. Installing gdebi with `apt-get install gdebi-core -y`...
Reading package lists...
Building dependency tree...
Reading state information...
The following NEW packages will be installed:
  gdebi-core
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 130 kB of archives.
After this operation, 876 kB of additional disk space will be used.
Get:1 file:/etc/apt/mirrors/debian.list Mirrorlist [38 B]
Get:2 https://cdn-aws.deb.debian.org/debian bookworm/main amd64 gdebi-core all 0.9.5.7+nmu6 [130 kB]
dpkg-preconfigure: unable to re-open stdin: No such file or directory
Fetched 130 kB in 0s (2136 kB/s)
Selecting previously unselected package gdebi-core.
(Reading database ... 34376 files and directories currently installed.)
Preparing to unpack .../gdebi-core_0.9.5.7+nmu6_all.deb ...
Unpacking gdebi-core (0.9.5.7+nmu6) ...
Setting up gdebi-core (0.9.5.7+nmu6) ...
Processing triggers for man-db (2.11.2-2) ...
I, [2024-01-17T14:58:51.039733 #5556]  INFO -- : Checking AWS_REGION environment variable for region information...
I, [2024-01-17T14:58:51.039824 #5556]  INFO -- : Checking EC2 metadata service for region information...
I, [2024-01-17T14:58:51.056494 #5556]  INFO -- : Checking AWS_DOMAIN environment variable for domain information...
I, [2024-01-17T14:58:51.056555 #5556]  INFO -- : Checking EC2 metadata service for domain information...
I, [2024-01-17T14:58:51.060190 #5556]  INFO -- : Downloading version file from bucket aws-codedeploy-us-east-1 and key latest/LATEST_VERSION...
I, [2024-01-17T14:58:51.060341 #5556]  INFO -- : Endpoint: https://aws-codedeploy-us-east-1.s3.us-east-1.amazonaws.com/latest/LATEST_VERSION
dpkg-query: package 'codedeploy-agent' is not installed and no information is available
Use dpkg --info (= dpkg-deb --info) to examine archive files.
I, [2024-01-17T14:58:51.170187 #5556]  INFO -- : Running version No running version
I, [2024-01-17T14:58:51.170563 #5556]  INFO -- : Downloading package from bucket aws-codedeploy-us-east-1 and key releases/codedeploy-agent_1.6.0-49_all.deb...
I, [2024-01-17T14:58:51.170696 #5556]  INFO -- : Endpoint: https://aws-codedeploy-us-east-1.s3.us-east-1.amazonaws.com/releases/codedeploy-agent_1.6.0-49_all.deb
I, [2024-01-17T14:58:51.291813 #5556]  INFO -- : Executing `/usr/bin/gdebi -n -o Dpkg::Options::=--force-confdef -o Dkpg::Options::=--force-confold /tmp/codedeploy-agent_1.6.0-49_all.tmp-20240117-5556-b7uksu.deb`...
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
 This package is uninstallable9%
Dependency is not satisfiable: ruby2.0|ruby2.1|ruby2.2|ruby2.3|ruby2.4|ruby2.5|ruby2.6|ruby2.7|ruby3.0

Reading state information... Done
E, [2024-01-17T14:58:52.168222 #5556] ERROR -- : Error installing /tmp/codedeploy-agent_1.6.0-49_all.tmp-20240117-5556-b7uksu.deb.

@julien3
Copy link

julien3 commented Sep 9, 2024

Latest v1.7 packages come with ruby-3.1 and ruby-3.2 listed in the deb dependencies. I just tested a regular install on Debian 12 (using https://docs.aws.amazon.com/codedeploy/latest/userguide/codedeploy-agent-operations-install-ubuntu.html). It now works as expected. This ticket can be closed I guess.

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

3 participants