Ah, you have a local perl installed which is misconfigured to not include /usr/share/perl5/ into its search path. I figure this would break a *lot* of things on your computer, certainly far more than just postgresql?
** Summary changed: - package postgresql-9.4 9.4~rc1-1~0ubuntu0.14.10 failed to install/upgrade: /usr/share/perl5 missing from perl path + package postgresql-9.4 9.4~rc1-1~0ubuntu0.14.10 failed to install/upgrade: /usr/share/perl5 missing from perl path (with perl installed in /usr/local) ** Changed in: postgresql-common (Ubuntu) Importance: Undecided => Low ** Changed in: postgresql-common (Ubuntu) Status: Incomplete => New -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to postgresql-common in Ubuntu. https://bugs.launchpad.net/bugs/1407744 Title: package postgresql-9.4 9.4~rc1-1~0ubuntu0.14.10 failed to install/upgrade: /usr/share/perl5 missing from perl path (with perl installed in /usr/local) Status in postgresql-common package in Ubuntu: New Bug description: was upgrading from 14.04 to the latest version via the command line ProblemType: Package DistroRelease: Ubuntu 14.10 Package: postgresql-9.4 9.4~rc1-1~0ubuntu0.14.10 ProcVersionSignature: Ubuntu 3.13.0-43.72-generic 3.13.11.11 Uname: Linux 3.13.0-43-generic x86_64 ApportVersion: 2.14.7-0ubuntu8 Architecture: amd64 Date: Mon Jan 5 15:33:09 2015 DuplicateSignature: package:postgresql-9.4:9.4~rc1-1~0ubuntu0.14.10:subprocess installed post-installation script returned error exit status 2 ErrorMessage: subprocess installed post-installation script returned error exit status 2 InstallationDate: Installed on 2013-12-14 (386 days ago) InstallationMedia: Ubuntu 13.10 "Saucy Salamander" - Release amd64 (20131016.1) SourcePackage: postgresql-9.4 Title: package postgresql-9.4 9.4~rc1-1~0ubuntu0.14.10 failed to install/upgrade: subprocess installed post-installation script returned error exit status 2 UpgradeStatus: Upgraded to utopic on 2015-01-05 (0 days ago) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/postgresql-common/+bug/1407744/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp