How to correctly install wkhtmltopdf on debian 64 bit?
<p>I am trying to install wkhtmltopdf, but when I do:</p>

<pre><code>sudo dpkg -i wkhtmltox-0.12.1_linux-trusty-amd64.deb
</code></pre>

<p>I get :</p>

<pre><code>Preparing to unpack wkhtmltox-0.12.1_linux-trusty-amd64.deb ...
Unpacking wkhtmltox (0.12.1) over (0.12.1) ...
dpkg: dependency problems prevent configuration of wkhtmltox:
  wkhtmltox depends on libjpeg-turbo8; however:
  Package libjpeg-turbo8 is not installed.

dpkg: error processing package wkhtmltox (--install):
 dependency problems - leaving unconfigured
Processing triggers for man-db (2.7.0.2-5) ...
Errors were encountered while processing:
 wkhtmltox
</code></pre>

<p>So I tried:</p>

<pre><code>apt-get update
apt-get install libjpeg-turbo8
</code></pre>

<p>Then I get</p>

<pre><code>Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package libjpeg-turbo8 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or is only available from another source

E: Package 'libjpeg-turbo8' has no installation candidate
</code></pre>

<p>I'm using a 64 bit debian.
I browsed the web to find a solution but infortunately didn't find any answers.
How can I get the libjpeg-turbo8?</p>

<p>EDIT:</p>

<p>So I tried <code>apt-get install wkhtmltopdf</code> despite the fact it wasn't recommended.</p>

<p>The probleme with <code>apt-get install wkhtmltopdf</code> is that the version isn't always the good one and we should use 0.12.1</p>

<p>But:</p>

<pre><code>root@dev01:/opt/odoo/modules_scndf# apt-cache policy wkhtmltopdf 
wkhtmltopdf:
  Installed: 0.12.1-2
  Candidate: 0.12.1-2
  Version table:
 *** 0.12.1-2 0
         500 http://ftp.debian.org/debian/ jessie/main amd64 Packages
         100 /var/lib/dpkg/status
</code></pre>

<p>Version seems to be the good one even with <code>apt-get install wkhtmltopdf</code> but when I launch my print on odoo I still get </p>

<pre><code>Unable to find Wkhtmltopdf on this system. The report will be shown in html.
</code></pre>

<p>Which means he didn't installed as it should have.</p>

<p>EDIT 2:</p>

<p>Now when I try to print the report, I get a popup:</p>

<pre><code>Wkhtmltopdf failed (Error code : -6). Message : The switch 
--header-html, is not support using unpatched qt, and will be 
ignored.The switch --footer-html, is not support using unpatched qt,
and will be ignored.QXcbConnection: Could not connect to display 
</code></pre>