Ошибка на Ununtu 22.04

Добрый день получаю ошибку на Ubuntu 22.04

Microsoft.AspNetCore.Server.Kestrel[13]
  Connection id "0HN0SO5TNVF9N", Request id "0HN0SO5TNVF9N:00000002": An unhandled exception was thrown by the application.
  System.TypeInitializationException: The type initializer for 'Gdip' threw an exception.
   ---> System.DllNotFoundException: Unable to load shared library 'libdl' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: liblibdl: cannot open shared object file: No such file or directory
     at Interop.Libdl.dlopen(String fileName, Int32 flag)
     at System.Drawing.SafeNativeMethods.Gdip.LoadNativeLibrary()
     at System.Drawing.SafeNativeMethods.Gdip..cctor()

Данная ошибка возникает только на ubuntu 22.04. Связана она с библиотекой closedxml и картинками в шаблоне excel.

Я попробовал уже

Установить эту библиотеку

sudo apt-get update && apt-get install -y libgdiplus

включил поддержку Unix

<ItemGroup>
        <RuntimeHostConfigurationOption Include="System.Drawing.EnableUnixSupport" Value="true" />
</ItemGroup>

Так же попробовал установить LibreOffice, но ничего не помогает. Как это исправить?


Ответы (0 шт):