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.

相关推荐
鸽芷咕14 小时前
DrissionPage 成 CANN 仓库爆款自动化工具:背后原因何在?
运维·python·自动化·cann
池央14 小时前
CANN 算子生态的深度演进:稀疏计算支持与 PyPTO 范式的抽象层级
运维·人工智能·信号处理
郝学胜-神的一滴15 小时前
深入解析C/S模型下的TCP通信流程:从握手到挥手的技术之旅
linux·服务器·c语言·网络·网络协议·tcp/ip
OJAC11115 小时前
当所有人都在说“运维稳了”,近屿智能看到了另一种可能
运维
释怀不想释怀15 小时前
Linux网络基础(ip,域名)
linux·网络·tcp/ip
初願致夕霞15 小时前
Linux_进程
linux·c++
人鱼传说15 小时前
docker desktop是一个好东西
运维·docker·容器
开开心心就好15 小时前
AI人声伴奏分离工具,离线提取伴奏K歌用
java·linux·开发语言·网络·人工智能·电脑·blender
lucky-billy15 小时前
Ubuntu 下一键部署 ROS2
linux·ubuntu·ros2
Thera77715 小时前
【Linux C++】彻底解决僵尸进程:waitpid(WNOHANG) 与 SA_NOCLDWAIT
linux·服务器·c++