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.

相关推荐
minji...33 分钟前
Linux 线程同步与互斥(二) 线程同步,条件变量,pthread_cond_init/wait/signal/broadcast
linux·运维·开发语言·jvm·数据结构·c++
虚伪的空想家41 分钟前
k8s集群configmap和secrets备份脚本
linux·容器·kubernetes
the sun341 小时前
从 QEMU 直接启动到 U-Boot 引导:嵌入式 Linux 启动流程的本质差异
linux·运维·服务器
三思守心1 小时前
从 0 到 1 搭建自动化内容工厂:深度测评楼兰AI及其在全平台发帖中的表现
运维·服务器·自动化
草莓熊Lotso1 小时前
【Linux 线程进阶】进程 vs 线程资源划分 + 线程控制全详解
java·linux·运维·服务器·数据库·c++·mysql
ShineWinsu1 小时前
对于Linux:文件操作以及文件IO的解析
linux·c++·面试·笔试·io·shell·文件操作
ZKNOW甄知科技1 小时前
数智同行:甄知科技2026年Q1季度回顾
运维·服务器·人工智能·科技·程序人生·安全·自动化
-SGlow-1 小时前
Linux相关概念和易错知识点(52)(基于System V的信号量和消息队列)
linux·运维·服务器
jikemaoshiyanshi1 小时前
B2B企业GEO服务商哪家好?深度解析径硕科技(JINGdigital)及其JINGEO产品为何是首选
大数据·运维·人工智能·科技
江畔何人初1 小时前
TCP的三次握手与四次挥手
linux·服务器·网络·网络协议·tcp/ip