Ubuntu 14.04 update to PHP7.4 was unsuccessful. Apt repo in ./sources.list.d/php.list updated their TLS cypher suite and it no longer supports those cypher suite that gnutls in ubuntu 14.04 supports (concretelly gnutls-cli (GnuTLS) 2.12.23 version). Possible solutions would be:
- try to update gnutls
- try to install PHP7.4 w/o apt
Since I was planning to update my WP server to finally use docker and move it to some modern hosting provider (Linode and Digital Ocean are the primary considerations currently) I decided to not fix this issue and just move along with the upgrade. What fallows are some of the outputs I received that helped me understand what is going on.
[email protected]:~$ sudo apt-get update ... Err https://packages.sury.org stretch/main amd64 Packages gnutls_handshake() failed: Handshake failed Err https://packages.sury.org stretch/main i386 Packages gnutls_handshake() failed: Handshake failed Ign https://packages.sury.org stretch/main Translation-en W: Failed to fetch https://packages.sury.. gnutls_handshake() failed: Handshake failed W: Failed to fetch https://packages.sury.. gnutls_handshake() failed: Handshake failed E: Some index files failed to download. They have been ignored, or old ones used...
[email protected]:~$ sudo apt-get install gnutls-cli [email protected]:~$ gnutls-cli -p 443 packages.sury.org Resolving 'packages.sury.org'... Connecting to '104.31.95.169:443'... *** Fatal error: A TLS fatal alert has been received. *** Received alert [40]: Handshake failed *** Handshake has failed GnuTLS error: A TLS fatal alert has been received.
[email protected]:~$ gnutls-cli -v gnutls-cli (GnuTLS) 2.12.23 Packaged by Debian (2.12.23-12ubuntu2.8) Copyright (C) 2012 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html;. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Written by Nikos Mavrogiannopoulos.