I have followed the official Microsoft documentation to install Dot Net Core on the server, it says to run the following commands:
wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.asc.gpg
sudo mv microsoft.asc.gpg /etc/apt/trusted.gpg.d/
wget -q https://packages.microsoft.com/config/debian/9/prod.list
sudo mv prod.list /etc/apt/sources.list.d/microsoft-prod.list
sudo chown root:root /etc/apt/trusted.gpg.d/microsoft.asc.gpg
sudo chown root:root /etc/apt/sources.list.d/microsoft-prod.list
So far so good, the problem comes when executing the command:
sudo apt-get update
Resulting in the following error:
Fetched 91.8 kB in 0s (103 kB/s)
Reading package lists... Done
E: The method driver /usr/lib/apt/methods/https could not be found.
N: Is the package apt-transport-https installed?
E: Failed to fetch https://packages.microsoft.com/debian/9/prod/dists/stretch/InRelease
E: Some index files failed to download. They have been ignored, or old ones used instead.
What do we do, cry?
First, let's calm down. Second, the error says the following:
We have to verify if the package
apt-transport-https
is installed, this is done using the following command:Which gives us as a result:
Yes indeed, that package was uninstalled, so now let's try again:
And we have the magic!
The emotion of seeing that everything keeps moving forward!
And after a while we have:
And just in case, we verify again with the command:
Now yes, with all the power 2.0!
Now everything is in order, may the force be with you :D