When i hit enter after typing the command:
sudo add-apt-repository ppa:ondrej/php
My terminal keeps loading for like 5-10 minutes, after this wait, it asks for the confirmation but when i hit enter to confirm the following error comes up:
Error: retrieving gpg key timed out.
Hi @Lucas1880 and welcome.
The command to add the PHP Repository normally responds instantly. What you’re describing isn’t something I’ve ever experienced. But If I were to take an educated guess, I’d suspect one of two things. Try looking into both of these leads:
- The Repo was unavailable at the time of your request
- Your firewall may be restricting all external connections
Alternatively, if you don’t get anywhere with those then you might want to try a Q&A site more qualified to answer Linux enquiries: https://unix.stackexchange.com
Thank you very much for your reply, I will check if that works as soon as possible! And congrats for your content it’s the best I could find until now
Edit: the repository is unavailable at the time, i swapped my source list to another one with php 7.2 and skipped the repository adding step