Skip to content

Running apt-* command failed on the beta fpm images #265

Closed

Description

@tfirdaus

Affected Docker Images

🤔 It seems to only happen on the beta-*-fpm image variants. Tested on:

  • serversideup/php:beta-7.4-fpm
  • serversideup/php:beta-8.2-fpm

Docker Labels of the affected images

No response

Current Behavior

It throws error when running apt-get update command .

Get:1 http://deb.debian.org/debian bullseye InRelease [116 kB]
Err:1 http://deb.debian.org/debian bullseye InRelease
  Couldn't execute /usr/bin/apt-key to check /var/lib/apt/lists/partial/deb.debian.org_debian_dists_bullseye_InRelease

Expected Behavior

Should be able to reach to deb repository without any issues and get the package lists:

Get:1 http://deb.debian.org/debian bookworm InRelease [151 kB]
Get:2 http://deb.debian.org/debian bookworm-updates InRelease [52.1 kB]
Get:3 http://deb.debian.org/debian-security bookworm-security InRelease [48.0 kB]
Get:4 http://deb.debian.org/debian bookworm/main arm64 Packages [8685 kB]
Get:5 http://deb.debian.org/debian bookworm-updates/main arm64 Packages [12.5 kB]
Get:6 http://deb.debian.org/debian-security bookworm-security/main arm64 Packages [130 kB]
Fetched 9078 kB in 2s (4107 kB/s)
Reading package lists...

Tested this on serversideup/php:beta-8.2 without the -fpm.

Steps To Reproduce

😢 Failed

docker run --rm serversideup/php:beta-8.2-fpm apt-get update

👍 Good

docker run --rm serversideup/php:beta-8.2 apt-get update

Host Operating System

macOS Ventura (13.5.2)

Docker Version

Docker version 24.0.7, build afdd53b

Anything else?

No response

Activity

  1. added
    🧐 Bug: Needs Confirmation
    on Dec 29, 2023
  2. added
    🐛 Bug: Confirmed
    and removed
    🧐 Bug: Needs Confirmation
    on Dec 29, 2023
  3. added a commit that references this issue on Dec 29, 2023
    694ab28
  4. jaydrogers commented on Dec 29, 2023

    @jaydrogers
    Member

    Thanks for the detailed bug report!

    I have no idea why, but this fixed it in 694ab28

    - COPY --chmod=644 src/php-fpm.d/ /
    + COPY src/php-fpm.d/ /

    I don't know why being explicit with --chmod=644 would affect the apt update 😆

    Fix is deployed

    Watch this job for latest. Should be available in about an hour: https://github.com/serversideup/docker-php/actions/runs/7358546911

  5. added
    👨‍🔬 Release: Pre-release
    on Dec 29, 2023
  6. added a commit that references this issue on Feb 5, 2024
    20ecec1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

🐛 Bug: Confirmed👨‍🔬 Release: Pre-release

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions