How to install wkhtmltopdf 0.12.1 on Ubuntu server?












37















I am trying to install current stable version 0.12.1, but it only installs 0.9.9.
Any chance to install latest version with apt-get install? It seems that 0.9.9 is very old :(










share|improve this question

























  • See also: How can I install the latest wkhtmltopdf on Ubuntu 16.04?

    – Martin Thoma
    Sep 25 '17 at 7:56
















37















I am trying to install current stable version 0.12.1, but it only installs 0.9.9.
Any chance to install latest version with apt-get install? It seems that 0.9.9 is very old :(










share|improve this question

























  • See also: How can I install the latest wkhtmltopdf on Ubuntu 16.04?

    – Martin Thoma
    Sep 25 '17 at 7:56














37












37








37


15






I am trying to install current stable version 0.12.1, but it only installs 0.9.9.
Any chance to install latest version with apt-get install? It seems that 0.9.9 is very old :(










share|improve this question
















I am trying to install current stable version 0.12.1, but it only installs 0.9.9.
Any chance to install latest version with apt-get install? It seems that 0.9.9 is very old :(







apt software-installation wkhtmltopdf






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Sep 25 '17 at 8:00









Martin Thoma

6,906165275




6,906165275










asked Dec 4 '14 at 17:35









Stephan AhlfStephan Ahlf

287136




287136













  • See also: How can I install the latest wkhtmltopdf on Ubuntu 16.04?

    – Martin Thoma
    Sep 25 '17 at 7:56



















  • See also: How can I install the latest wkhtmltopdf on Ubuntu 16.04?

    – Martin Thoma
    Sep 25 '17 at 7:56

















See also: How can I install the latest wkhtmltopdf on Ubuntu 16.04?

– Martin Thoma
Sep 25 '17 at 7:56





See also: How can I install the latest wkhtmltopdf on Ubuntu 16.04?

– Martin Thoma
Sep 25 '17 at 7:56










5 Answers
5






active

oldest

votes


















48














In Ubuntu 12.04, open the terminal and type:



sudo add-apt-repository ppa:pov/wkhtmltopdf
sudo apt-get update
sudo apt-get install wkhtmltopdf


In Ubuntu 14.04, open the terminal and type:



sudo add-apt-repository ppa:ecometrica/servers
sudo apt-get update
sudo apt-get install wkhtmltopdf


and one step after this is to reboot the server or else you will get the error: wkhtmltopdf: cannot connect to X server .



In Ubuntu 16.04 and later wkhtmltopdf 0.12.2+ can be installed from the default Ubuntu repositories.






share|improve this answer


























  • Just tried the 12.04 instructions, wasn't able to successfully download from the PPA: Failed to fetch ppa.launchpad.net/pov/wkhtmltopdf/ubuntu/dists/trusty/main/… 404 Not Found

    – Neil
    Nov 4 '15 at 21:22











  • The links at ppa:pov/wkhtmltopdf are live. I was able to download the .deb file of wkhtmltopdf for Ubuntu 12.04 from it manually from: launchpad.net/~pov/+archive/ubuntu/wkhtmltopdf/+sourcepub/…

    – karel
    Nov 4 '15 at 22:11













  • (Using v0.12.0-2 from ppa:ecometrica/servers on Ubuntu Server 14.04) I still get "Cannot connect to X server" unless I use xvfb as described in askubuntu.com/a/605644/7146

    – d3vid
    Dec 21 '15 at 13:20






  • 1





    is ecometrica/servers still maintained? I was not able to find an up to date ppa for 0.12.2 (Jan 15) anywhere on launchpad

    – Steve
    Dec 23 '15 at 3:04













  • @Steve The latest version of wkhtmltopdf, last updated on 7/10/2014, is wkhtmltopdf 0.12.0-2 at this ppa:pov/wkhtmltopdf webpage: launchpad.net/~ecometrica/+archive/ubuntu/…

    – karel
    Dec 23 '15 at 3:24





















33














Steps:





  1. At first install xvfb serwer:





    sudo apt-get install xvfb



  2. Get needed version of wkhtmltopdf from http://wkhtmltopdf.org/downloads.html.



    For Ubuntu 14.04 64-bit:



    wget http://download.gna.org/wkhtmltopdf/0.12/0.12.2.1/wkhtmltox-0.12.2.1_linux-trusty-amd64.deb



  3. Install wkhtmltopdf:



    sudo dpkg -i wkhtmltox-0.12.2.1_linux-trusty-amd64.deb


    Install dependency (if needed):



    sudo apt-get -f install



  4. Create symblic link in /usr/local/bin/:



    echo 'exec xvfb-run -a -s "-screen 0 640x480x16" wkhtmltopdf "$@"' | sudo tee /usr/local/bin/wkhtmltopdf.sh >/dev/null
    sudo chmod a+x /usr/local/bin/wkhtmltopdf.sh







share|improve this answer


























  • Thank you for this. I didn't realize the issue I was having was I needed xvfb to run wkhtmltopdf headless. Works like a charm.

    – David Richards
    Oct 15 '15 at 1:28











  • Please be informed that gna.org has been closed now. so you should download precompiled binaries from downloads.wkhtmltopdf.org . Please see github.com/wkhtmltopdf/wkhtmltopdf/issues/…

    – Bikal Basnet
    Jun 16 '17 at 4:42











  • It worked for me :)

    – Victor Alvarado
    Feb 14 at 14:31



















1














I used the following on Ubuntu 14.04.5 LTS



wget http://download.gna.org/wkhtmltopdf/0.12/0.12.2/wkhtmltox-0.12.2_linux-trusty-amd64.deb
sudo apt-get install libxrender1 xfonts-utils xfonts-base xfonts-75dpi libfontenc1 x11-common xfonts-encodings libxfont1 fontconfig
sudo dpkg -i wkhtmltox-0.12.2_linux-trusty-amd64.deb
sudo reboot now


Note: this is version 0.12.2! So you don't have to deal with installing xvfb since you're probably not running X as it's a server.



If it fails at sudo dpkg -i wkhtmltox-0.12.2_linux-trusty-amd64.deb then proceed with sudo apt get install -f to install with dependencies.






share|improve this answer


























  • This is very similar to Pavels' answer except that you suggest to install the dependency packages manually which prevents their later auto-removal once they cease to be in use. -1

    – David Foerster
    Mar 1 '18 at 11:49











  • @DavidFoerster it is similar, but the newer version number doesn't require xvfb which is the main difference. I don't think the downvote was necessary.

    – Justin Fortier
    Mar 9 '18 at 5:42





















0














To install wkhtmltopdf 0.12.5 on ubuntu 16.04, try this,





  1. Wkhtmltopdf version 0.12.5 is recommended for odoo 12.



    wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox_0.12.5-1.trusty_amd64.deb




  2. Unpack and install the package.



    sudo dpkg -i wkhtmltox_0.12.5-1.trusty_amd64.deb




  3. This will install all dependencies.



    sudo apt -f install



  4. Enjoy!







share|improve this answer








New contributor




Ernest Ofosu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




























    -1














    After trying the below command, It worked for me



    cd ~
    yum install -y xorg-x11-fonts-75dpi xorg-x11-fonts-Type1 openssl git-core fontconfig
    wget https://downloads.wkhtmltopdf.org/0.12/0.12.4/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
    tar xvf wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
    mv wkhtmltox/bin/wkhtmlto* /usr/bin





    share|improve this answer

























      Your Answer








      StackExchange.ready(function() {
      var channelOptions = {
      tags: "".split(" "),
      id: "89"
      };
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function() {
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled) {
      StackExchange.using("snippets", function() {
      createEditor();
      });
      }
      else {
      createEditor();
      }
      });

      function createEditor() {
      StackExchange.prepareEditor({
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: true,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      bindNavPrevention: true,
      postfix: "",
      imageUploader: {
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      },
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      });


      }
      });














      draft saved

      draft discarded


















      StackExchange.ready(
      function () {
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f556667%2fhow-to-install-wkhtmltopdf-0-12-1-on-ubuntu-server%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      5 Answers
      5






      active

      oldest

      votes








      5 Answers
      5






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      48














      In Ubuntu 12.04, open the terminal and type:



      sudo add-apt-repository ppa:pov/wkhtmltopdf
      sudo apt-get update
      sudo apt-get install wkhtmltopdf


      In Ubuntu 14.04, open the terminal and type:



      sudo add-apt-repository ppa:ecometrica/servers
      sudo apt-get update
      sudo apt-get install wkhtmltopdf


      and one step after this is to reboot the server or else you will get the error: wkhtmltopdf: cannot connect to X server .



      In Ubuntu 16.04 and later wkhtmltopdf 0.12.2+ can be installed from the default Ubuntu repositories.






      share|improve this answer


























      • Just tried the 12.04 instructions, wasn't able to successfully download from the PPA: Failed to fetch ppa.launchpad.net/pov/wkhtmltopdf/ubuntu/dists/trusty/main/… 404 Not Found

        – Neil
        Nov 4 '15 at 21:22











      • The links at ppa:pov/wkhtmltopdf are live. I was able to download the .deb file of wkhtmltopdf for Ubuntu 12.04 from it manually from: launchpad.net/~pov/+archive/ubuntu/wkhtmltopdf/+sourcepub/…

        – karel
        Nov 4 '15 at 22:11













      • (Using v0.12.0-2 from ppa:ecometrica/servers on Ubuntu Server 14.04) I still get "Cannot connect to X server" unless I use xvfb as described in askubuntu.com/a/605644/7146

        – d3vid
        Dec 21 '15 at 13:20






      • 1





        is ecometrica/servers still maintained? I was not able to find an up to date ppa for 0.12.2 (Jan 15) anywhere on launchpad

        – Steve
        Dec 23 '15 at 3:04













      • @Steve The latest version of wkhtmltopdf, last updated on 7/10/2014, is wkhtmltopdf 0.12.0-2 at this ppa:pov/wkhtmltopdf webpage: launchpad.net/~ecometrica/+archive/ubuntu/…

        – karel
        Dec 23 '15 at 3:24


















      48














      In Ubuntu 12.04, open the terminal and type:



      sudo add-apt-repository ppa:pov/wkhtmltopdf
      sudo apt-get update
      sudo apt-get install wkhtmltopdf


      In Ubuntu 14.04, open the terminal and type:



      sudo add-apt-repository ppa:ecometrica/servers
      sudo apt-get update
      sudo apt-get install wkhtmltopdf


      and one step after this is to reboot the server or else you will get the error: wkhtmltopdf: cannot connect to X server .



      In Ubuntu 16.04 and later wkhtmltopdf 0.12.2+ can be installed from the default Ubuntu repositories.






      share|improve this answer


























      • Just tried the 12.04 instructions, wasn't able to successfully download from the PPA: Failed to fetch ppa.launchpad.net/pov/wkhtmltopdf/ubuntu/dists/trusty/main/… 404 Not Found

        – Neil
        Nov 4 '15 at 21:22











      • The links at ppa:pov/wkhtmltopdf are live. I was able to download the .deb file of wkhtmltopdf for Ubuntu 12.04 from it manually from: launchpad.net/~pov/+archive/ubuntu/wkhtmltopdf/+sourcepub/…

        – karel
        Nov 4 '15 at 22:11













      • (Using v0.12.0-2 from ppa:ecometrica/servers on Ubuntu Server 14.04) I still get "Cannot connect to X server" unless I use xvfb as described in askubuntu.com/a/605644/7146

        – d3vid
        Dec 21 '15 at 13:20






      • 1





        is ecometrica/servers still maintained? I was not able to find an up to date ppa for 0.12.2 (Jan 15) anywhere on launchpad

        – Steve
        Dec 23 '15 at 3:04













      • @Steve The latest version of wkhtmltopdf, last updated on 7/10/2014, is wkhtmltopdf 0.12.0-2 at this ppa:pov/wkhtmltopdf webpage: launchpad.net/~ecometrica/+archive/ubuntu/…

        – karel
        Dec 23 '15 at 3:24
















      48












      48








      48







      In Ubuntu 12.04, open the terminal and type:



      sudo add-apt-repository ppa:pov/wkhtmltopdf
      sudo apt-get update
      sudo apt-get install wkhtmltopdf


      In Ubuntu 14.04, open the terminal and type:



      sudo add-apt-repository ppa:ecometrica/servers
      sudo apt-get update
      sudo apt-get install wkhtmltopdf


      and one step after this is to reboot the server or else you will get the error: wkhtmltopdf: cannot connect to X server .



      In Ubuntu 16.04 and later wkhtmltopdf 0.12.2+ can be installed from the default Ubuntu repositories.






      share|improve this answer















      In Ubuntu 12.04, open the terminal and type:



      sudo add-apt-repository ppa:pov/wkhtmltopdf
      sudo apt-get update
      sudo apt-get install wkhtmltopdf


      In Ubuntu 14.04, open the terminal and type:



      sudo add-apt-repository ppa:ecometrica/servers
      sudo apt-get update
      sudo apt-get install wkhtmltopdf


      and one step after this is to reboot the server or else you will get the error: wkhtmltopdf: cannot connect to X server .



      In Ubuntu 16.04 and later wkhtmltopdf 0.12.2+ can be installed from the default Ubuntu repositories.







      share|improve this answer














      share|improve this answer



      share|improve this answer








      edited Oct 2 '16 at 5:47

























      answered Dec 4 '14 at 17:45









      karelkarel

      60.5k13131155




      60.5k13131155













      • Just tried the 12.04 instructions, wasn't able to successfully download from the PPA: Failed to fetch ppa.launchpad.net/pov/wkhtmltopdf/ubuntu/dists/trusty/main/… 404 Not Found

        – Neil
        Nov 4 '15 at 21:22











      • The links at ppa:pov/wkhtmltopdf are live. I was able to download the .deb file of wkhtmltopdf for Ubuntu 12.04 from it manually from: launchpad.net/~pov/+archive/ubuntu/wkhtmltopdf/+sourcepub/…

        – karel
        Nov 4 '15 at 22:11













      • (Using v0.12.0-2 from ppa:ecometrica/servers on Ubuntu Server 14.04) I still get "Cannot connect to X server" unless I use xvfb as described in askubuntu.com/a/605644/7146

        – d3vid
        Dec 21 '15 at 13:20






      • 1





        is ecometrica/servers still maintained? I was not able to find an up to date ppa for 0.12.2 (Jan 15) anywhere on launchpad

        – Steve
        Dec 23 '15 at 3:04













      • @Steve The latest version of wkhtmltopdf, last updated on 7/10/2014, is wkhtmltopdf 0.12.0-2 at this ppa:pov/wkhtmltopdf webpage: launchpad.net/~ecometrica/+archive/ubuntu/…

        – karel
        Dec 23 '15 at 3:24





















      • Just tried the 12.04 instructions, wasn't able to successfully download from the PPA: Failed to fetch ppa.launchpad.net/pov/wkhtmltopdf/ubuntu/dists/trusty/main/… 404 Not Found

        – Neil
        Nov 4 '15 at 21:22











      • The links at ppa:pov/wkhtmltopdf are live. I was able to download the .deb file of wkhtmltopdf for Ubuntu 12.04 from it manually from: launchpad.net/~pov/+archive/ubuntu/wkhtmltopdf/+sourcepub/…

        – karel
        Nov 4 '15 at 22:11













      • (Using v0.12.0-2 from ppa:ecometrica/servers on Ubuntu Server 14.04) I still get "Cannot connect to X server" unless I use xvfb as described in askubuntu.com/a/605644/7146

        – d3vid
        Dec 21 '15 at 13:20






      • 1





        is ecometrica/servers still maintained? I was not able to find an up to date ppa for 0.12.2 (Jan 15) anywhere on launchpad

        – Steve
        Dec 23 '15 at 3:04













      • @Steve The latest version of wkhtmltopdf, last updated on 7/10/2014, is wkhtmltopdf 0.12.0-2 at this ppa:pov/wkhtmltopdf webpage: launchpad.net/~ecometrica/+archive/ubuntu/…

        – karel
        Dec 23 '15 at 3:24



















      Just tried the 12.04 instructions, wasn't able to successfully download from the PPA: Failed to fetch ppa.launchpad.net/pov/wkhtmltopdf/ubuntu/dists/trusty/main/… 404 Not Found

      – Neil
      Nov 4 '15 at 21:22





      Just tried the 12.04 instructions, wasn't able to successfully download from the PPA: Failed to fetch ppa.launchpad.net/pov/wkhtmltopdf/ubuntu/dists/trusty/main/… 404 Not Found

      – Neil
      Nov 4 '15 at 21:22













      The links at ppa:pov/wkhtmltopdf are live. I was able to download the .deb file of wkhtmltopdf for Ubuntu 12.04 from it manually from: launchpad.net/~pov/+archive/ubuntu/wkhtmltopdf/+sourcepub/…

      – karel
      Nov 4 '15 at 22:11







      The links at ppa:pov/wkhtmltopdf are live. I was able to download the .deb file of wkhtmltopdf for Ubuntu 12.04 from it manually from: launchpad.net/~pov/+archive/ubuntu/wkhtmltopdf/+sourcepub/…

      – karel
      Nov 4 '15 at 22:11















      (Using v0.12.0-2 from ppa:ecometrica/servers on Ubuntu Server 14.04) I still get "Cannot connect to X server" unless I use xvfb as described in askubuntu.com/a/605644/7146

      – d3vid
      Dec 21 '15 at 13:20





      (Using v0.12.0-2 from ppa:ecometrica/servers on Ubuntu Server 14.04) I still get "Cannot connect to X server" unless I use xvfb as described in askubuntu.com/a/605644/7146

      – d3vid
      Dec 21 '15 at 13:20




      1




      1





      is ecometrica/servers still maintained? I was not able to find an up to date ppa for 0.12.2 (Jan 15) anywhere on launchpad

      – Steve
      Dec 23 '15 at 3:04







      is ecometrica/servers still maintained? I was not able to find an up to date ppa for 0.12.2 (Jan 15) anywhere on launchpad

      – Steve
      Dec 23 '15 at 3:04















      @Steve The latest version of wkhtmltopdf, last updated on 7/10/2014, is wkhtmltopdf 0.12.0-2 at this ppa:pov/wkhtmltopdf webpage: launchpad.net/~ecometrica/+archive/ubuntu/…

      – karel
      Dec 23 '15 at 3:24







      @Steve The latest version of wkhtmltopdf, last updated on 7/10/2014, is wkhtmltopdf 0.12.0-2 at this ppa:pov/wkhtmltopdf webpage: launchpad.net/~ecometrica/+archive/ubuntu/…

      – karel
      Dec 23 '15 at 3:24















      33














      Steps:





      1. At first install xvfb serwer:





        sudo apt-get install xvfb



      2. Get needed version of wkhtmltopdf from http://wkhtmltopdf.org/downloads.html.



        For Ubuntu 14.04 64-bit:



        wget http://download.gna.org/wkhtmltopdf/0.12/0.12.2.1/wkhtmltox-0.12.2.1_linux-trusty-amd64.deb



      3. Install wkhtmltopdf:



        sudo dpkg -i wkhtmltox-0.12.2.1_linux-trusty-amd64.deb


        Install dependency (if needed):



        sudo apt-get -f install



      4. Create symblic link in /usr/local/bin/:



        echo 'exec xvfb-run -a -s "-screen 0 640x480x16" wkhtmltopdf "$@"' | sudo tee /usr/local/bin/wkhtmltopdf.sh >/dev/null
        sudo chmod a+x /usr/local/bin/wkhtmltopdf.sh







      share|improve this answer


























      • Thank you for this. I didn't realize the issue I was having was I needed xvfb to run wkhtmltopdf headless. Works like a charm.

        – David Richards
        Oct 15 '15 at 1:28











      • Please be informed that gna.org has been closed now. so you should download precompiled binaries from downloads.wkhtmltopdf.org . Please see github.com/wkhtmltopdf/wkhtmltopdf/issues/…

        – Bikal Basnet
        Jun 16 '17 at 4:42











      • It worked for me :)

        – Victor Alvarado
        Feb 14 at 14:31
















      33














      Steps:





      1. At first install xvfb serwer:





        sudo apt-get install xvfb



      2. Get needed version of wkhtmltopdf from http://wkhtmltopdf.org/downloads.html.



        For Ubuntu 14.04 64-bit:



        wget http://download.gna.org/wkhtmltopdf/0.12/0.12.2.1/wkhtmltox-0.12.2.1_linux-trusty-amd64.deb



      3. Install wkhtmltopdf:



        sudo dpkg -i wkhtmltox-0.12.2.1_linux-trusty-amd64.deb


        Install dependency (if needed):



        sudo apt-get -f install



      4. Create symblic link in /usr/local/bin/:



        echo 'exec xvfb-run -a -s "-screen 0 640x480x16" wkhtmltopdf "$@"' | sudo tee /usr/local/bin/wkhtmltopdf.sh >/dev/null
        sudo chmod a+x /usr/local/bin/wkhtmltopdf.sh







      share|improve this answer


























      • Thank you for this. I didn't realize the issue I was having was I needed xvfb to run wkhtmltopdf headless. Works like a charm.

        – David Richards
        Oct 15 '15 at 1:28











      • Please be informed that gna.org has been closed now. so you should download precompiled binaries from downloads.wkhtmltopdf.org . Please see github.com/wkhtmltopdf/wkhtmltopdf/issues/…

        – Bikal Basnet
        Jun 16 '17 at 4:42











      • It worked for me :)

        – Victor Alvarado
        Feb 14 at 14:31














      33












      33








      33







      Steps:





      1. At first install xvfb serwer:





        sudo apt-get install xvfb



      2. Get needed version of wkhtmltopdf from http://wkhtmltopdf.org/downloads.html.



        For Ubuntu 14.04 64-bit:



        wget http://download.gna.org/wkhtmltopdf/0.12/0.12.2.1/wkhtmltox-0.12.2.1_linux-trusty-amd64.deb



      3. Install wkhtmltopdf:



        sudo dpkg -i wkhtmltox-0.12.2.1_linux-trusty-amd64.deb


        Install dependency (if needed):



        sudo apt-get -f install



      4. Create symblic link in /usr/local/bin/:



        echo 'exec xvfb-run -a -s "-screen 0 640x480x16" wkhtmltopdf "$@"' | sudo tee /usr/local/bin/wkhtmltopdf.sh >/dev/null
        sudo chmod a+x /usr/local/bin/wkhtmltopdf.sh







      share|improve this answer















      Steps:





      1. At first install xvfb serwer:





        sudo apt-get install xvfb



      2. Get needed version of wkhtmltopdf from http://wkhtmltopdf.org/downloads.html.



        For Ubuntu 14.04 64-bit:



        wget http://download.gna.org/wkhtmltopdf/0.12/0.12.2.1/wkhtmltox-0.12.2.1_linux-trusty-amd64.deb



      3. Install wkhtmltopdf:



        sudo dpkg -i wkhtmltox-0.12.2.1_linux-trusty-amd64.deb


        Install dependency (if needed):



        sudo apt-get -f install



      4. Create symblic link in /usr/local/bin/:



        echo 'exec xvfb-run -a -s "-screen 0 640x480x16" wkhtmltopdf "$@"' | sudo tee /usr/local/bin/wkhtmltopdf.sh >/dev/null
        sudo chmod a+x /usr/local/bin/wkhtmltopdf.sh








      share|improve this answer














      share|improve this answer



      share|improve this answer








      edited Oct 14 '15 at 9:18









      David Foerster

      28.5k1367113




      28.5k1367113










      answered Apr 5 '15 at 15:37









      Pavel PichukovPavel Pichukov

      51155




      51155













      • Thank you for this. I didn't realize the issue I was having was I needed xvfb to run wkhtmltopdf headless. Works like a charm.

        – David Richards
        Oct 15 '15 at 1:28











      • Please be informed that gna.org has been closed now. so you should download precompiled binaries from downloads.wkhtmltopdf.org . Please see github.com/wkhtmltopdf/wkhtmltopdf/issues/…

        – Bikal Basnet
        Jun 16 '17 at 4:42











      • It worked for me :)

        – Victor Alvarado
        Feb 14 at 14:31



















      • Thank you for this. I didn't realize the issue I was having was I needed xvfb to run wkhtmltopdf headless. Works like a charm.

        – David Richards
        Oct 15 '15 at 1:28











      • Please be informed that gna.org has been closed now. so you should download precompiled binaries from downloads.wkhtmltopdf.org . Please see github.com/wkhtmltopdf/wkhtmltopdf/issues/…

        – Bikal Basnet
        Jun 16 '17 at 4:42











      • It worked for me :)

        – Victor Alvarado
        Feb 14 at 14:31

















      Thank you for this. I didn't realize the issue I was having was I needed xvfb to run wkhtmltopdf headless. Works like a charm.

      – David Richards
      Oct 15 '15 at 1:28





      Thank you for this. I didn't realize the issue I was having was I needed xvfb to run wkhtmltopdf headless. Works like a charm.

      – David Richards
      Oct 15 '15 at 1:28













      Please be informed that gna.org has been closed now. so you should download precompiled binaries from downloads.wkhtmltopdf.org . Please see github.com/wkhtmltopdf/wkhtmltopdf/issues/…

      – Bikal Basnet
      Jun 16 '17 at 4:42





      Please be informed that gna.org has been closed now. so you should download precompiled binaries from downloads.wkhtmltopdf.org . Please see github.com/wkhtmltopdf/wkhtmltopdf/issues/…

      – Bikal Basnet
      Jun 16 '17 at 4:42













      It worked for me :)

      – Victor Alvarado
      Feb 14 at 14:31





      It worked for me :)

      – Victor Alvarado
      Feb 14 at 14:31











      1














      I used the following on Ubuntu 14.04.5 LTS



      wget http://download.gna.org/wkhtmltopdf/0.12/0.12.2/wkhtmltox-0.12.2_linux-trusty-amd64.deb
      sudo apt-get install libxrender1 xfonts-utils xfonts-base xfonts-75dpi libfontenc1 x11-common xfonts-encodings libxfont1 fontconfig
      sudo dpkg -i wkhtmltox-0.12.2_linux-trusty-amd64.deb
      sudo reboot now


      Note: this is version 0.12.2! So you don't have to deal with installing xvfb since you're probably not running X as it's a server.



      If it fails at sudo dpkg -i wkhtmltox-0.12.2_linux-trusty-amd64.deb then proceed with sudo apt get install -f to install with dependencies.






      share|improve this answer


























      • This is very similar to Pavels' answer except that you suggest to install the dependency packages manually which prevents their later auto-removal once they cease to be in use. -1

        – David Foerster
        Mar 1 '18 at 11:49











      • @DavidFoerster it is similar, but the newer version number doesn't require xvfb which is the main difference. I don't think the downvote was necessary.

        – Justin Fortier
        Mar 9 '18 at 5:42


















      1














      I used the following on Ubuntu 14.04.5 LTS



      wget http://download.gna.org/wkhtmltopdf/0.12/0.12.2/wkhtmltox-0.12.2_linux-trusty-amd64.deb
      sudo apt-get install libxrender1 xfonts-utils xfonts-base xfonts-75dpi libfontenc1 x11-common xfonts-encodings libxfont1 fontconfig
      sudo dpkg -i wkhtmltox-0.12.2_linux-trusty-amd64.deb
      sudo reboot now


      Note: this is version 0.12.2! So you don't have to deal with installing xvfb since you're probably not running X as it's a server.



      If it fails at sudo dpkg -i wkhtmltox-0.12.2_linux-trusty-amd64.deb then proceed with sudo apt get install -f to install with dependencies.






      share|improve this answer


























      • This is very similar to Pavels' answer except that you suggest to install the dependency packages manually which prevents their later auto-removal once they cease to be in use. -1

        – David Foerster
        Mar 1 '18 at 11:49











      • @DavidFoerster it is similar, but the newer version number doesn't require xvfb which is the main difference. I don't think the downvote was necessary.

        – Justin Fortier
        Mar 9 '18 at 5:42
















      1












      1








      1







      I used the following on Ubuntu 14.04.5 LTS



      wget http://download.gna.org/wkhtmltopdf/0.12/0.12.2/wkhtmltox-0.12.2_linux-trusty-amd64.deb
      sudo apt-get install libxrender1 xfonts-utils xfonts-base xfonts-75dpi libfontenc1 x11-common xfonts-encodings libxfont1 fontconfig
      sudo dpkg -i wkhtmltox-0.12.2_linux-trusty-amd64.deb
      sudo reboot now


      Note: this is version 0.12.2! So you don't have to deal with installing xvfb since you're probably not running X as it's a server.



      If it fails at sudo dpkg -i wkhtmltox-0.12.2_linux-trusty-amd64.deb then proceed with sudo apt get install -f to install with dependencies.






      share|improve this answer















      I used the following on Ubuntu 14.04.5 LTS



      wget http://download.gna.org/wkhtmltopdf/0.12/0.12.2/wkhtmltox-0.12.2_linux-trusty-amd64.deb
      sudo apt-get install libxrender1 xfonts-utils xfonts-base xfonts-75dpi libfontenc1 x11-common xfonts-encodings libxfont1 fontconfig
      sudo dpkg -i wkhtmltox-0.12.2_linux-trusty-amd64.deb
      sudo reboot now


      Note: this is version 0.12.2! So you don't have to deal with installing xvfb since you're probably not running X as it's a server.



      If it fails at sudo dpkg -i wkhtmltox-0.12.2_linux-trusty-amd64.deb then proceed with sudo apt get install -f to install with dependencies.







      share|improve this answer














      share|improve this answer



      share|improve this answer








      edited Nov 11 '16 at 18:33

























      answered Nov 11 '16 at 17:50









      Justin FortierJustin Fortier

      1193




      1193













      • This is very similar to Pavels' answer except that you suggest to install the dependency packages manually which prevents their later auto-removal once they cease to be in use. -1

        – David Foerster
        Mar 1 '18 at 11:49











      • @DavidFoerster it is similar, but the newer version number doesn't require xvfb which is the main difference. I don't think the downvote was necessary.

        – Justin Fortier
        Mar 9 '18 at 5:42





















      • This is very similar to Pavels' answer except that you suggest to install the dependency packages manually which prevents their later auto-removal once they cease to be in use. -1

        – David Foerster
        Mar 1 '18 at 11:49











      • @DavidFoerster it is similar, but the newer version number doesn't require xvfb which is the main difference. I don't think the downvote was necessary.

        – Justin Fortier
        Mar 9 '18 at 5:42



















      This is very similar to Pavels' answer except that you suggest to install the dependency packages manually which prevents their later auto-removal once they cease to be in use. -1

      – David Foerster
      Mar 1 '18 at 11:49





      This is very similar to Pavels' answer except that you suggest to install the dependency packages manually which prevents their later auto-removal once they cease to be in use. -1

      – David Foerster
      Mar 1 '18 at 11:49













      @DavidFoerster it is similar, but the newer version number doesn't require xvfb which is the main difference. I don't think the downvote was necessary.

      – Justin Fortier
      Mar 9 '18 at 5:42







      @DavidFoerster it is similar, but the newer version number doesn't require xvfb which is the main difference. I don't think the downvote was necessary.

      – Justin Fortier
      Mar 9 '18 at 5:42













      0














      To install wkhtmltopdf 0.12.5 on ubuntu 16.04, try this,





      1. Wkhtmltopdf version 0.12.5 is recommended for odoo 12.



        wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox_0.12.5-1.trusty_amd64.deb




      2. Unpack and install the package.



        sudo dpkg -i wkhtmltox_0.12.5-1.trusty_amd64.deb




      3. This will install all dependencies.



        sudo apt -f install



      4. Enjoy!







      share|improve this answer








      New contributor




      Ernest Ofosu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.

























        0














        To install wkhtmltopdf 0.12.5 on ubuntu 16.04, try this,





        1. Wkhtmltopdf version 0.12.5 is recommended for odoo 12.



          wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox_0.12.5-1.trusty_amd64.deb




        2. Unpack and install the package.



          sudo dpkg -i wkhtmltox_0.12.5-1.trusty_amd64.deb




        3. This will install all dependencies.



          sudo apt -f install



        4. Enjoy!







        share|improve this answer








        New contributor




        Ernest Ofosu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.























          0












          0








          0







          To install wkhtmltopdf 0.12.5 on ubuntu 16.04, try this,





          1. Wkhtmltopdf version 0.12.5 is recommended for odoo 12.



            wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox_0.12.5-1.trusty_amd64.deb




          2. Unpack and install the package.



            sudo dpkg -i wkhtmltox_0.12.5-1.trusty_amd64.deb




          3. This will install all dependencies.



            sudo apt -f install



          4. Enjoy!







          share|improve this answer








          New contributor




          Ernest Ofosu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.










          To install wkhtmltopdf 0.12.5 on ubuntu 16.04, try this,





          1. Wkhtmltopdf version 0.12.5 is recommended for odoo 12.



            wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox_0.12.5-1.trusty_amd64.deb




          2. Unpack and install the package.



            sudo dpkg -i wkhtmltox_0.12.5-1.trusty_amd64.deb




          3. This will install all dependencies.



            sudo apt -f install



          4. Enjoy!








          share|improve this answer








          New contributor




          Ernest Ofosu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.









          share|improve this answer



          share|improve this answer






          New contributor




          Ernest Ofosu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.









          answered 2 hours ago









          Ernest OfosuErnest Ofosu

          1




          1




          New contributor




          Ernest Ofosu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.





          New contributor





          Ernest Ofosu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.






          Ernest Ofosu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.























              -1














              After trying the below command, It worked for me



              cd ~
              yum install -y xorg-x11-fonts-75dpi xorg-x11-fonts-Type1 openssl git-core fontconfig
              wget https://downloads.wkhtmltopdf.org/0.12/0.12.4/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
              tar xvf wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
              mv wkhtmltox/bin/wkhtmlto* /usr/bin





              share|improve this answer






























                -1














                After trying the below command, It worked for me



                cd ~
                yum install -y xorg-x11-fonts-75dpi xorg-x11-fonts-Type1 openssl git-core fontconfig
                wget https://downloads.wkhtmltopdf.org/0.12/0.12.4/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
                tar xvf wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
                mv wkhtmltox/bin/wkhtmlto* /usr/bin





                share|improve this answer




























                  -1












                  -1








                  -1







                  After trying the below command, It worked for me



                  cd ~
                  yum install -y xorg-x11-fonts-75dpi xorg-x11-fonts-Type1 openssl git-core fontconfig
                  wget https://downloads.wkhtmltopdf.org/0.12/0.12.4/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
                  tar xvf wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
                  mv wkhtmltox/bin/wkhtmlto* /usr/bin





                  share|improve this answer















                  After trying the below command, It worked for me



                  cd ~
                  yum install -y xorg-x11-fonts-75dpi xorg-x11-fonts-Type1 openssl git-core fontconfig
                  wget https://downloads.wkhtmltopdf.org/0.12/0.12.4/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
                  tar xvf wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
                  mv wkhtmltox/bin/wkhtmlto* /usr/bin






                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited Mar 1 '18 at 14:20









                  Vishnu N K

                  566519




                  566519










                  answered Mar 1 '18 at 10:33









                  Vipin Kumar R. JaiswarVipin Kumar R. Jaiswar

                  99




                  99






























                      draft saved

                      draft discarded




















































                      Thanks for contributing an answer to Ask Ubuntu!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid



                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.


                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function () {
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f556667%2fhow-to-install-wkhtmltopdf-0-12-1-on-ubuntu-server%23new-answer', 'question_page');
                      }
                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      GameSpot

                      connect to host localhost port 22: Connection refused

                      Getting a Wifi WPA2 wifi connection