How to install Wkhtmltopdf on UCS 4.x?


#1

I have ODOO installed under UCS 4.x. I’m not able to print PDF invoices/RFQs/POs etc. It appears I am missing the Wkhtmltopdf package. I’ve consulting ODOO support and they seem to know nothing about UCS.

Does anyone know how to install this Wkhtmltopdf package? It does not appear to be in the the UCS Repository…though I could be looking in the wrong places.

Any suggestions are greatly appreciated.


#2

Hi,

wkhtmltopdf is in the unmaintainend repository.

Best Regards,
Dirk Ahrnke


#3

after reading the docs you can do this:

ucr set repository/online/unmaintained="yes" univention-install wkhtmltopdf


#4

Well, that didn’t work. I enabled the unmaintained repo. Ran the install, and this is the error:

root@bebucsmdc1:~# univention-install wkhtmltopdf
Ign bebucsmdc1.bebconsultingservices.com 4.0-0/all/ Release.gpg
Ign bebucsmdc1.bebconsultingservices.com 4.0-0/amd64/ Release.gpg
Ign bebucsmdc1.bebconsultingservices.com 4.0-1/all/ Release.gpg
Ign bebucsmdc1.bebconsultingservices.com 4.0-1/amd64/ Release.gpg
Ign bebucsmdc1.bebconsultingservices.com 4.0-2/all/ Release.gpg
Ign bebucsmdc1.bebconsultingservices.com 4.0-2/amd64/ Release.gpg
Ign bebucsmdc1.bebconsultingservices.com 4.0-2-errata/all/ Release.gpg
Ign bebucsmdc1.bebconsultingservices.com 4.0-2-errata/amd64/ Release.gpg
Ign bebucsmdc1.bebconsultingservices.com 4.0-2-errata/all/ Release.gpg
Ign bebucsmdc1.bebconsultingservices.com 4.0-2-errata/amd64/ Release.gpg
Ign bebucsmdc1.bebconsultingservices.com 4.0-0/all/ Release
Ign bebucsmdc1.bebconsultingservices.com 4.0-0/amd64/ Release
Ign bebucsmdc1.bebconsultingservices.com 4.0-1/all/ Release
Ign bebucsmdc1.bebconsultingservices.com 4.0-1/amd64/ Release
Ign bebucsmdc1.bebconsultingservices.com 4.0-2/all/ Release
Ign bebucsmdc1.bebconsultingservices.com 4.0-2/amd64/ Release
Ign bebucsmdc1.bebconsultingservices.com 4.0-2-errata/all/ Release
Ign bebucsmdc1.bebconsultingservices.com 4.0-2-errata/amd64/ Release
Ign bebucsmdc1.bebconsultingservices.com 4.0-2-errata/all/ Release
Ign bebucsmdc1.bebconsultingservices.com 4.0-2-errata/amd64/ Release
Ign bebucsmdc1.bebconsultingservices.com 4.0-0/all/ Packages/DiffIndex
Ign bebucsmdc1.bebconsultingservices.com 4.0-0/amd64/ Packages/DiffIndex
Ign bebucsmdc1.bebconsultingservices.com 4.0-1/all/ Packages/DiffIndex
Ign bebucsmdc1.bebconsultingservices.com 4.0-1/amd64/ Packages/DiffIndex
Ign bebucsmdc1.bebconsultingservices.com 4.0-2/all/ Packages/DiffIndex
Ign bebucsmdc1.bebconsultingservices.com 4.0-2/amd64/ Packages/DiffIndex
Ign bebucsmdc1.bebconsultingservices.com 4.0-2-errata/all/ Packages/DiffI ndex
Ign bebucsmdc1.bebconsultingservices.com 4.0-2-errata/amd64/ Packages/Dif fIndex
Ign bebucsmdc1.bebconsultingservices.com 4.0-2-errata/all/ Packages/DiffI ndex
Ign bebucsmdc1.bebconsultingservices.com 4.0-2-errata/amd64/ Packages/Dif fIndex
Hit appcenter.software-univention.de etherpad-lite_20150717/all/ Release. gpg
Hit appcenter.software-univention.de etherpad-lite_20150717/amd64/ Releas e.gpg
Hit bebucsmdc1.bebconsultingservices.com 4.0-0/all/ Packages
Ign bebucsmdc1.bebconsultingservices.com 4.0-0/all/ Translation-en_US
Ign bebucsmdc1.bebconsultingservices.com 4.0-0/all/ Translation-en
Hit bebucsmdc1.bebconsultingservices.com 4.0-0/amd64/ Packages
Ign bebucsmdc1.bebconsultingservices.com 4.0-0/amd64/ Translation-en_US
Ign bebucsmdc1.bebconsultingservices.com 4.0-0/amd64/ Translation-en
Hit bebucsmdc1.bebconsultingservices.com 4.0-1/all/ Packages
Ign bebucsmdc1.bebconsultingservices.com 4.0-1/all/ Translation-en_US
Ign bebucsmdc1.bebconsultingservices.com 4.0-1/all/ Translation-en
Hit bebucsmdc1.bebconsultingservices.com 4.0-1/amd64/ Packages
Ign bebucsmdc1.bebconsultingservices.com 4.0-1/amd64/ Translation-en_US
Ign bebucsmdc1.bebconsultingservices.com 4.0-1/amd64/ Translation-en
Hit bebucsmdc1.bebconsultingservices.com 4.0-2/all/ Packages
Ign bebucsmdc1.bebconsultingservices.com 4.0-2/all/ Translation-en_US
Ign bebucsmdc1.bebconsultingservices.com 4.0-2/all/ Translation-en
Hit bebucsmdc1.bebconsultingservices.com 4.0-2/amd64/ Packages
Ign bebucsmdc1.bebconsultingservices.com 4.0-2/amd64/ Translation-en_US
Ign bebucsmdc1.bebconsultingservices.com 4.0-2/amd64/ Translation-en
Hit appcenter.software-univention.de kix4otrs6_20150721/all/ Release.gpg
Hit bebucsmdc1.bebconsultingservices.com 4.0-2-errata/all/ Packages
Ign bebucsmdc1.bebconsultingservices.com 4.0-2-errata/all/ Translation-en _US
Ign bebucsmdc1.bebconsultingservices.com 4.0-2-errata/all/ Translation-en
Hit bebucsmdc1.bebconsultingservices.com 4.0-2-errata/amd64/ Packages
Ign bebucsmdc1.bebconsultingservices.com 4.0-2-errata/amd64/ Translation- en_US
Ign bebucsmdc1.bebconsultingservices.com 4.0-2-errata/amd64/ Translation- en
Hit bebucsmdc1.bebconsultingservices.com 4.0-2-errata/all/ Packages
Ign bebucsmdc1.bebconsultingservices.com 4.0-2-errata/all/ Translation-en _US
Ign bebucsmdc1.bebconsultingservices.com 4.0-2-errata/all/ Translation-en
Hit bebucsmdc1.bebconsultingservices.com 4.0-2-errata/amd64/ Packages
Ign bebucsmdc1.bebconsultingservices.com 4.0-2-errata/amd64/ Translation- en_US
Ign bebucsmdc1.bebconsultingservices.com 4.0-2-errata/amd64/ Translation- en
Hit appcenter.software-univention.de kix4otrs6_20150721/amd64/ Release.gp g
Hit appcenter.software-univention.de xrdp_20150720/all/ Release.gpg
Hit appcenter.software-univention.de xrdp_20150720/amd64/ Release.gpg
Hit appcenter.software-univention.de openvpn4ucs_20150226/all/ Release.gp g
Hit appcenter.software-univention.de plucs_20150108/all/ Release.gpg
Hit appcenter.software-univention.de odoo_20141105/all/ Release.gpg
Hit appcenter.software-univention.de odoo_20141105/amd64/ Release.gpg
Hit appcenter.software-univention.de etherpad-lite_20150717/all/ Release
Hit appcenter.software-univention.de etherpad-lite_20150717/amd64/ Release
Hit appcenter.software-univention.de kix4otrs6_20150721/all/ Release
Hit appcenter.software-univention.de kix4otrs6_20150721/amd64/ Release
Hit appcenter.software-univention.de xrdp_20150720/all/ Release
Hit appcenter.software-univention.de xrdp_20150720/amd64/ Release
Hit appcenter.software-univention.de openvpn4ucs_20150226/all/ Release
Hit appcenter.software-univention.de plucs_20150108/all/ Release
Hit appcenter.software-univention.de odoo_20141105/all/ Release
Hit appcenter.software-univention.de odoo_20141105/amd64/ Release
Hit appcenter.software-univention.de etherpad-lite_20150717/all/ Packages
Hit appcenter.software-univention.de etherpad-lite_20150717/amd64/ Packages
Hit appcenter.software-univention.de kix4otrs6_20150721/all/ Packages
Hit appcenter.software-univention.de kix4otrs6_20150721/amd64/ Packages
Hit appcenter.software-univention.de xrdp_20150720/all/ Packages
Hit appcenter.software-univention.de xrdp_20150720/amd64/ Packages
Hit appcenter.software-univention.de openvpn4ucs_20150226/all/ Packages
Hit appcenter.software-univention.de plucs_20150108/all/ Packages
Hit appcenter.software-univention.de odoo_20141105/all/ Packages
Hit appcenter.software-univention.de odoo_20141105/amd64/ Packages
Ign appcenter.software-univention.de etherpad-lite_20150717/all/ Translation-en_US
Ign appcenter.software-univention.de etherpad-lite_20150717/all/ Translation-en
Ign appcenter.software-univention.de etherpad-lite_20150717/amd64/ Translation-en_US
Ign appcenter.software-univention.de etherpad-lite_20150717/amd64/ Translation-en
Ign appcenter.software-univention.de kix4otrs6_20150721/all/ Translation-en_US
Ign appcenter.software-univention.de kix4otrs6_20150721/all/ Translation-en
Ign appcenter.software-univention.de kix4otrs6_20150721/amd64/ Translation-en_US
Ign appcenter.software-univention.de kix4otrs6_20150721/amd64/ Translation-en
Ign appcenter.software-univention.de xrdp_20150720/all/ Translation-en_US
Ign appcenter.software-univention.de xrdp_20150720/all/ Translation-en
Ign appcenter.software-univention.de xrdp_20150720/amd64/ Translation-en_US
Ign appcenter.software-univention.de xrdp_20150720/amd64/ Translation-en
Ign appcenter.software-univention.de openvpn4ucs_20150226/all/ Translation-en_US
Ign appcenter.software-univention.de openvpn4ucs_20150226/all/ Translation-en
Ign appcenter.software-univention.de plucs_20150108/all/ Translation-en_US
Ign appcenter.software-univention.de plucs_20150108/all/ Translation-en
Ign appcenter.software-univention.de odoo_20141105/all/ Translation-en_US
Ign appcenter.software-univention.de odoo_20141105/all/ Translation-en
Ign appcenter.software-univention.de odoo_20141105/amd64/ Translation-en_US
Ign appcenter.software-univention.de odoo_20141105/amd64/ Translation-en
Reading package lists…
Reading package lists…
Building dependency tree…
Reading state information…
E: Unable to locate package wkhtmltopdf

