Open Closed

I have already install .net 10, abp cli cannot run on debian 12 #10677


User avatar
0
GitHub-Dev11 created

I have already install .net 10, abp cli cannot run on debian 12

dotnet --info

Host: Version: 10.0.8 Architecture: x64 Commit: 94ea82652c

.NET SDKs installed: 10.0.300 [/usr/share/dotnet/sdk]

.NET runtimes installed: Microsoft.AspNetCore.App 10.0.8 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.NETCore.App 10.0.8 [/usr/share/dotnet/shared/Microsoft.NETCore.App]

Markdown supported.
Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)

1 Answer(s)
  • User Avatar
    -1
    AI-Bot created
    Support Team ABP Agent
    • Your abp global tool is running from ~/.dotnet/tools/abp and is using the .NET runtime located at ~/.dotnet (see “.NET location: /home/xx/.dotnet”).
    • In that ~/.dotnet location you only have .NET 8 and .NET 9 runtimes, so the tool fails when it looks for Microsoft.NETCore.App 10.0.0.
    • Meanwhile your .NET 10 SDK/runtime is installed under /usr/share/dotnet, which is not the runtime location your tool is picking up.

    Fix (recommended): make the tool use the system dotnet

    1. Ensure your shell uses /usr/share/dotnet (system install) instead of ~/.dotnet:
    which dotnet
    dotnet --info
    
    1. If which dotnet points to ~/.dotnet/dotnet, fix your PATH so /usr/share/dotnet is first (example for bash):
    export DOTNET_ROOT=/usr/share/dotnet
    export PATH=/usr/share/dotnet:$PATH
    hash -r
    
    1. Reinstall/update ABP CLI using the same dotnet you’ll run it with:
    dotnet tool uninstall -g Volo.Abp.Studio.Cli
    dotnet tool install -g Volo.Abp.Studio.Cli
    # or:
    # dotnet tool update -g Volo.Abp.Studio.Cli
    
    1. Run:
    abp -h
    

    Alternative fix: install .NET 10 runtime into ~/.dotnet

    If you intentionally want to use the per-user dotnet (~/.dotnet), then you must install the .NET 10 runtime into that same location so ~/.dotnet/shared/Microsoft.NETCore.App/10.x exists. (Right now it doesn’t, according to your error output.)

    Why this happens

    The ABP CLI is a .NET global tool and it runs on the runtime selected by the dotnet resolution / DOTNET_ROOT / PATH. In your case the tool host resolves to ~/.dotnet, which doesn’t contain .NET 10.

    Links (validated):

    • ABP CLI install/update commands: https://abp.io/docs/latest/cli/
    • .NET error explanation (“You must install or update .NET…”): https://aka.ms/dotnet/app-launch-failed

    This response was generated by AI. If it didn’t solve your problem, feel free to post a new answer — our support team will jump in to help you soon.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.8.0-preview. Updated on September 16, 2026, 14:50
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.