dotnet EF无法加载/snap/dotnet-sdk/168/shared/microsoft.netcore.app/6.0.5/libcoreclr.so(使用Ubuntu 22.04 LTS)

发布于 2025-01-31 13:07:39 字数 73 浏览 2 评论 0原文

在Ubuntu 22.04 LTS中安装Dotnet EF成功后,我在终端运行dotnet ef时有

问题/a>

after install dotnet ef success in ubuntu 22.04 LTS, i have problem when running dotnet ef in terminal

enter image description here

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

沒落の蓅哖 2025-02-07 13:07:39

在Ubuntu中解决了问题dotnet EF 22.04 LTS

1。第一种方法

我正在卸载所有数据,其中包含以下文档.net

https://learn.microsoft.com/en-us/dotnet/core/core/core/install/remove-runtime-sdk-ver-sdk-versions?pivots= OS-Linux#卸载net

打开终端:

sudo apt-get删除dotnet-host

##调整到您的.NET版本

版本=“ 1.0.1 “

sudo rm -rf/usr/share/dotnet/$版本

sudo rm -rf/usr/share/dotnet/shared/shared/microsoft.netcore.app/

quper.app/qulsqure sudoversion sudo sudo rm -rf/usr/usr/share/dotnet/dotnet/sharde/sharde/shardy/shardy/shardy/shardy/shardy/shardy/shardy/shardy/shardy/ microsoft.aspnetcore.all/$版本

sudo rm -rf/usr/share/dotnet/shared/microsoft.aspnetcore.app/

sudo sudo sudo rm -rf/usr/share/dotnet/dotnet/host/host/host/fxr/$版本

quper 再次安装dotnet-sdk和运行时,随后列出文档:

https:/> https:/ /leawn.microsoft.com/en-us/dotnet/core/install/linux-ubuntu

2。第二种方法

我是目录项目中删除dotnet-sdk,带有命令:

sudo snap remove dotnet-sdk

再次运行命令:

dotnet ef

如果您感到困惑,请显示图像

< a href =“ https://i.sstatic.net/1dinb.png” rel =“ nofollow noreferrer”> https://i.sstatic.net/1dinb.png

Solved Problem dotnet ef in Ubuntu 22.04 LTS

1. First Way

i am uninstalling all data with following documentation .net

https://learn.microsoft.com/en-us/dotnet/core/install/remove-runtime-sdk-versions?pivots=os-linux#uninstall-net

open your terminal :

sudo apt-get remove dotnet-host

# adjust to your .net version

version="1.0.1"

sudo rm -rf /usr/share/dotnet/sdk/$version

sudo rm -rf /usr/share/dotnet/shared/Microsoft.NETCore.App/$version

sudo rm -rf /usr/share/dotnet/shared/Microsoft.AspNetCore.All/$version

sudo rm -rf /usr/share/dotnet/shared/Microsoft.AspNetCore.App/$version

sudo rm -rf /usr/share/dotnet/host/fxr/$version

after deleting all, install again dotnet-sdk and runtime with followed documentation :

https://learn.microsoft.com/en-us/dotnet/core/install/linux-ubuntu

2. Second Way

i am remove dotnet-sdk from directory project, with command :

sudo snap remove dotnet-sdk

running again command :

dotnet ef

if you are confused please show image

https://i.sstatic.net/1DiNB.png

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文