An article on github.io gave all the instructions I needed to get the components above working, and it's a great tutorial. However, I needed to tweak a few commands to get them working, so I'm creating this post here and perhaps will save someone else an afternoon's research if they can find this link as well.
tried:
wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.asc.gpg
got this error: "gpg: no valid OpenPGP data found."
so, after a bit of research, did this:
sudo apt-get install ca-certificates
then this worked:
wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.asc.gpg
these all worked fine:
sudo mv microsoft.asc.gpg /etc/apt/trusted.gpg.d/ wget -q https://packages.microsoft.com/config/ubuntu/18.04/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
these too:
sudo apt-get install apt-transport-https sudo apt-get update
tried:
sudo apt-get install aspnetcore-runtime-2.1
got this error: The following packages have unmet dependencies: aspnetcore-runtime-2.1 : Depends: dotnet-runtime-2.1 (>= 2.1.3) but it is not going to be installed E: Unable to correct problems, you have held broken packages.
walked up the dependency tree failures to find the root cause:
-
sudo apt-get install dotnet-runtime-2.1
The following packages have unmet dependencies: dotnet-runtime-2.1 : Depends: dotnet-runtime-deps-2.1 (>= 2.1.3) but it is not going to be installed E: Unable to correct problems, you have held broken packages. -
sudo apt-get install aspnetcore-runtime-2.1
The following packages have unmet dependencies: aspnetcore-runtime-2.1 : Depends: dotnet-runtime-2.1 (>= 2.1.3) but it is not going to be installed E: Unable to correct problems, you have held broken packages. -
sudo apt-get install dotnet-runtime-2.1
The following packages have unmet dependencies: dotnet-runtime-2.1 : Depends: dotnet-runtime-deps-2.1 (>= 2.1.3) but it is not going to be installed E: Unable to correct problems, you have held broken packages. -
sudo apt-get install dotnet-runtime-deps-2.1
The following packages have unmet dependencies: dotnet-runtime-deps-2.1 : Depends: libssl1.0.0 but it is not installable Depends: libicu60 but it is not installable E: Unable to correct problems, you have held broken packages.
BINGO! found the root missing dependencies. Here's the fix:
wget http://mirrors.kernel.org/ubuntu/pool/main/i/icu/libicu60_60.2-6ubuntu1_amd64.deb sudo dpkg -i libicu60_60.2-6ubuntu1_amd64.deb wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl1.0/libssl1.0.0_1.0.2n-1ubuntu5_amd64.deb sudo dpkg -i libssl1.0.0_1.0.2n-1ubuntu5_amd64.deb
and finally this worked:
sudo apt-get install aspnetcore-runtime-2.1
this worked too:
sudo apt-get install dotnet-sdk-2.1
testing everything worked fine...
then under "Install MySQL"...
tried:
sudo apt-get install mysql-server mysql-client libmysqlclient-dev -y
failed....
so I did:
sudo apt-get install mysql-server mysql-client default-libmysqlclient-dev -y
and that worked.
Here's the link to the original article: https://odan.github.io/2018/07/17/aspnet-core-2-ubuntu-setup.html
1 From Jan Steen -
I solved the root missing dependencies through a different way. Above solution did not work for me:
sudo add-apt-repository universe
sudo apt-get update