Varying-Vagrant-Vagrants / VVV

An open source Vagrant configuration for developing with WordPress
https://varyingvagrantvagrants.org
MIT License
4.55k stars 849 forks source link

Bug: Failed Fetching PHP 7.4 packages Resource temporarily unavailable #2686

Closed Edwin-KeXu closed 7 months ago

Edwin-KeXu commented 10 months ago

Are you using the latest stable or develop branch version of VVV?

Yes (develop)

Is it a new VVV, or an existing VVV that used to work?

Existing, worked but now broken

Did you use a CustomFile?

No (default)

Whats the problem?

When I execute the vagrant up --provision command, I get an error: Installing apt-get packages returned a failure code, cleaning up apt caches then exiting

How do we reproduce it?

No response

What is the output of vagrant status

Processing triggers for mime-support (3.64ubuntu1) ...
Processing triggers for libc-bin (2.31-0ubuntu9.9) ...
Processing triggers for rsyslog (8.2001.0-1ubuntu1.3) ...
Processing triggers for ufw (0.36-6ubuntu1.1) ...
Processing triggers for systemd (245.4-4ubuntu3.22) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for dbus (1.12.16-2ubuntu2.3) ...
Processing triggers for install-info (6.7.0.dfsg.2-5) ...
Processing triggers for php7.4-cli (1:7.4.33-7+ubuntu20.04.1+deb.sury.org+1) ...
Processing triggers for php7.4-fpm (1:7.4.33-7+ubuntu20.04.1+deb.sury.org+1) ...
Errors were encountered while processing:
 php-pear
E: Failed to fetch https://ppa.launchpadcontent.net/ondrej/php/ubuntu/pool/main/p/php7.4/php7.4-xml_7.4.33-7+ubuntu20.04.1+deb.sury.org+1_arm64.deb  Could not wait for server fd - select (11: Resource temporarily unavailable) [IP: 185.125.190.52 443]
E: Failed to fetch https://ppa.launchpadcontent.net/ondrej/php/ubuntu/pool/main/p/php7.4/php7.4-bcmath_7.4.33-7+ubuntu20.04.1+deb.sury.org+1_arm64.deb  Could not wait for server fd - select (11: Resource temporarily unavailable) [IP: 185.125.190.52 443]
E: Sub-process /usr/bin/dpkg returned an error code (1)
 * Installing apt-get packages returned a failure code, cleaning up apt caches then exiting
 ! Main packages check and install failed, halting provision
 ! The 'main' provisioner ran into problems, the full log is available at '/var/log/provisioners/2023.08.19_16-08-09/provisioner-main.log'. It completed in 4684 seconds.

Which Operating System are you using?

Apple MacOS (Arm64/Apple Silicon)

Which provider are you using?

Parallels (Apple Silicon/Arm)

welcome[bot] commented 10 months ago

Thanks for opening your first issue here! Be sure to follow the issue template and include your OS/Vagrant/VVV versions! Don't forget you can get support in the VVV slack at https://varyingvagrantvagrants.org/docs/en-US/slack/

tomjn commented 10 months ago

Can you include the entire output? 7.4 is nearing end of life soon I hope the packages haven’t been withdrawn but I can’t tell from the output. It may even be a temporary network connectivity thing

On Sat, 19 Aug 2023 at 16:52, welcome[bot] @.***> wrote:

Thanks for opening your first issue here! Be sure to follow the issue template and include your OS/Vagrant/VVV versions! Don't forget you can get support in the VVV slack at https://varyingvagrantvagrants.org/docs/en-US/slack/

— Reply to this email directly, view it on GitHub https://github.com/Varying-Vagrant-Vagrants/VVV/issues/2686#issuecomment-1685033085, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAOLZ6JVBIRV7VS3VV2NXLXWDOKBANCNFSM6AAAAAA3WU4YZE . You are receiving this because you are subscribed to this thread.Message ID: @.***>

Edwin-KeXu commented 10 months ago

provisioner-main.log this

Edwin-KeXu commented 10 months ago

vagrant version: Vagrant 2.3.7 Apple MacOS (M1)

tomjn commented 10 months ago

Hmm resource temporarily unavailable, there's nothing that can be done to fix that at the VVV end of PHP 7.4 is still to be used.

TLDR: it's saying something equivalent to the Ubuntu PHP 7.4 package shop doesn't open for another hour or two, try again later

tomjn commented 10 months ago

You may also have luck switching your machine to a different network on a different ISP, universities for example are notorious for interfering to try and save bandwidth by caching things and messing it up

tomjn commented 7 months ago

Closing this as the issue reported is a temporary package availability error, it isn't something VVV has control over or can influence, and will self-resolve given time.

Fixing this properly would require a re-architecture of how Apt work, I expect this will take tens of thousands of man hours across many major Linux distributions

tomjn commented 7 months ago

Closing this as the issue reported is a temporary package availability error, it isn't something VVV has control over or can influence, and will self-resolve given time.

Fixing this properly would require a re-architecture of how Apt work, I expect this will take tens of thousands of man hours across many major Linux distributions