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

GH Actions: fix apt-get dependency hell #666

Closed
wants to merge 1 commit into from

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented Jan 21, 2022

The command as-it-was, is currently resulting in the following error:

You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 libpcre3-dev : Depends: libpcre3 (= 2:8.44-2+ubuntu20.04.1+deb.sury.org+1) but 2:8.39-12build1 is to be installed
 libpcrecpp0v5 : Depends: libpcre3 (>= 2:8.41) but 2:8.39-12build1 is to be installed
 php7.2-cgi : Depends: libpcre3 (>= 2:8.41) but 2:8.39-12build1 is to be installed
 php7.2-cli : Depends: libpcre3 (>= 2:8.41) but 2:8.39-12build1 is to be installed
 php7.2-fpm : Depends: libpcre3 (>= 2:8.41) but 2:8.39-12build1 is to be installed
 php7.2-phpdbg : Depends: libpcre3 (>= 2:8.41) but 2:8.39-12build1 is to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

This is most likely due to something having been changed/updated in the ubuntu-latest image in a way which is incompatible with our use.

So, following the advise in the error message, I'm adding apt --fix-broken install to the workflows.
I'm also splitting the two commands in the "Install locales" step into separate steps to allow for easier debugging of where things actually go wrong.


Context: I was trying to test if the just released Composer 2.2.5 would fix the issue we've been seeing with the test server failing to start, when the script started erroring out before even reaching that step. This PR doesn't fix the issue below, but it does fix the new error I saw as described above.
Also see #663

start-stop-daemon: unable to open pidfile '/home/runner/work/Requests/Requests//home/runner/work/Requests/Requests/vendor/requests/test-server/bin/http.pid' for writing (No such file or directory)

@jrfnl jrfnl added this to the 2.x Next milestone Jan 21, 2022
@jrfnl jrfnl requested a review from schlessera January 21, 2022 17:28
@jrfnl
Copy link
Member Author

jrfnl commented Jan 21, 2022

For whomever is interested, @wojsmol and me have been brainstorming to see if we could track down the root cause of this issue in Slack: https://wordpress.slack.com/archives/C02BBE29V42/p1642793871008300

The command as-it-was, is currently resulting in the following error:
```
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 libpcre3-dev : Depends: libpcre3 (= 2:8.44-2+ubuntu20.04.1+deb.sury.org+1) but 2:8.39-12build1 is to be installed
 libpcrecpp0v5 : Depends: libpcre3 (>= 2:8.41) but 2:8.39-12build1 is to be installed
 php7.2-cgi : Depends: libpcre3 (>= 2:8.41) but 2:8.39-12build1 is to be installed
 php7.2-cli : Depends: libpcre3 (>= 2:8.41) but 2:8.39-12build1 is to be installed
 php7.2-fpm : Depends: libpcre3 (>= 2:8.41) but 2:8.39-12build1 is to be installed
 php7.2-phpdbg : Depends: libpcre3 (>= 2:8.41) but 2:8.39-12build1 is to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
```

So, following the advise in the error message, I'm adding `apt --fix-broken install` to the workflows.
I'm also splitting the two commands in the "Install locales" step into separate steps to allow for easier debugging of where things actually go wrong.
@jrfnl jrfnl force-pushed the feature/ghactions-fix-broken-apt-get branch from 4868341 to bcc41f6 Compare February 7, 2022 15:15
@jrfnl
Copy link
Member Author

jrfnl commented Feb 7, 2022

Closing for now as the issue currently doesn't seem to exist anymore.

@jrfnl jrfnl closed this Feb 7, 2022
@jrfnl jrfnl deleted the feature/ghactions-fix-broken-apt-get branch February 7, 2022 15:26
@jrfnl jrfnl removed this from the 2.0.1 milestone Feb 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant