Skip to content

Build documentation github action is failing #3960

@jaymeh

Description

@jaymeh

When trying to run the build documentation Docker container for my project, the action is failing.

Expected behavior

I'd expect that the action would install dependencies and run

Actual behavior

The command is failing with the attached error messages:

  #13 [base 2/3] RUN mkdir -p /usr/share/man/man1     && apt-get update     && apt-get install --no-install-recommends -yq libicu-dev libicu72 zlib1g-dev ca-certificates-java gpg
  #13 0.166 Hit:1 http://deb.debian.org/debian trixie InRelease
  #13 0.167 Get:2 http://deb.debian.org/debian trixie-updates InRelease [47.1 kB]
  #13 0.168 Get:3 http://deb.debian.org/debian-security trixie-security InRelease [43.4 kB]
  #13 0.184 Get:4 http://deb.debian.org/debian trixie/main amd64 Packages [9668 kB]
  #13 0.241 Get:5 http://deb.debian.org/debian trixie-updates/main amd64 Packages [2432 B]
  #13 0.241 Get:6 http://deb.debian.org/debian-security trixie-security/main amd64 Packages [8780 B]
  #13 0.873 Fetched 9769 kB in 1s (13.5 MB/s)
  #13 0.873 Reading package lists...
  #13 1.366 Reading package lists...
  #13 1.841 Building dependency tree...
  #13 1.964 Reading state information...
  #13 1.979 E: Unable to locate package libicu72
  #13 ERROR: process "/bin/sh -c mkdir -p /usr/share/man/man1     && apt-get update     && apt-get install --no-install-recommends -yq libicu-dev libicu72 zlib1g-dev ca-certificates-java gpg" did not complete successfully: exit code: 100
  ------
   > [base 2/3] RUN mkdir -p /usr/share/man/man1     && apt-get update     && apt-get install --no-install-recommends -yq libicu-dev libicu72 zlib1g-dev ca-certificates-java gpg:
  0.166 Hit:1 http://deb.debian.org/debian trixie InRelease
  0.167 Get:2 http://deb.debian.org/debian trixie-updates InRelease [47.1 kB]
  0.168 Get:3 http://deb.debian.org/debian-security trixie-security InRelease [43.4 kB]
  0.184 Get:4 http://deb.debian.org/debian trixie/main amd64 Packages [9668 kB]
  0.241 Get:5 http://deb.debian.org/debian trixie-updates/main amd64 Packages [2432 B]
  0.241 Get:6 http://deb.debian.org/debian-security trixie-security/main amd64 Packages [8780 B]
  
  
  
  1.979 E: Unable to locate package libicu72
  ------
  
   5 warnings found (use docker --debug to expand):
   - FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 34)
   - FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 36)
   - FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 42)
   - FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 1)
   - FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 19)
  Dockerfile:5
  --------------------
     4 |     # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=863199#23
     5 | >>> RUN mkdir -p /usr/share/man/man1 \
     6 | >>>     && apt-get update \
     7 | >>>     && apt-get install --no-install-recommends -yq libicu-dev libicu72 zlib1g-dev ca-certificates-java gpg
     8 |     
  --------------------
  ERROR: failed to build: failed to solve: process "/bin/sh -c mkdir -p /usr/share/man/man1     && apt-get update     && apt-get install --no-install-recommends -yq libicu-dev libicu72 zlib1g-dev ca-certificates-java gpg" did not complete successfully: exit code: 100

This feels likely to be caused by the release of Debian 13 (trixie) and the PHP 8.1 base container using this instead of Debian 12, where the package would be available.

Steps to reproduce the problem

  1. Attempt to use the following github action to build documentation:
      - name: Build API Docs
        uses: "phpDocumentor/phpDocumentor@master"

Your environment

Github actions/docker container.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions