I am following the Knowledge Base article here:https://support.syncfusion.com/kb/article/9327/how-to-convert-html-to-pdf-in-azure-app-service-linux-using-net-core?isInternalRefresh=False
This shows the Ubuntu command to install the dependency packages. On Ubuntu 24 I am getting:
: Unable to locate package libgconf-2-4
In searching the web I see that libgconf-2-4 was removed from Ubuntu starting in Ubuntu 23.
Is libgconf-2-4 still needed on Ubuntu 24?
Hi Karen,
Thank you for reaching out to Syncfusion support.
We have checked your issue on our end. We have created Ubuntu24 VM to replicate the reported issue while installing the dependency packages to perform HTML to PDF conversion in Azure App Service Linux. Unfortunately, the reported issue was not reproduced and the conversion is working fine on our end. However, we have attached the sample and published URL below for your reference.
Sample: HTML-to-PDF-Ubuntu24-504279785
Published URL: https://html-to-pdf-ubuntu2420240930122817.azurewebsites.net/
Note: The published URL will be expired after 48 hours.
Please try the above sample and let us know the result. If you are still facing any issue, we kindly request you to share the modified sample, complete code snippet, package name and version, dotnet version and azure app service hosting plan with us to replicate the same issue on our end. This information will be more helpful for us to analyze and provide you with a prompt solution.
Regards,
Arumugam M
I am installing the the required Ubuntu dependency packages like this:
root@vm2:/home/david# apt-get update && apt-get install -yq --no-install-recommends libasound2 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 libnss3 libgbm1
and when I run the above command I get this:
Hit:1 http://security.ubuntu.com/ubuntu noble-security InRelease
Hit:2 http://us.archive.ubuntu.com/ubuntu noble InRelease
Hit:3 http://us.archive.ubuntu.com/ubuntu noble-updates InRelease
Hit:4 http://us.archive.ubuntu.com/ubuntu noble-backports InRelease
Reading package lists... Done
Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package libgconf-2-4
Hi Karen,
We have checked the reported issue on our end. Upon further analysis, the reported issue was not reproduced on our end and the conversion is working fine when deploying the application in Azure app service Linux. The HTML to PDF conversion is working even without the package libgconf-2-4. We kindly request you to remove this package alone while installing the dependencies to overcome the reported issue. Please refer the sample provided in the last shared response.
Please try the above solution and let us know the result. Kindly get back to us if you need any further assistance.
Regards,
Arumugam M