It appears that wkhtmltopdf is not part of UCS repos at all.


#5

[quote=“BrianBonnell”]
It appears that wkhtmltopdf is not part of UCS repos at all.[/quote]

Hi Brian. I just checked and it’s there:

root@master:~# apt-cache policy wkhtmltopdf wkhtmltopdf: Installed: (none) Candidate: 0.9.9-4.5.201403140533 Version table: 0.9.9-4.5.201403140533 0 500 http://updates.software-univention.de/4.0/unmaintained/ 4.0-0/amd64/ Packages

Could you please check the value of the following UCR variable on your system?
–>

ucr get repository/online/unmaintained

Edit: Sorry, I just realised that you use a local repository. This needs to be updated as well :slight_smile:
The following command should be sufficient, but will also pull in all umaintained packages into your local repository (watch your free disk space) and will most probably take some time:

univention-repository-update net

Best regards,
Michael


#6

This was already done…ucr get repository/online/unmaintained

This also was also already done… univention-repository-update net

I still get: E: Unable to locate package wkhtmltopdf when I do…univention-install wkhtmltopdf.

Additionally I tried :apt-cache policy wkhtmltopdf, I get nothing returned…I do not get the results you do when you run it. I just just returned to the command line.


#7

Hi Brian,

okay, that’s strange. Could you please execute the following command and post the output here (preferably using the code format)?

ucr search --brief mirror

Also, do these paths exist in your local filesystem?

ls -la /var/lib/univention-repository/mirror/4.0/unmaintained/ ls -lad /var/lib/univention-repository/mirror/4.0/unmaintained/4.0-0/amd64/


#8

From the MASTER which is the local repo.

root@ucsmdc:~# ucr get repository/online/unmaintained
yes

root@ucsmdc:~# ucr search --brief mirror
repository/mirror/architectures:
repository/mirror/basepath: /var/lib/univention-repository
repository/mirror/httpmethod:
repository/mirror/port:
repository/mirror/prefix:
repository/mirror/recreate_packages: yes
repository/mirror/server: updates.software-univention.de
repository/mirror/sources:
repository/mirror/threads: 10
repository/mirror/timeout:
repository/mirror/verify:
repository/mirror/version/end: 4.0-2
repository/mirror/version/start: 4.0-0
repository/mirror: yes
repository/online/component/.*/localmirror:
repository/online/component/4.0-1-errata/localmirror: true
repository/online/component/xrdp_20150305/localmirror: false
syslog/mail/mirrorto/syslog: no

root@ucsmdc:~# ls -la /var/lib/univention-repository/mirror/4.0/unmaintained/
total 24
drwxr-xr-x 6 root root 4096 Aug 1 23:48 .
drwxr-xr-x 4 root root 4096 Aug 1 22:33 …
drwxr-xr-x 4 root root 4096 Aug 1 22:33 4.0-0
drwxr-xr-x 4 root root 4096 Aug 1 23:10 4.0-1
drwxr-xr-x 4 root root 4096 Aug 1 23:40 4.0-2
drwxr-xr-x 4 root root 4096 Aug 2 00:02 component

root@ucsmdc:~# ls -lad /var/lib/univention-repository/mirror/4.0/unmaintained/4.0-0/amd64/
drwxr-xr-x 2 root root 1466368 Aug 2 00:57 /var/lib/univention-repository/mirror/4.0/unmaintained/4.0-0/amd64/

