IRONSOFTWAREHOME

IronPDF Ubuntu 24.04 Dependency Issue on .NET 9 and .NET 10

Curtis Chau
Curtis Chau
Updated: June 10, 2026

On Ubuntu 24.04 with .NET 9 or .NET 10, IronPDF fails to install its required system dependencies at startup. This affects Azure Linux images and non-Docker Linux environments where the application does not run with root privileges.

E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied)
E: Unable to lock directory /var/lib/apt/lists/
Text

Ubuntu 24.04 renamed the audio library from libasound2 to libasound2t64. IronPDF's automatic dependency installer targets the original libasound2 package name and cannot acquire the APT lock when running as a non-root user, producing the permission error shown above.

Solution

Option 1: Enable automatic dependency configuration (Docker and Azure Linux)

Set LinuxAndDockerDependenciesAutoConfig to true before the first render call:

IronPdf.Installation.LinuxAndDockerDependenciesAutoConfig = true;

To capture diagnostic output during startup, enable file logging:

IronSoftware.Logger.LoggingMode = IronSoftware.Logger.LoggingModes.File;
IronSoftware.Logger.LogFilePath = "ironpdf.log";

Option 2: First-launch with elevated privileges (non-Docker Linux)

For non-Docker Linux environments, run the application once with elevated privileges so IronPDF can install the required packages:

sudo -E dotnet run
SHELL

If dotnet is not found under sudo, use the full path:

sudo -E ~/.dotnet/dotnet run
SHELL

After the first launch installs dependencies, subsequent runs do not require elevated privileges. For the full list of packages required on Ubuntu 24.04, see the Linux deployment guide.

Important: This issue was resolved in IronPDF 2026.3.x. Upgrading to that version or later means the libasound2t64 library rename is detected automatically without requiring manual configuration.
Curtis Chau
Technical Writer

Curtis Chau holds a Bachelor’s degree in Computer Science (Carleton University) and specializes in front-end development with expertise in Node.js, TypeScript, JavaScript, and React. Passionate about crafting intuitive and aesthetically pleasing user interfaces, Curtis enjoys working with modern frameworks and creating well-structured, visually appealing manuals.

...
Read More

Ready to Get Started?

Nuget Downloads 20,878,335Version:2026.9just released

Get your free 30-day Trial Key instantly.
No credit card or account creation required
C# NuGet Library for PDF
Install with NuGet

Version: 2026.9

PM > Install-Package IronPdf
nuget.org/packages/IronPdf/
  1. In Solution Explorer, right-click References, Manage NuGet Packages
  2. Select Browse and search "IronPdf"
  3. Select the package and install
C# PDF DLL
Download DLL

Version: 2026.9

or download Windows Installer here.

  1. Download and unzip IronPDF to a location such as ~/Libs within your Solution directory
  2. In Visual Studio Solution Explorer, right click References. Select Browse, "IronPdf.dll"

Licenses from $999

Key in blue circle

Get your free 30-day Trial Key instantly.

Your trial license will be sent to your email address

No limitations. 100% unlocked. No credit card.

bullet_checkedNo credit card or account creation requiredNo limitations. 100% unlocked. No credit card.
  • Logo Aetna
  • Logo NASA
  • Logo GE
  • Logo Porsche
  • Logo USDA
  • Logo Qatar
Join Millions of Engineers who’ve tried IronPDF
Book your free Live Demo
Booking Badge

Trusted by Millions of Engineers Worldwide

Iron Software's customer logos
Get Your No-Obligation Consult
Complete the form below or email sales@ironsoftware.com
Your details will always be kept confidential.
Trusted by Millions of Engineers Worldwide
Iron Software's customer logos
Get your free 30-day Trial Key instantly.
No credit card or account creation required