This is the relevant part of the upgrade log for perl, p-common, and p-9.4:
Unpacking perl (5.20.1-1) over (5.18.2-2ubuntu1) ...
Selecting previously unselected package libperl5.20.
Preparing to unpack .../libperl5.20_5.20.1-1_amd64.deb ...
Unpacking libperl5.20 (5.20.1-1) ...
[...]
Unpacking perl-base (5.20.1-1) over (5.18.2-2ubuntu1) ...
[...]
Setting up perl-modules (5.20.1-1) ...
[...]
Setting up perl (5.20.1-1) ...
[...]
Setting up postgresql-common (162) ...
[...]
Setting up postgresql-9.4 (9.4~rc1-1~0ubuntu0.14.10) ...
Can't locate PgCommon.pm in @INC (you may need to install the PgCommon module) (@INC contains: /usr/share/postgresql-common /usr/local/lib/perl5/site_perl/5.20.0/x86_64-linux /usr/local/lib/perl5/site_perl/5.20.0 /usr/local/lib/perl5/5.20.0/x86_64-linux /usr/local/lib/perl5/5.20.0 .).
So the unpack/configure order seems fine to me. But indeed your @INC is incomplete: /usr/share/perl5/ and sr/share/perl/5.20 (and a few others) are missing entirely. Can you please give me the output of these commands:
This is the relevant part of the upgrade log for perl, p-common, and p-9.4:
Unpacking perl (5.20.1-1) over (5.18.2-2ubuntu1) ... 20_5.20. 1-1_amd64. deb ... 1~0ubuntu0. 14.10) ... postgresql- common /usr/local/ lib/perl5/ site_perl/ 5.20.0/ x86_64- linux /usr/local/ lib/perl5/ site_perl/ 5.20.0 /usr/local/ lib/perl5/ 5.20.0/ x86_64- linux /usr/local/ lib/perl5/ 5.20.0 .).
Selecting previously unselected package libperl5.20.
Preparing to unpack .../libperl5.
Unpacking libperl5.20 (5.20.1-1) ...
[...]
Unpacking perl-base (5.20.1-1) over (5.18.2-2ubuntu1) ...
[...]
Setting up perl-modules (5.20.1-1) ...
[...]
Setting up perl (5.20.1-1) ...
[...]
Setting up postgresql-common (162) ...
[...]
Setting up postgresql-9.4 (9.4~rc1-
Can't locate PgCommon.pm in @INC (you may need to install the PgCommon module) (@INC contains: /usr/share/
So the unpack/configure order seems fine to me. But indeed your @INC is incomplete: /usr/share/perl5/ and sr/share/perl/5.20 (and a few others) are missing entirely. Can you please give me the output of these commands:
which perl
perl -e 'use foo'