From the actual UCS Running the application that needs wkhtmltopdf…

root@odooerpprd1:~# ucr search --brief mirror
repository/mirror/architectures:
repository/mirror/basepath: /var/lib/univention-repository
repository/mirror/httpmethod:
repository/mirror/port:
repository/mirror/prefix:
repository/mirror/recreate_packages: yes
repository/mirror/server:
repository/mirror/sources:
repository/mirror/threads: 10
repository/mirror/timeout:
repository/mirror/verify:
repository/mirror/version/end:
repository/mirror/version/start:
repository/mirror: no
repository/online/component/.*/localmirror:
repository/online/component/etherpad-lite_20150717/localmirror: false
repository/online/component/odoo_20141105/localmirror: false
repository/online/component/xrdp_20150305/localmirror: false
syslog/mail/mirrorto/syslog: no

root@odooerpprd1:~# univention-install wkhtmltopdf
Hit appcenter.software-univention.de xrdp_20150305/all/ Release.gpg
Hit updates.software-univention.de 4.0-0/all/ Release.gpg
Hit appcenter.software-univention.de xrdp_20150305/amd64/ Release.gpg
Hit updates.software-univention.de 4.0-0/amd64/ Release.gpg
Hit appcenter.software-univention.de odoo_20141105/all/ Release.gpg
Hit updates.software-univention.de 4.0-1/all/ Release.gpg
Hit appcenter.software-univention.de odoo_20141105/amd64/ Release.gpg
Hit updates.software-univention.de 4.0-1/amd64/ Release.gpg
Hit appcenter.software-univention.de etherpad-lite_20150717/all/ Release.gpg
Hit updates.software-univention.de 4.0-2/all/ Release.gpg
Hit appcenter.software-univention.de etherpad-lite_20150717/amd64/ Release.gpg
Hit updates.software-univention.de 4.0-2/amd64/ Release.gpg
Hit appcenter.software-univention.de xrdp_20150305/all/ Release
Hit updates.software-univention.de 4.0-2-errata/all/ Release.gpg
Hit appcenter.software-univention.de xrdp_20150305/amd64/ Release
Hit updates.software-univention.de 4.0-2-errata/amd64/ Release.gpg
Hit appcenter.software-univention.de odoo_20141105/all/ Release
Hit updates.software-univention.de 4.0-0/all/ Release
Hit updates.software-univention.de 4.0-0/amd64/ Release
Hit appcenter.software-univention.de odoo_20141105/amd64/ Release
Hit updates.software-univention.de 4.0-1/all/ Release
Hit appcenter.software-univention.de etherpad-lite_20150717/all/ Release
Hit updates.software-univention.de 4.0-1/amd64/ Release
Hit appcenter.software-univention.de etherpad-lite_20150717/amd64/ Release
Hit updates.software-univention.de 4.0-2/all/ Release
Hit appcenter.software-univention.de xrdp_20150305/all/ Packages
Hit updates.software-univention.de 4.0-2/amd64/ Release
Hit updates.software-univention.de 4.0-2-errata/all/ Release
Hit updates.software-univention.de 4.0-2-errata/amd64/ Release
Hit appcenter.software-univention.de xrdp_20150305/amd64/ Packages
Hit updates.software-univention.de 4.0-0/all/ Packages
Hit appcenter.software-univention.de odoo_20141105/all/ Packages
Hit updates.software-univention.de 4.0-0/amd64/ Packages
Hit appcenter.software-univention.de odoo_20141105/amd64/ Packages
Hit updates.software-univention.de 4.0-1/all/ Packages
Hit appcenter.software-univention.de etherpad-lite_20150717/all/ Packages
Hit updates.software-univention.de 4.0-1/amd64/ Packages
Hit appcenter.software-univention.de etherpad-lite_20150717/amd64/ Packages
Hit updates.software-univention.de 4.0-2/all/ Packages
Hit updates.software-univention.de 4.0-2/amd64/ Packages
Hit updates.software-univention.de 4.0-2-errata/all/ Packages
Hit updates.software-univention.de 4.0-2-errata/amd64/ Packages
Ign appcenter.software-univention.de xrdp_20150305/all/ Translation-en_US
Ign appcenter.software-univention.de xrdp_20150305/all/ Translation-en
Ign appcenter.software-univention.de xrdp_20150305/amd64/ Translation-en_US
Ign appcenter.software-univention.de xrdp_20150305/amd64/ Translation-en
Ign appcenter.software-univention.de odoo_20141105/all/ Translation-en_US
Ign appcenter.software-univention.de odoo_20141105/all/ Translation-en
Ign appcenter.software-univention.de odoo_20141105/amd64/ Translation-en_US
Ign appcenter.software-univention.de odoo_20141105/amd64/ Translation-en
Ign appcenter.software-univention.de etherpad-lite_20150717/all/ Translation-en_US
Ign appcenter.software-univention.de etherpad-lite_20150717/all/ Translation-en
Ign appcenter.software-univention.de etherpad-lite_20150717/amd64/ Translation-en_US
Ign appcenter.software-univention.de etherpad-lite_20150717/amd64/ Translation-en
Ign updates.software-univention.de 4.0-0/all/ Translation-en_US
Ign updates.software-univention.de 4.0-0/all/ Translation-en
Ign updates.software-univention.de 4.0-0/amd64/ Translation-en_US
Ign updates.software-univention.de 4.0-0/amd64/ Translation-en
Ign updates.software-univention.de 4.0-1/all/ Translation-en_US
Ign updates.software-univention.de 4.0-1/all/ Translation-en
Ign updates.software-univention.de 4.0-1/amd64/ Translation-en_US
Ign updates.software-univention.de 4.0-1/amd64/ Translation-en
Ign updates.software-univention.de 4.0-2/all/ Translation-en_US
Ign updates.software-univention.de 4.0-2/all/ Translation-en
Ign updates.software-univention.de 4.0-2/amd64/ Translation-en_US
Ign updates.software-univention.de 4.0-2/amd64/ Translation-en
Ign updates.software-univention.de 4.0-2-errata/all/ Translation-en_US
Ign updates.software-univention.de 4.0-2-errata/all/ Translation-en
Ign updates.software-univention.de 4.0-2-errata/amd64/ Translation-en_US
Ign updates.software-univention.de 4.0-2-errata/amd64/ Translation-en
Reading package lists…
Reading package lists…
Building dependency tree…
Reading state information…
E: Unable to locate package wkhtmltopdf


