我对 Ubuntu 还很陌生,已经卡在这个问题上好几天了。我一直试图通过 dotnet 运行一个 dll,但每次启动时都会收到“遇到致命错误。在‘/root/duo/’中未找到执行应用程序所需的库‘libhostpolicy.so’。我做了一个
sudo updatedb && locate hostpolicy.so | xargs sha1sum
并得到
1c51298979874c5ff0e30798406760c77bea7adc /root/sdk/1.0.4/libhostpolicy.so
a930b639bf61b038869d69aea1e773648f77a7c4 /root/shared/Microsoft.NETCore.App/1.0.5/libhostpo licy.so
1c51298979874c5ff0e30798406760c77bea7adc /root/shared/Microsoft.NETCore.App/1.1.2/libhostpo licy.so
dd784807e436e626a7a223d8b8010c537f01b6a5 /usr/share/dotnet/sdk/1.0.4/libhostpolicy.so
93c2979d35dd12c6eb516e742af3ccc5c9504438 /usr/share/dotnet/shared/Microsoft.NETCore.App/1.0 .5/libhostpolicy.so
dd784807e436e626a7a223d8b8010c537f01b6a5 /usr/share/dotnet/shared/Microsoft.NETCore.App/1.1 .2/libhostpolicy.so
28998aec4bb7bf1b592ba34de4ffb280249c073f /usr/share/dotnet/shared/Microsoft.NETCore.App/2.0 .0/libhostpolicy.so
我如何才能使所述库可见?我之前曾尝试克服 dotnet 兼容性问题,是否存在任何冲突问题。谢谢