Score:0

dotnet complaining that libhostpolicy.so doesn't exist, even though it does

et flag

When I try to run a program using dotnet I get this error:

> dotnet OmniSharp.exe
A fatal error was encountered. The library 'libhostpolicy.so' required to execute the application was not found in 'path/to/exe'.
Failed to run as a self-contained app.

I found the file libhostpolicy.so in /usr/lib/dotnet/shared/Microsoft.NETCore.App/7.0.9/libhostpolicy.so, so I have no idea why dotnet can't access it.

I read on here that doing this will solve it:

sudo chown -R yourusername:yourusername /path/to/exe
sudo setfacl -R -d -m u:yourusername:rwx,g:yourusername:rwx,o::r /path/to/exe

but I still get the same error.

waltinator avatar
it flag
You have already started on a Path To Disaster! (scary music).. You have changed your system without understanding what the changes do. Now that the "magic" didn't work, can you restore your system to the previous state? Can you "undo" the cgange?
waltinator avatar
it flag
"I read on stackoverflow ... ". You didn't even tell us which! Telling us which remote procedure (RP) you "followed" doesn't help us help you for N reasons: 1) It's remote. Will the link exist tomorrow? 2) Reading the RP doesn't tell us how accurately you "followed" it. Did you suffer typos or missed lines? We have. 3) Reading the RP omits the error messages **you** got on **your system**. These error messages (and the commands that caused them) are key elements in any diagnosis.
Abdulmalek Almkainzi avatar
et flag
@waltinator I have edited the question to include the link to the post. All I did was run the commands I wrote in my post
Abdulmalek Almkainzi avatar
et flag
@waltinator if you don't know just say you don't. The system works fine and I found a work around.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.