#9

Just reattempted univention-repository-update net on our master local repo:

and I get the following error:

root@ucsmdc:~# univention-repository-update net
/usr/lib/python2.7/dist-packages/debian/deb822.py:200: UnicodeWarning: decoding from utf-8 failed; attempting to detect the true encoding
UnicodeWarning)

From the /var/log/univention/repository.log:

root@ucsmdc:/var/log/univention# tail -f repository.log
(/var/lib/univention-repository/var/postmirror.sh)

/bin/sh: 0: Can’t open /var/lib/univention-repository/var/postmirror.sh

Post Mirror script has completed. See above output for any possible errors.

***** Starting univention-repository-update at Tue Aug 4 14:12:32 2015

File: /etc/apt/mirror.list
Not updating repository/online/server
Downloading 1248 index files using 10 threads…
Begin time: Tue Aug 4 16:00:34 2015
[10]… [9]… [8]… [7]… [6]… [5]… [4]… [3]… [2]… [1]… [0]…
End time: Tue Aug 4 16:00:46 2015

Proceed indexes: [PPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP]

0.0 bytes will be downloaded into archive.
Downloading 0 archive files using 0 threads…
Begin time: Tue Aug 4 16:01:04 2015
[0]…
End time: Tue Aug 4 16:01:04 2015

0.0 bytes in 0 files and 0 directories can be freed.
Run /var/lib/univention-repository/var/clean.sh for this purpose.

Running the Post Mirror script …
(/var/lib/univention-repository/var/postmirror.sh)

/bin/sh: 0: Can’t open /var/lib/univention-repository/var/postmirror.sh

Post Mirror script has completed. See above output for any possible errors.

***** Starting univention-repository-update at Tue Aug 4 15:57:37 2015

File: /etc/apt/mirror.list


#10

Hi Brian,

