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

PHP version 8.1 workspace failed to build because phpdbg installation failed #3192

Closed
amorZhu opened this issue Apr 11, 2022 · 4 comments
Closed

Comments

@amorZhu
Copy link
Contributor

amorZhu commented Apr 11, 2022

Description:

workspace build failed

Expected Behavior:

workspace build success

Context information:

Output of git rev-parse HEAD

5028e0c37bdb30b0dbe63434a80d784d7e9c896c

Output of docker version

Client:
 Cloud integration: v1.0.22
 Version:           20.10.13
 API version:       1.41
 Go version:        go1.16.15
 Git commit:        a224086
 Built:             Thu Mar 10 14:08:44 2022
 OS/Arch:           darwin/amd64
 Context:           default
 Experimental:      true

Server: Docker Desktop 4.6.1 (76265)
 Engine:
  Version:          20.10.13
  API version:      1.41 (minimum version 1.12)
  Go version:       go1.16.15
  Git commit:       906f57f
  Built:            Thu Mar 10 14:06:05 2022
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.5.10
  GitCommit:        2a1d4dbdb2a1030dc5b01e96fb110a9d9f150ecc
 runc:
  Version:          1.0.3
  GitCommit:        v1.0.3-0-gf46b6ba
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0

Output of docker-compose version

docker-compose version 1.29.2, build 5becea4c
docker-py version: 5.0.0
CPython version: 3.9.0
OpenSSL version: OpenSSL 1.1.1h  22 Sep 2020

Steps to reproduce the issue:

  1. select php version 8.1
  2. run docker-compose up -d --build workspace

Stacktrace & Additional info:

=> ERROR [ 30/108] RUN if [ true = true ]; then     apt-get install -y --force-yes php8.1-phpdbg ;fi                                                                                                               4.7s
------
 > [ 30/108] RUN if [ true = true ]; then     apt-get install -y --force-yes php8.1-phpdbg ;fi:
#34 0.358 Reading package lists...
#34 1.394 Building dependency tree...
#34 1.621 Reading state information...
#34 1.918 The following NEW packages will be installed:
#34 1.918   php8.1-phpdbg
#34 4.648 0 upgraded, 1 newly installed, 0 to remove and 68 not upgraded.
#34 4.648 Need to get 1,679 kB of archives.
#34 4.648 After this operation, 5,618 kB of additional disk space will be used.
#34 4.648 Err:1 http://ppa.launchpad.net/ondrej/php/ubuntu focal/main amd64 php8.1-phpdbg amd64 8.1.3-1+ubuntu20.04.1+deb.sury.org+1
#34 4.648   404  Not Found [IP: 91.189.95.85 80]
#34 4.661 W: --force-yes is deprecated, use one of the options starting with --allow instead.
#34 4.661 E: Failed to fetch http://ppa.launchpad.net/ondrej/php/ubuntu/pool/main/p/php8.1/php8.1-phpdbg_8.1.3-1+ubuntu20.04.1+deb.sury.org+1_amd64.deb  404  Not Found [IP: 91.189.95.85 80]
#34 4.661 E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
------
executor failed running [/bin/sh -c if [ ${INSTALL_PHPDBG} = true ]; then     apt-get install -y --force-yes php${LARADOCK_PHP_VERSION}-phpdbg ;fi]: exit code: 100

Through query http://ppa.launchpad.net/ondrej/php/ubuntu/pool/main/p/php8.1/ Content, I didn't find phpdbg in version 8.1.3.

@amorZhu
Copy link
Contributor Author

amorZhu commented Apr 11, 2022

Great Wall problem!!!

@jeremynikolic
Copy link

@amorZhu did you solve this by any chance?

I am having the same issue with php 8.0 😬

@amorZhu
Copy link
Contributor Author

amorZhu commented Apr 14, 2022

@jeremynikolic The possible reason is the apt source. It is recommended to use the default image source!

@jeremynikolic
Copy link

@amorZhu Thanks for getting back to me, I could get this sorted out by adjusting the workspace image version as I had it to a specific one instead of latest 👍

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

No branches or pull requests

2 participants