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.

相关推荐
代码游侠8 分钟前
学习笔记——设备树基础
linux·运维·开发语言·单片机·算法
Gary Studio8 分钟前
rk芯片驱动编写
linux·学习
mango_mangojuice9 分钟前
Linux学习笔记(make/Makefile)1.23
java·linux·前端·笔记·学习
Harvey90319 分钟前
通过 Helm 部署 Nginx 应用的完整标准化步骤
linux·运维·nginx·k8s
珠海西格电力科技1 小时前
微电网能量平衡理论的实现条件在不同场景下有哪些差异?
运维·服务器·网络·人工智能·云计算·智慧城市
A星空1232 小时前
一、Linux嵌入式的I2C驱动开发
linux·c++·驱动开发·i2c
释怀不想释怀2 小时前
Linux环境变量
linux·运维·服务器
zzzsde2 小时前
【Linux】进程(4):进程优先级&&调度队列
linux·运维·服务器
凡人叶枫2 小时前
C++中智能指针详解(Linux实战版)| 彻底解决内存泄漏,新手也能吃透
java·linux·c语言·开发语言·c++·嵌入式开发
yuanmenghao2 小时前
Linux 性能实战 | 第 7 篇 CPU 核心负载与调度器概念
linux·网络·性能优化·unix