okay, to be honest I haven’t seen this before. Let’s try to figure it out.

  1. The error message you get while executing “univention-repository-update net” should be [bug]39073[/bug]. As far as I can tell, this is only a warning and should not brake anything.

  2. Your UCR settings seem to be okay. I suspected that “repository/mirror/version/*” might be wrong, but they look good.

  3. The correct local paths exist.

Could you please just check if the package is there or not?

ls -la /var/lib/univention-repository/mirror/4.0/unmaintained/4.0-0/amd64/wkhtmltopdf*

I’m wondering it we have a problem downloading the package to the local repo or if there’s a problem with accessing packages in the local repo. If the packages exists in your local file system, then try to download it from a different machine:

wget http://bebucsmdc1.bebconsultingservices.com/univention-repository/4.0/unmaintained/4.0-0/amd64/wkhtmltopdf_0.9.9-4.5.201403140533_amd64.deb

If this fails, please have a look at “/var/log/apache2/access.log”. Are there any “access denied” messages?

If the package is not even present in the local filesystem of your repo server, then please post the content of “/etc/apt/mirror.list”.


#11

OK here are the results of the latest request:

From the actual application server:
root@odooerpprd1:~# ls -la /var/lib/univention-repository/mirror/4.0/unmaintained/4.0-0/amd64/wkhtmltopdf*
ls: cannot access /var/lib/univention-repository/mirror/4.0/unmaintained/4.0-0/amd64/wkhtmltopdf*: No such file or directory

From the actual master DC/Local Repo server:
root@ucsmdc:~# ls -la /var/lib/univention-repository/mirror/4.0/unmaintained/4.0-0/amd64/wkhtmltopdf*
-rw-r–r-- 1 root root 103508 Mar 25 2014 /var/lib/univention-repository/mirror/4.0/unmaintained/4.0-0/amd64/wkhtmltopdf_0.9.9-4.5.201403140533_amd64.deb

root@odooerpprd1:~# wget ucsmdc.operations.bebconsultings … _amd64.deb
–2015-08-07 13:06:02-- ucsmdc.operations.bebconsultings … _amd64.deb
Resolving ucsmdc.operations.bebconsultingservices.com (ucsmdc.operations.bebconsultingservices.com)… 192.168.100.100
Connecting to ucsmdc.operations.bebconsultingservices.com (ucsmdc.operations.bebconsultingservices.com)|192.168.100.100|:80… connected.
HTTP request sent, awaiting response… 200 OK
Length: 103508 (101K) [application/x-debian-package]
Saving to: `wkhtmltopdf_0.9.9-4.5.201403140533_amd64.deb’

100%[====================================================================================================================================================================================================>] 103,508 --.-K/s in 0.001s

2015-08-07 13:06:02 (96.3 MB/s) - `wkhtmltopdf_0.9.9-4.5.201403140533_amd64.deb’ saved [103508/103508]


#12

Tried to install again…on the application server.

root@odooerpprd1:~# univention-install wkhtmltopdf
Hit updates.software-univention.de 4.0-0/all/ Release.gpg
Hit appcenter.software-univention.de xrdp_20150305/all/ Release.gpg
Hit updates.software-univention.de 4.0-0/amd64/ Release.gpg
Hit appcenter.software-univention.de xrdp_20150305/amd64/ Release.gpg
Hit updates.software-univention.de 4.0-1/all/ Release.gpg
Hit appcenter.software-univention.de odoo_20141105/all/ Release.gpg
Hit updates.software-univention.de 4.0-1/amd64/ Release.gpg
Hit appcenter.software-univention.de odoo_20141105/amd64/ Release.gpg
Hit updates.software-univention.de 4.0-2/all/ Release.gpg
Hit appcenter.software-univention.de etherpad-lite_20150717/all/ Release.gpg
Hit updates.software-univention.de 4.0-2/amd64/ Release.gpg
Hit appcenter.software-univention.de etherpad-lite_20150717/amd64/ Release.gpg
Get:1 updates.software-univention.de 4.0-2-errata/all/ Release.gpg [836 B]
Hit appcenter.software-univention.de xrdp_20150305/all/ Release
Get:2 updates.software-univention.de 4.0-2-errata/amd64/ Release.gpg [836 B]
Hit appcenter.software-univention.de xrdp_20150305/amd64/ Release
Hit updates.software-univention.de 4.0-0/all/ Release
Hit appcenter.software-univention.de odoo_20141105/all/ Release
Hit updates.software-univention.de 4.0-0/amd64/ Release
Hit appcenter.software-univention.de odoo_20141105/amd64/ Release
Hit updates.software-univention.de 4.0-1/all/ Release
Hit appcenter.software-univention.de etherpad-lite_20150717/all/ Release
Hit updates.software-univention.de 4.0-1/amd64/ Release
Hit appcenter.software-univention.de etherpad-lite_20150717/amd64/ Release
Hit updates.software-univention.de 4.0-2/all/ Release
Hit appcenter.software-univention.de xrdp_20150305/all/ Packages
Hit updates.software-univention.de 4.0-2/amd64/ Release
Get:3 updates.software-univention.de 4.0-2-errata/all/ Release [592 B]
Get:4 updates.software-univention.de 4.0-2-errata/amd64/ Release [594 B]
Hit appcenter.software-univention.de xrdp_20150305/amd64/ Packages
Hit updates.software-univention.de 4.0-0/all/ Packages
Hit appcenter.software-univention.de odoo_20141105/all/ Packages
Hit updates.software-univention.de 4.0-0/amd64/ Packages
Hit appcenter.software-univention.de odoo_20141105/amd64/ Packages
Hit updates.software-univention.de 4.0-1/all/ Packages
Hit appcenter.software-univention.de etherpad-lite_20150717/all/ Packages
Hit updates.software-univention.de 4.0-1/amd64/ Packages
Hit appcenter.software-univention.de etherpad-lite_20150717/amd64/ Packages
Hit updates.software-univention.de 4.0-2/all/ Packages
Hit updates.software-univention.de 4.0-2/amd64/ Packages
Get:5 updates.software-univention.de 4.0-2-errata/all/ Packages [44.3 kB]
Get:6 updates.software-univention.de 4.0-2-errata/amd64/ Packages [41.0 kB]
Ign appcenter.software-univention.de xrdp_20150305/all/ Translation-en_US
Ign appcenter.software-univention.de xrdp_20150305/all/ Translation-en
Ign appcenter.software-univention.de xrdp_20150305/amd64/ Translation-en_US
Ign appcenter.software-univention.de xrdp_20150305/amd64/ Translation-en
Ign appcenter.software-univention.de odoo_20141105/all/ Translation-en_US
Ign appcenter.software-univention.de odoo_20141105/all/ Translation-en
Ign appcenter.software-univention.de odoo_20141105/amd64/ Translation-en_US
Ign appcenter.software-univention.de odoo_20141105/amd64/ Translation-en
Ign appcenter.software-univention.de etherpad-lite_20150717/all/ Translation-en_US
Ign appcenter.software-univention.de etherpad-lite_20150717/all/ Translation-en
Ign appcenter.software-univention.de etherpad-lite_20150717/amd64/ Translation-en_US
Ign appcenter.software-univention.de etherpad-lite_20150717/amd64/ Translation-en
Ign updates.software-univention.de 4.0-0/all/ Translation-en_US
Ign updates.software-univention.de 4.0-0/all/ Translation-en
Ign updates.software-univention.de 4.0-0/amd64/ Translation-en_US
Ign updates.software-univention.de 4.0-0/amd64/ Translation-en
Ign updates.software-univention.de 4.0-1/all/ Translation-en_US
Ign updates.software-univention.de 4.0-1/all/ Translation-en
Ign updates.software-univention.de 4.0-1/amd64/ Translation-en_US
Ign updates.software-univention.de 4.0-1/amd64/ Translation-en
Ign updates.software-univention.de 4.0-2/all/ Translation-en_US
Ign updates.software-univention.de 4.0-2/all/ Translation-en
Ign updates.software-univention.de 4.0-2/amd64/ Translation-en_US
Ign updates.software-univention.de 4.0-2/amd64/ Translation-en
Ign updates.software-univention.de 4.0-2-errata/all/ Translation-en_US
Ign updates.software-univention.de 4.0-2-errata/all/ Translation-en
Ign updates.software-univention.de 4.0-2-errata/amd64/ Translation-en_US
Ign updates.software-univention.de 4.0-2-errata/amd64/ Translation-en
Fetched 88.1 kB in 11s (7,946 B/s)
Reading package lists…
Reading package lists…
Building dependency tree…
Reading state information…
E: Unable to locate package wkhtmltopdf
root@odooerpprd1:~# univention-install wkhtmltopdf_0.9.9-4.5.201403140533_amd64.deb
Hit appcenter.software-univention.de xrdp_20150305/all/ Release.gpg
Hit updates.software-univention.de 4.0-0/all/ Release.gpg
Hit appcenter.software-univention.de xrdp_20150305/amd64/ Release.gpg
Hit updates.software-univention.de 4.0-0/amd64/ Release.gpg
Hit appcenter.software-univention.de odoo_20141105/all/ Release.gpg
Hit updates.software-univention.de 4.0-1/all/ Release.gpg
Hit appcenter.software-univention.de odoo_20141105/amd64/ Release.gpg
Hit updates.software-univention.de 4.0-1/amd64/ Release.gpg
Hit appcenter.software-univention.de etherpad-lite_20150717/all/ Release.gpg
Hit updates.software-univention.de 4.0-2/all/ Release.gpg
Hit appcenter.software-univention.de etherpad-lite_20150717/amd64/ Release.gpg
Hit updates.software-univention.de 4.0-2/amd64/ Release.gpg
Hit appcenter.software-univention.de xrdp_20150305/all/ Release
Hit updates.software-univention.de 4.0-2-errata/all/ Release.gpg
Hit appcenter.software-univention.de xrdp_20150305/amd64/ Release
Hit updates.software-univention.de 4.0-2-errata/amd64/ Release.gpg
Hit appcenter.software-univention.de odoo_20141105/all/ Release
Hit updates.software-univention.de 4.0-0/all/ Release
Hit appcenter.software-univention.de odoo_20141105/amd64/ Release
Hit updates.software-univention.de 4.0-0/amd64/ Release
Hit updates.software-univention.de 4.0-1/all/ Release
Hit appcenter.software-univention.de etherpad-lite_20150717/all/ Release
Hit appcenter.software-univention.de etherpad-lite_20150717/amd64/ Release
Hit updates.software-univention.de 4.0-1/amd64/ Release
Hit appcenter.software-univention.de xrdp_20150305/all/ Packages
Hit updates.software-univention.de 4.0-2/all/ Release
Hit updates.software-univention.de 4.0-2/amd64/ Release
Hit updates.software-univention.de 4.0-2-errata/all/ Release
Hit appcenter.software-univention.de xrdp_20150305/amd64/ Packages
Hit updates.software-univention.de 4.0-2-errata/amd64/ Release
Hit updates.software-univention.de 4.0-0/all/ Packages
Hit appcenter.software-univention.de odoo_20141105/all/ Packages
Hit updates.software-univention.de 4.0-0/amd64/ Packages
Hit appcenter.software-univention.de odoo_20141105/amd64/ Packages
Hit updates.software-univention.de 4.0-1/all/ Packages
Hit appcenter.software-univention.de etherpad-lite_20150717/all/ Packages
Hit updates.software-univention.de 4.0-1/amd64/ Packages
Hit appcenter.software-univention.de etherpad-lite_20150717/amd64/ Packages
Hit updates.software-univention.de 4.0-2/all/ Packages
Hit updates.software-univention.de 4.0-2/amd64/ Packages
Hit updates.software-univention.de 4.0-2-errata/all/ Packages
Hit updates.software-univention.de 4.0-2-errata/amd64/ Packages
Ign appcenter.software-univention.de xrdp_20150305/all/ Translation-en_US
Ign appcenter.software-univention.de xrdp_20150305/all/ Translation-en
Ign appcenter.software-univention.de xrdp_20150305/amd64/ Translation-en_US
Ign appcenter.software-univention.de xrdp_20150305/amd64/ Translation-en
Ign appcenter.software-univention.de odoo_20141105/all/ Translation-en_US
Ign appcenter.software-univention.de odoo_20141105/all/ Translation-en
Ign appcenter.software-univention.de odoo_20141105/amd64/ Translation-en_US
Ign appcenter.software-univention.de odoo_20141105/amd64/ Translation-en
Ign appcenter.software-univention.de etherpad-lite_20150717/all/ Translation-en_US
Ign appcenter.software-univention.de etherpad-lite_20150717/all/ Translation-en
Ign appcenter.software-univention.de etherpad-lite_20150717/amd64/ Translation-en_US
Ign appcenter.software-univention.de etherpad-lite_20150717/amd64/ Translation-en
Ign updates.software-univention.de 4.0-0/all/ Translation-en_US
Ign updates.software-univention.de 4.0-0/all/ Translation-en
Ign updates.software-univention.de 4.0-0/amd64/ Translation-en_US
Ign updates.software-univention.de 4.0-0/amd64/ Translation-en
Ign updates.software-univention.de 4.0-1/all/ Translation-en_US
Ign updates.software-univention.de 4.0-1/all/ Translation-en
Ign updates.software-univention.de 4.0-1/amd64/ Translation-en_US
Ign updates.software-univention.de 4.0-1/amd64/ Translation-en
Ign updates.software-univention.de 4.0-2/all/ Translation-en_US
Ign updates.software-univention.de 4.0-2/all/ Translation-en
Ign updates.software-univention.de 4.0-2/amd64/ Translation-en_US
Ign updates.software-univention.de 4.0-2/amd64/ Translation-en
Ign updates.software-univention.de 4.0-2-errata/all/ Translation-en_US
Ign updates.software-univention.de 4.0-2-errata/all/ Translation-en
Ign updates.software-univention.de 4.0-2-errata/amd64/ Translation-en_US
Ign updates.software-univention.de 4.0-2-errata/amd64/ Translation-en
Reading package lists…
Reading package lists…
Building dependency tree…
Reading state information…
E: Unable to locate package wkhtmltopdf_0.9.9-4.5.201403140533_amd64.deb
E: Couldn’t find any package by regex ‘wkhtmltopdf_0.9.9-4.5.201403140533_amd64.deb’
root@odooerpprd1:~#


#13

Interesting…it appears to be installed…

Details for package ‘wkhtmltopdf’
Package name wkhtmltopdf
Summary Command line utility to convert html to pdf using WebKit
Section utils
Is installed Yes
Installed version 0.9.9-4.5.201403140533
Is upgradable No
Package size 282.62 kB
Priority extra
Description wkhtmltopdf is a command line program which permits one to create a pdf from an url, a local html file or stdin. It produces a pdf like rendred with the WebKit engine. This program requires an X11 server to run.

However the application ODOO can’t find it.


#14

OK, Looks like manually installing it does work.
You have to WGET it from the master server, then run dkpg -i , then reboot.

After that you will get errors that it is the OLD verzion of wkhtmltopdfm but it will create PDFs that are needed.

Thanks all.

I’ll have to do this one the new ODOO server we are migrating to. But thanks again for the pointers and getting me in the right direction.


#15

Well I though it worked…now it does create PDF Files, however they are empty files.

and even the attachments to emails are empty PDFs.


#16

For ODOO 8 version install wkhtmltox-0.12.1_linux-trusty-amd64.deb. Thereafter, if the given file wkhtmltopdf and wkhtmltoimage copy from /usr/local/bin to /usr/bin . It is important to add with ODOO under /Settings/Parameters/System Parameters the following record: Key = report.url value = http: //0.0.0.0: 8069 or the port is running under the ODOO.