你好,我正在尝试dotnet
在 Ubuntu 上运行命令,我正在使用以下命令
sudo apt-get install dotnet-dev-1.0.0-preview2.1-003177
但是当我运行命令时它会引发以下错误:
E: Unable to locate package dotnet-dev-1.0.0-preview1-002702a
E: Couldn't find any package by glob 'dotnet-dev-1.0.0-preview1-002702a'
E: Couldn't find any package by regex 'dotnet-dev-1.0.0-preview1-002702a'
有任何想法吗?
答案1
默认存储库中未找到 dotnet 包。您需要先添加它。
对于 Ubuntu 16.10:
sudo sh -c 'echo "deb [arch=amd64] https://apt-mo.trafficmanager.net/repos/dotnet-release/ yakkety main" > /etc/apt/sources.list.d/dotnetdev.list'
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 417A0893
sudo apt-get update
附注:dotnet 1.0.0 preview2 相当旧。当前版本是 1.0.4
sudo apt-get install dotnet-dev-1.0.4
祝你好运!