【dotnet】Ubuntu 24.04安装dotnet 8.0报错

我的环境是Ubuntu 24.04,64位,使用azure的虚拟机。

报错文字如下:

bash 复制代码
kidfu@azurefu:~$ sudo apt install dotnet-sdk-8.0
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 dotnet-runtime-deps-8.0 : Depends: libicu but it is not installable or
                                    libicu72 but it is not installable or
                                    libicu71 but it is not installable or
                                    libicu70 but it is not installable or
                                    libicu69 but it is not installable or
                                    libicu68 but it is not installable or
                                    libicu67 but it is not installable or
                                    libicu66 but it is not installable or
                                    libicu65 but it is not installable or
                                    libicu63 but it is not installable or
                                    libicu60 but it is not installable or
                                    libicu57 but it is not installable or
                                    libicu55 but it is not installable or
                                    libicu52 but it is not installable
E: Unable to correct problems, you have held broken packages.

在github上找到了修复方式,并且我自己也成功了。

运行如下代码:

bash 复制代码
sudo rm /etc/apt/sources.list.d/microsoft-prod.list
相关推荐
因缘而起115 分钟前
【Shell】模拟爬虫下载天龙八部小说
linux·服务器·数据库
二川bro28 分钟前
C盘清理——快速处理
运维·开发语言
JenKinJia31 分钟前
linux下编译Websocketpp,适用x86和armv8
linux·运维·服务器
程序员JerrySUN1 小时前
深入解析嵌入式Linux系统架构:从Bootloader到用户空间
linux·运维·驱动开发·嵌入式硬件·系统架构
czhc11400756631 小时前
LINUX 5 cat du head tail wc 计算机拓扑结构 计算机网络 服务器 计算机硬件
linux·服务器·计算机网络
AR71 小时前
Linux与Windows跨平台文件共享实现
linux
叫我龙翔1 小时前
【项目日记】高并发服务器项目总结
android·运维·服务器
暮云星影1 小时前
附录:LInux编辑器学习笔记
linux·学习·编辑器
什么半岛铁盒1 小时前
深入解析Linux软硬链接:原理、区别与应用实践
linux
去看日出2 小时前
SolidWorks2025三维计算机辅助设计(3D CAD)软件超详细图文安装教程(2025最新版保姆级教程)
运维·服务器·solidworks三维