Debian – Broken upgrade of debian, causing perl issues

aptaptitudebugzilladebianperl

So I stuffed an upgrade of debian, both upgrade and dist-upgrade. I am more used to yum but thats no excuse.

Now things are being silly. The majority of things work, however, my bugzilla install fails. On loading bugzilla I get a 500 error and this is logged in the error.log;

[Fri Jun 05 12:34:16 2009] [error] [client 172.20.0.160] Can't locate Email/Address.pm in @INC (@INC contains: . /etc/perl /usr/local/lib/perl/5.10.0 /usr/local/share/perl/5.10.0 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl) at Bugzilla/Mailer.pm line 48.
[Fri Jun 05 12:34:16 2009] [error] [client 172.20.0.160] BEGIN failed--compilation aborted at Bugzilla/Mailer.pm line 48.
[Fri Jun 05 12:34:16 2009] [error] [client 172.20.0.160] Compilation failed in require at Bugzilla/Token.pm line 35.
[Fri Jun 05 12:34:16 2009] [error] [client 172.20.0.160] BEGIN failed--compilation aborted at Bugzilla/Token.pm line 35.
[Fri Jun 05 12:34:16 2009] [error] [client 172.20.0.160] Compilation failed in require at Bugzilla/Auth/Persist/Cookie.pm line 37.
[Fri Jun 05 12:34:16 2009] [error] [client 172.20.0.160] BEGIN failed--compilation aborted at Bugzilla/Auth/Persist/Cookie.pm line 37.
[Fri Jun 05 12:34:16 2009] [error] [client 172.20.0.160] Compilation failed in require at Bugzilla/Auth.pm line 37.
[Fri Jun 05 12:34:16 2009] [error] [client 172.20.0.160] BEGIN failed--compilation aborted at Bugzilla/Auth.pm line 37.
[Fri Jun 05 12:34:16 2009] [error] [client 172.20.0.160] Compilation failed in require at Bugzilla.pm line 31.
[Fri Jun 05 12:34:16 2009] [error] [client 172.20.0.160] BEGIN failed--compilation aborted at Bugzilla.pm line 31.
[Fri Jun 05 12:34:16 2009] [error] [client 172.20.0.160] Compilation failed in require at /var/www/bugzilla/index.cgi line 34.
[Fri Jun 05 12:34:16 2009] [error] [client 172.20.0.160] BEGIN failed--compilation aborted at /var/www/bugzilla/index.cgi line 34.
[Fri Jun 05 12:34:16 2009] [error] [client 172.20.0.160] Premature end of script headers: index.cgi

Also, when I run checksetup.pl from Bugzilla, it seems to end prematurely;

Checking user setup ...
Removing existing compiled templates ...
Precompiling templates ...
Not a subroutine reference at /usr/share/perl5/Bugzilla/Template.pm line 59.
Compilation failed in require at /usr/share/bugzilla/lib/checksetup.pl line 1291

I have reinstalled both perl and perl-base;

apt-get install --reinstall perl-base
apt-get install --reinstall perl

And have had no success.

Any help would be muchly appreciated.

Also, this site is becoming a lifesaver for a systems-noob like myself and I am really thankful to all the help I get.

Christian

Best Answer

I see that you already solved this with the CPAN shell, but it would be better to install with Debian packages, that way you have only one place to check for upgrades, etc... In fact, I'll bet if you'd used the debian bugzilla package in the first place you wouldn't have run into this problem in the first place.

apt-get install libemail-address-perl

The general case:

apt-cache search Email::Address 

Which gives you output like (but sometimes more than one package):

libemail-address-perl - RFC 2822 Address Parsing and Creation

Then, you can optionally use this to verify that the package is the right one:

apt-cache show libemail-address-perl

And finally the apt-get install that I started with.