Skip to content

Instantly share code, notes, and snippets.

@akhmadkresna
Created June 30, 2018 14:11
Show Gist options
  • Save akhmadkresna/9a61fb89c13ccbb1c55a0ae2d303af81 to your computer and use it in GitHub Desktop.
Save akhmadkresna/9a61fb89c13ccbb1c55a0ae2d303af81 to your computer and use it in GitHub Desktop.
wkhtmltopdf install on ubuntu 18.04
sudo wget https://builds.wkhtmltopdf.org/0.12.1.3/wkhtmltox_0.12.1.3-1~bionic_amd64.deb
sudo dpkg -i wkhtmltox_0.12.1.3-1~bionic_amd64.deb
sudo apt-get install -f
sudo ln -s /usr/local/bin/wkhtmltopdf /usr/bin
sudo ln -s /usr/local/bin/wkhtmltoimage /usr/bin
@jmatembu
Copy link

jmatembu commented Nov 28, 2018

Very helpful, worked for me. Thank you.

@rakeybulhasan
Copy link

Very helpful, worked for me. Thank you.

@santooooooo
Copy link

Thank you.
It can work .

@akhmadkresna
Copy link
Author

nice guys

@matheo
Copy link

matheo commented Dec 24, 2019

0.12.1.4 is available already, thank you very much!

@janitha09
Copy link

apt-get -y update && apt-get install --fix-missing -y wkhtmltopdf

$ uname -a
Linux 5dbfb55cf44e 5.3.0-24-generic #26-Ubuntu SMP Thu Nov 14 01:33:18 UTC 2019 x86_64 GNU/Linux
$ cat /etc/issue
Debian GNU/Linux 10 \n \l
$ wkhtmltopdf --version
wkhtmltopdf 0.12.5

@bulunluo
Copy link

thank you very much

@claudsonm
Copy link

There is a brand new version, build for Ubuntu 18.04. Just point to the new *.deb file.

Same script, updated link. Here it goes:

sudo wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox_0.12.5-1.bionic_amd64.deb
sudo dpkg -i wkhtmltox_0.12.5-1.bionic_amd64.deb
sudo apt-get install -f
sudo ln -s /usr/local/bin/wkhtmltopdf /usr/bin
sudo ln -s /usr/local/bin/wkhtmltoimage /usr/bin

@AbhishekJadav2
Copy link

AbhishekJadav2 commented Jul 16, 2020

`(Reading` database ... 194596 files and directories currently installed.)
Preparing to unpack wkhtmltox_0.12.5-1.bionic_amd64.deb ...
Unpacking wkhtmltox (1:0.12.5-1.bionic) ...
dpkg-deb (subprocess): cannot copy archive member from 'wkhtmltox_0.12.5-1.bionic_amd64.deb' to decompressor pipe: unexpected end of file or stream
dpkg-deb (subprocess): decompressing archive member: lzma error: unexpected end of input
dpkg-deb: error: <decompress> subprocess returned error exit status 2
dpkg: error processing archive wkhtmltox_0.12.5-1.bionic_amd64.deb (--install):
 cannot copy extracted data for './usr/local/bin/wkhtmltopdf' to '/usr/local/bin/wkhtmltopdf.dpkg-new': unexpected end of file or stream
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Errors were encountered while processing:
 wkhtmltox_0.12.5-1.bionic_amd64.deb

@Xevid7654
Copy link

Good with everything, please can you help me with this little problem.

root@ip-172-31-34-110:/home/odoo# sudo wget https://builds.wkhtmltopdf.org/0.12.1.3/wkhtmltox_0.12.1.3-1~bionic_amd64.deb
--2020-07-23 09:50:15-- https://builds.wkhtmltopdf.org/0.12.1.3/wkhtmltox_0.12.1.3-1~bionic_amd64.deb
Resolving builds.wkhtmltopdf.org (builds.wkhtmltopdf.org)... failed: Name or service not known.
wget: unable to resolve host address ‘builds.wkhtmltopdf.org’

@basetko
Copy link

basetko commented Sep 15, 2020

There is a brand new version, build for Ubuntu 18.04. Just point to the new *.deb file.

Same script, updated link. Here it goes:

sudo wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox_0.12.5-1.bionic_amd64.deb
sudo dpkg -i wkhtmltox_0.12.5-1.bionic_amd64.deb
sudo apt-get install -f
sudo ln -s /usr/local/bin/wkhtmltopdf /usr/bin
sudo ln -s /usr/local/bin/wkhtmltoimage /usr/bin

that one solved my issue
great job bro

@arrazka
Copy link

arrazka commented Aug 27, 2021

apt-get -y update && apt-get install --fix-missing -y wkhtmltopdf

$ uname -a
Linux 5dbfb55cf44e 5.3.0-24-generic #26-Ubuntu SMP Thu Nov 14 01:33:18 UTC 2019 x86_64 GNU/Linux
$ cat /etc/issue
Debian GNU/Linux 10 \n \l
$ wkhtmltopdf --version
wkhtmltopdf 0.12.5

nice... thanks .. it's simple

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment