pdftk missing in 18.04 (bionic)

Bug #1764450 reported by Felix Eckhofer on 2018-04-16
574
This bug affects 128 people
Affects Status Importance Assigned to Milestone
pdftk (Ubuntu)
Undecided
Unassigned

Bug Description

It seems that pdftk is no longer included in bionic. The package still is available in Debian sid and I did not find a hint why it was removed. Is this a bug?

description: updated
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in pdftk (Ubuntu):
status: New → Confirmed
Hans Joachim Desserud (hjd) wrote :

Thanks for reporting.

I looked at the publishing history for this package (https://launchpad.net/ubuntu/+source/pdftk/+publishinghistory, available in the upper right corner on the overview page). Looks like it was removed from bionic due to bug 1757314. (There's a similar, release critical bug affecting the package in Debian, https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=892539)

Andrew Gee (ahg-e) wrote :

An effective workaround is to build Marc Vinyal's fork as described by David Foerster here
https://askubuntu.com/questions/1028522/how-can-i-install-pdftk-in-ubuntu-18-04-bionic-shell-version-no-gtk and then wrap the jar file into an executable called "pdftk" using the lovely trick described here https://coderwall.com/p/ssuaxa/how-to-make-a-jar-file-linux-executable. This works perfectly for me and could point the way to a maintainable way forward for pdftk under Ubuntu. Maybe somebody who understands packaging could create a deb with the right dependencies, and put it on a repository somewhere?

summary: - pdftk missing in bionic
+ pdftk missing in 18.04 (bionic)
Felix Eckhofer (eckhofer) wrote :

Quick and easy workaround:

  wget http://archive.ubuntu.com/ubuntu/pool/universe/p/pdftk/pdftk_2.02-4build1_amd64.deb
  wget http://archive.ubuntu.com/ubuntu/pool/main/g/gcc-6/libgcj17_6.4.0-8ubuntu1_amd64.deb
  wget http://archive.ubuntu.com/ubuntu/pool/main/g/gcc-defaults/libgcj-common_6.4-3ubuntu1_all.deb
  sudo dpkg -i pdftk_2.02-4build1_amd64.deb libgcj17_6.4.0-8ubuntu1_amd64.deb libgcj-common_6.4-3ubuntu1_all.deb

Seems to work fine for now.

Victor Forberger (vforberger) wrote :

I have posted about this issue and the current possible solutions here and elsewhere at https://linuxatty.wordpress.com/2018/05/04/xubuntu-18-04-bionic-beaver-released/.

Felix's workaround works fine for me, even though it's a temporary solution, of course.
Thanks!
Michael

Cefn (6-launchpad-net-cefn-com) wrote :

I also needed to add

sudo apt install gcc-6-base

and after this, Felix' workaround was effective.

Rodrigo (crabbly) wrote :

Felix's workaround worked.
Thank you.

Tobias Frei (tobefree) wrote :

Confirmed: Bug & Felix' workaround (thank you!)

rloth (romain-loth) wrote :

See also the removal action from 18.04 here: https://bugs.launchpad.net/ubuntu/+source/pdftk/+bug/1757314

You can find more solution on https://askubuntu.com/questions/1028522/how-can-i-install-pdftk-in-ubuntu-18-04-bionic

User pgoetz's solution is ,in my opinion, the cleanest one: just

  sudo snap install pdftk-smoser

and then alias the pdftk-smoser.pdftk command to pdftk.

gene_wood (gene.wood) wrote :

To extend what @6-launchpad-net-cefn-com mentioned in Comment #7 I had to not only install gcc-6-base but also python. I ran

sudo apt install gcc-6-base libpython-stdlib python python-minimal python2.7 python2.7-minimal

before installing the packages @eckhofer listed in Comment #4

Sworddragon (sworddragon) wrote :

It seems nobody has contacted upstream so far and asked to fix this issue so I did this now and will see what happens. I guess the alternative would be just to wait until a fork makes it into the repositories or just to switch to another application that does a similar job.

Scott Moser (smoser) wrote :

I did request the pdftk namespace, so now you do not need pdftk-smoser, but just:

    snap install pdftk

Feel free to file issues at https://github.com/smoser/pdftk/tree/snap/snap

Johann Felix Soden (johfel) wrote :

There is pdftk-java ( https://launchpad.net/ubuntu/+source/pdftk-java ). It is an port of pdftk to pure java, therefore does no longer depend on gcj. The package provides a "pdftk" binary and is planned to be the replacement of the pdftk package. The package from cosmic should be backwards-compatible to 18.04.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.