[Python] Install wkhtmltopdf on Debian

Discussão em 'Python' iniciado por Stack, Setembro 9, 2025.

  1. Stack

    Stack Membro Participativo

    I have a python service with wkhtmltopdf wrapper, so its needs wkhtmltopdf to be installed. According to https://pypi.org/project/wkhtmltopdf/, I try to do the following in python:3.13-slim-bullseye image:

    Install Xvfd:

    $ sudo apt-get install xvfb

    Install Fonts:

    $ sudo apt-get install xfonts-100dpi xfonts-75dpi xfonts-scalable xfonts-cyrillic

    Install wkhtmltopdf:

    $ sudo apt-get install wkhtmltopdf

    Install flashplugin:

    $ sudo apt-get install flashplugin-nonfree

    When installing fonts, I get an error:

    22.90 Reading package lists...
    23.33 Building dependency tree...
    23.44 Reading state information...
    23.47 Package xfonts-cyrillic is not available, but is referred to by another package.
    23.47 This may mean that the package is missing, has been obsoleted, or
    23.47 is only available from another source
    23.47
    23.54 E: Package 'xfonts-cyrillic' has no installation candidate


    As I understand, there was an issue in this package, so it has been deleted from Debian repos.

    The question, can it be replaced by anything else? Or maybe there are other way to solve the problem?

    UPD. I cannot both install wkhtml using GitHub and use snapshot repos, because I'm behind the firewall and using enterprise mirrors of Debian repos.

    Continue reading...

Compartilhe esta Página