Yesterday I was generating some PDFs with attachments in Java (using Apache PDFBox if you’re interested) and needed to check if the attachments were really there.
As there’s no official Linux package on the Adobe website it’s not so straightforward to install it on Ubuntu. But it’s not complicated either.
$ wget ftp://ftp.adobe.com/pub/adobe/reader/unix/9.x/9.5.5/enu/AdbeRdr9.5.5-1_i386linux_enu.deb
$ sudo dpkg -i AdbeRdr9.5.5-1_i386linux_enu.deb
It will finish with missing dependency errors, like this:
Selecting previously unselected package adobereader-enu. (Reading database ... 120320 files and directories currently installed.) Preparing to unpack AdbeRdr9.5.5-1_i386linux_enu.deb ... Unpacking adobereader-enu (9.5.5) ... dpkg: dependency problems prevent configuration of adobereader-enu: adobereader-enu depends on libgtk2.0-0 (>= 2.4); however: Package libgtk2.0-0 is not installed. dpkg: error processing package adobereader-enu (--install): dependency problems - leaving unconfigured Processing triggers for man-db (188.8.131.52-1ubuntu1) ... Errors were encountered while processing: adobereader-enu
Install the missing dependencies:
$ sudo apt-get -f install --no-install-recommends
--no-install-recommendsis optional. I use it to avoid installing unneeded packages.
Everything should be fine now and you can run Acrobat Reader:
That’s it. I hope it helped you.