apt-get dist-upgrade error
Did an apt-get dist-upgrade last night and ran into the following problem:
0 packages upgraded, 0 newly installed, 0 to remove and 25 not upgraded.
1 packages not fully installed or removed.
Need to get 0B of archives. After unpacking 0B will be used.
Setting up debconf (0.5.01) ...
Can't locate XSLoader.pm in @INC (@INC contains: /usr/lib/perl5 /usr/lib/perl5/5.6/i386-linux /usr/lib/perl5/5.6 /usr/local/lib/site_perl/i386-linux /usr/local/lib/site_perl /usr/lib/perl5/5.005/i386-linux /usr/lib/perl5/5.005 .) at /usr/lib/perl5/5.6/i386-linux/POSIX.pm line 7.
BEGIN failed--compilation aborted at /usr/lib/perl5/5.6/i386-linux/POSIX.pm line 7.
Compilation failed in require at /usr/lib/perl5/Debconf/Template.pm line 5.
BEGIN failed--compilation aborted at /usr/lib/perl5/Debconf/Template.pm line 5.
Compilation failed in require at /usr/share/debconf/frontend line 22.
BEGIN failed--compilation aborted at /usr/share/debconf/frontend line 22.
dpkg: error processing debconf (--configure):
subprocess post-installation script returned error exit status 2
Errors were encountered while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)