Having trouble installing .NET 5 on ubuntu server 20.04
Linux

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)... 40.114.136.21
Connecting to packages.microsoft.com (packages.microsoft.com)|40.114.136.21|:443... connected.
Unable to establish SSL connection.

Try updating wget or use curl:

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 command:

$ 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.

Leave a Reply

Your email address will not be published. Required fields are marked *