【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
相关推荐
Xzq210509几秒前
Linux 进程管理:从终端控制到守护进程
linux·运维·服务器
熊文豪1 分钟前
完整卸载 OpenClaw — 各平台卸载完全指南(Windows/macOS/Linux/npm/pnpm)
linux·windows·macos·openclaw
Cx330❀2 分钟前
Linux ELF格式与可执行程序加载全解析:从磁盘文件到运行进程
linux·运维·服务器·人工智能·科技
CheungChunChiu2 分钟前
USB‑C PD 充电系统完整解析(SC8886 + FUSB302)
linux·usb·type-c·充电
Simplicity_4 分钟前
centos docker 部署
linux·docker·centos
Luke Ewin4 分钟前
FunASR实时语音识别Websocket接口在Linux服务器中部署教程
linux·服务器·语音识别·funasr·实时语音转写·录音转写
ljh5746491195 分钟前
chown 命令的解释和常用用法和高级用法
linux·服务器·数据库
天赐学c语言6 分钟前
Linux - windows作为client访问linux服务端
linux·网络·c++
卤炖阑尾炎6 分钟前
Linux 系统安全及应用实战:从账号防护到端口扫描全解析
linux·运维·系统安全
kishu_iOS&AI7 分钟前
Linux的基本命令
linux·运维·服务器