Having trouble installing .NET 5 on ubuntu server 20.04
If you Having trouble installing .NET 5 on ubuntu server 20.04 then may be this solution will help you with the solution.
I had previously installed .NET products on multiple ubuntu servers just fine but just one particular server can’t connect to microsoft servers apparently.
user@sv:~$ wget https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb --2021-02-03 10:01:35-- https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb Resolving packages.microsoft.com (packages.microsoft.com)... 220.127.116.11 Connecting to packages.microsoft.com (packages.microsoft.com)|18.104.22.168|:443... connected. Unable to establish SSL connection.
wget or use
curl -LO 'https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb'
Have you confirmed that your server’s internal clock is accurate? If the time is off by more than 15 minutes, SSL (and other) handshakes will fail.
If you need to have the time on an Ubuntu machine run with a different system time, such as when performing Y2038 testing or something similar, you can add
--no-check-certificate to the
$ wget --no-check-certificate https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb
However, there will still be the problem of installing software if the system clock is drastically out of alignment.
Hope Having trouble installing .NET 5 on ubuntu server 20.04will solved with the above solution. If you have any suggestion or better solution please comment below.