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.

相关推荐
凯丨几秒前
MCP Server 教程:从零构建一个自定义工具服务器(2026 最新)
运维·服务器
极客先躯2 分钟前
高级java每日一道面试题-2026年02月08日-实战篇[Docker]-如何实现容器的快照和恢复?
java·运维·docker·容器·备份·持久化·恢复
AI服务老曹6 分钟前
打破品牌壁垒:基于 Docker 的国标 GB28181 与 RTSP 异构视频流统一接入平台架构设计(可源码交付)
运维·docker·容器
wuminyu15 分钟前
Java锁膨胀机制之偏向锁到轻量级锁源码剖析
java·linux·c语言·jvm·c++
xhtdj15 分钟前
技术采用曲线回望二十年
运维·数据库·人工智能·clickhouse·动态规划
SuperArc199916 分钟前
Grafana相关数据可视化平台基础教程-序言
运维·信息可视化·数据分析·grafana
半部论语20 分钟前
openEuler 安装 LibreOffice 技术指南
linux
r-t-H20 分钟前
Docker进阶与容器编排实践-第二章
运维·docker·容器·dockerfile·docker compose·docker网络
凡人叶枫26 分钟前
Effective C++ 条款13:以对象管理资源(RAII)
java·linux·开发语言·c++·嵌入式开发
爱喝水的鱼丶30 分钟前
SAP-ABAP:SAP多表连接视图实战:内连接/外连接配置逻辑与性能优化技巧
运维·开发语言·学习·性能优化·sap·abap