I got the same error. This seems to be a bug in the package post-installation script . This one might be related: https://bugzilla.redhat.com/show_bug.cgi?id=497098
dpkg -i -D163 --force-all /var/cache/apt/archives/gallery2_2.3-1ubuntu3_all.deb [...] D000100: process_archive ... found in gallery2 D000040: checking dependencies of gallery2 (- <none>) D000040: ok 2 msgs >><< D000040: checking Breaks Setting up gallery2 (2.3-1ubuntu3) ... D000001: deferred_configure updating conffiles D000002: fork/exec /var/lib/dpkg/info/gallery2.postinst ( configure 2.3-1ubuntu3 ) 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: gallery2 ** Bug watch added: Red Hat Bugzilla #497098 https://bugzilla.redhat.com/show_bug.cgi?id=497098 -- package gallery2 2.3-1ubuntu3 failed to install/upgrade: el subproceso script post-installation instalado devolvió el código de salida de error 1 https://bugs.launchpad.net/bugs/558961 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs