Linux Mintへのパッケージのインストールに関する問題

Linux Mintへのパッケージのインストールに関する問題

.NET Coreパッケージをインストールしようとしていますが、問題が発生して解決策がわかりません。

このページの手順に従いましたが、次のエラーが発生しました。https://dotnet.microsoft.com/download/linux-package-manager/ubuntu18-04/sdk-2.1.202

私は完全な指示に従いました、これは私の結果です。

$ wget -q https://packages.microsoft.com/config/ubuntu/18/04/packages-microsoft-prod.deb
$ sudo dpkg -i packages-microsoft-prod.deb
(Reading database ... 293869 files and directories currently installed.)
Preparing to unpack packages-misrosoft-prod.deb ...
Unpacking packages-microsoft-prod (1.0-ubuntu18.04.1) over (1.0-ubuntu18.04.1) ...
Setting up packages-microsoft-prod (1.0-ubuntu18.04.1) ...
$ sudo add-apt repository universe
$ sudo apt-get install apt-transport-https
Reading package lists... Done
Building dependency tree
Reading state information... Done
apt-transport-https is already the newest version (1.6.6).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
$ sudo apt-get update
Hit:1 http://mirror.ufscar.br/mariadb/repo/10.3/ubuntu bionic InRelease
Hit:2 https://repo.skype.com/deb stable InRelease
Hit:3 https://deb.nodesource.com/node_10.x bionic InRelease
Hit:4 https://dl.yarnpkg.com/debian stable InRelease
Hit:5 http://packages.microsoft.com/repos/vscode stable InRelease
Hit:6 https://dl.winehq.org/wine-builds/ubuntu bionic InRelease
Hit:7 https://dl.winehq.org/wine-builds/ubuntu artful InRelease
Hit:9 http://archive.ubuntu.com/ubuntu bionic InRelease
Hit:10 http://archive.canonical.com/ubuntu bionic InRelease
Ign:11 http://dl.google.com/linux/chrome/deb stable InRelease
Ign:12 http://packages.linuxmint.com tara InRelease
Hit:13 https://brave-browser-apt-release.s3.brave.com bionic InRelease
Hit:14 http://archive.ubuntu.com/ubuntu bionic-updates InRelease
Hit:15 http://repository.spotify.com stable InRelease
Hit:16 http://packages.linuxmint.com tara Release
Hit:17 http://dl.google.com/linux/chrome/deb stable Release
Hit:18 http://archive.ubuntu.com/ubuntu bionic-backports InRelease
Hit:21 http://security.ubuntu.com/ubuntu bionic-security Inrelease
Hit:8 https://packagecloud.io/slacktechnologies/slack/debian jessie InRelease
Reading package lists... Done
$ sudo apt-get install dotnet-sdk-2.1.202
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package dotnet-sdk-2.1.202
E: Couldn't find any package by glob 'dotnet-sdk-2.1.202'
E: Couldn't find any package by regex 'dotnet-sdk-2.1.202'
$

私は何が間違っていましたか?私のマシンに問題があるのでしょうか?

ベストアンサー1

パッケージ名ではない可能性があります。このコマンドを使用するパッケージを検索している場合はapt-cache searchお勧めします。

このような

sudo apt-cache search dotnet

その後、インストールしたリポジトリに基づいて、説明または名前に「dotnet」を含むすべてのパッケージを見つける必要があります。

おすすめ記事