ubuntu 24.04安装dotnet 10日志

查看ubuntu版本:

lsb_release -a

No LSB modules are available.

Distributor ID: Ubuntu

Description: Ubuntu 24.04.2 LTS

Release: 24.04

Codename: noble

添加适配noble Ubuntu 24.04)的.NET 10源

echo "deb [arch=amd64 signed-by=/usr/share/keyrings/microsoft-prod.gpg] https://packages.microsoft.com/ubuntu/24.04/prod****noble****main" | sudo tee /etc/apt/sources.list.d/microsoft-prod.list

#注意,上面的命令ubuntu/24.04需要与 Release版本一致,noble与具体的Codename一致

再次更新包索引,加载新添加的源

sudo apt update

安装.NET 10 SDK(包含完整的开发工具和运行时)

sudo apt install -y dotnet-sdk-10.0

dotnet -v

Welcome to .NET 10.0!


SDK Version: 10.0.100


Installed an ASP.NET Core HTTPS development certificate.

To trust the certificate, run 'dotnet dev-certs https --trust'

Learn about HTTPS: https://aka.ms/dotnet-https


Write your first app: https://aka.ms/dotnet-hello-world

Find out what's new: https://aka.ms/dotnet-whats-new

Explore documentation: https://aka.ms/dotnet-docs

Report issues and find source on GitHub: https://github.com/dotnet/core

Use 'dotnet --help' to see available commands or visit: https://aka.ms/dotnet-cli


Could not execute because the specified command or file was not found.

Possible reasons for this include:

* You misspelled a built-in dotnet command.

* You intended to execute a .NET program, but dotnet--v does not exist.

* You intended to run a global tool, but a dotnet-prefixed executable with this name could not be found on the PATH.

相关推荐
二进制person5 分钟前
JavaEE初阶 --网络初识
运维·服务器·网络
IMPYLH20 分钟前
Linux 的 cp 命令
linux·运维·服务器
@syh.30 分钟前
【linux】多线程
linux
贝锐31 分钟前
立航货运携手贝锐向日葵,大型物流园区如何进行远程运维升级
运维·远程
RisunJan33 分钟前
Linux命令-man(查看Linux中的指令帮助)
linux·运维·服务器
REDcker35 分钟前
CentOS 与主流 Linux 发行版:版本与时间表(年表)
linux·运维·centos
bai_lan_ya38 分钟前
使用linux的io文件操作综合实验_处理表格
linux·服务器·算法
wd5205211 小时前
常用环境部署(二十九)——Centos升级OpenSSH 10.2p1
linux·运维·centos·ssh
顶点多余1 小时前
Ext文件系统详解
linux·运维·服务器
圥忈&&丅佽&&扗虖1 小时前
linux 安装 Ollama
linux·服务器