gnutls_handshake() failed: Handshake failed
You may see this error when connecting to certain repositories from an older DreamHost VPS or Dedicated server running Ubuntu 14 (Trusty). The error is related to an Ubuntu 14 bug. The following explains what servers this may occur on.
DreamHost has already updated Shared web servers to Ubuntu Bionic 18 where you will no longer run into this error.
Private servers purchased before March 2020 run Ubuntu 14.
Private servers purchased after March 9th, 2020 run the operating system Debian Stretch where you will no longer run into this error. DreamHost will soon update all private servers to Debian Stretch.
Any newly purchased Dedicated server runs Bionic. DreamHost is currently upgrading old Dedicated servers to Bionic where you will no longer run into this error.
View the following articles for further details: