Comment 17 for bug 578137

dpkg -i gallery2_2.3.1.dfsg-1ubuntu1~ppa1_all.deb
(Reading database ... 211361 files and directories currently installed.)
Preparing to replace gallery2 2.3-1ubuntu3 (using gallery2_2.3.1.dfsg-1ubuntu1~ppa1_all.deb) ...
Unpacking replacement gallery2 ...
Setting up gallery2 (2.3.1.dfsg-1ubuntu1~ppa1) ...
ln: creating symbolic link `/usr/share/gallery2/lib/smarty': No such file or directory
dpkg: error processing gallery2 (--install):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing: