The error message you're encountering suggests that the version of `libstdc++.so.6` required by `./dotnet` is not available on your system. Specifically, it's looking for the `glibcxx_3.4.21` version. Here’s how you can resolve this issue: 1. Update Your System First, ensure that your system is up-to-date. This might include updating packages and libraries. ```bash sudo apt update sudo apt upgrade ``` 2. Install the Required Libraries If the above steps don't help, you may need to install the specific version of `libstdc++`. You can do this by installing the `libstdc++6` package. ```bash sudo apt install libstdc++6 ``` 3. Verify the Installed Version After installation, verify the installed version of `libstdc++`. ```bash ldd ./dotnet | grep libstdc++ ``` This will show you which version of `libstdc++` is being used by `./dotnet`. 4. Install Development Libraries Sometimes, you might need the development libraries as well. ```bash sudo apt install libstdc++-7-dev ``` Replace `7` with the appropriate version number if necessary. 5. Symbolic Linking If the library version is still not compatible, you might need to create a symbolic link to point to the correct library version. Find the path of the correct library version: ```bash locate libstdc++.so.6 ``` Then create a symbolic link: ```bash sudo ln -s /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.25 /usr/lib/x86_64-linux-gnu/libstdc++.so.6 ``` Replace `/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.25` with the actual path of the correct version. 6. Reinstall .NET SDK As a last resort, you can try reinstalling the .NET SDK. Uninstall the current .NET SDK: ```bash sudo rm -rf /usr/share/dotnet sudo rm /usr/bin/dotnet ``` Download and install the latest .NET SDK: ```bash wget https://download.visualstudio.microsoft.com/download/pr/38979f5c-52b8-46a6-b65f-488772d59e3c/89550532b465661b595b355d3083007f/runtime-7.0.0.tar.gz tar -xzf runtime-7.0.0.tar.gz sudo mv dotnet /usr/share sudo ln -s /usr/share/dotnet/dotnet /usr/bin/dotnet ``` Replace the URL and tarball name with the latest release from the .NET website. By following these steps, you should be able to resolve the `glibcxx_3.4.21` not found error. [2024-08-30 10:24:47 | AI写代码神器 | 670点数解答]