InstallScript icon indicating copy to clipboard operation
InstallScript copied to clipboard

about wkhtmltopdf

Open maravento opened this issue 3 years ago • 0 comments

I have a doubt. Why don't you use (in Ubuntu 20.04):

apt-get install wkhtmltopdf
wkhtmltopdf --version
wkhtmltopdf 0.12.5

replacing the package you download with wget (wkhtmltox_0.12.5-1):

WKHTMLTOX_X64=https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox_0.12.5-1.trusty_amd64.deb
WKHTMLTOX_X32=https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox_0.12.5-1.trusty_i386.deb

What is the difference or how does this affect the final result? Thanks

PD: adding a repository of the previous version ubuntu xenial is not recommended at all

# libpng12-0 dependency for wkhtmltopdf
sudo add-apt-repository "deb http://mirrors.kernel.org/ubuntu/ xenial main"
sudo apt-get update
sudo apt-get upgrade -y

At least at the end of the script you should remove it:

sudo add-apt-repository -r 'deb http://mirrors.kernel.org/ubuntu/ xenial main'

But, i think you should consider replace with this:

sudo add-apt-repository ppa:linuxuprising/libpng12
sudo apt update
sudo apt install libpng12-0

maravento avatar Sep 19 '21 17:09 maravento