Cannot update/upgrade packages, reports error with libldap-2.4.2 and libssl.1.0

Asked by Rajesh M

Hi,

I'm having problems with updating/upgrading packages. It started when I tried to do apt-get update followed by apt-get upgrade.

This is very similar to the problem reported in https://answers.launchpad.net/ubuntu/+source/apt/+question/231831 and I have gone through the fixes recommended there until it didn't work for me. The point it broke was:
sudo dpkg -i ~/libldap-2.4-2_2.4.28-1.1ubuntu4.3_*.deb

Prior to this I tried to downgrade the libldap package because the message appeared to say that something was looking for the prior version. I also tried to remove and reinstall the libssl package, among other things. But nothing has worked so far and it complains about an internal error.

I don't use a window manager. I have openbox installed but use it rarely.

So I executed each of the commands listed here https://help.ubuntu.com/community/PackageManagerTroubleshootingProcedure and the output is below.

Thanks for your help.
Rajesh

=================================================================

asterix:~ % sudo grep -R proxy /etc/apt/*
asterix:~ % grep proxy /etc/environment
asterix:~ % echo $http_proxy

asterix:~ % echo $ftp_proxy

asterix:~ % grep proxy /etc/bash.bashrc
asterix:~ % grep proxy ~/.bashrc
asterix:~ % cat /etc/apt/apt.conf
cat: /etc/apt/apt.conf: No such file or directory
asterix:~ % sudo fuser -vvv /var/lib/dpkg/lock
asterix:~ % cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=12.04
DISTRIB_CODENAME=precise
DISTRIB_DESCRIPTION="Ubuntu 12.04.2 LTS"
asterix:~ % uname -a
Linux asterix 3.2.0-24-generic-pae #39-Ubuntu SMP Mon May 21 18:54:21 UTC 2012 i686 i686 i386 GNU/Linux
asterix:~ % sudo rm /var/lib/apt/lists/lock
asterix:~ % sudo rm /var/lib/dpkg/lock
asterix:~ % sudo cp -arf /var/lib/dpkg /var/lib/dpkg.backup
asterix:~ % sudo mv /var/lib/dpkg/status /var/lib/dpkg/status-bad
asterix:~ % sudo cp /var/lib/dpkg/status-old /var/lib/dpkg/status || sudo cp /var/backups/apt.extended_states.0 /var/lib/dpkg/status
asterix:~ % sudo mv /var/lib/dpkg/available /var/lib/dpkg/available-bad
asterix:~ % sudo cp /var/lib/dpkg/available-old /var/lib/dpkg/available
asterix:~ % sudo rm -rf /var/lib/dpkg/updates/*
asterix:~ % sudo rm -rf /var/lib/apt/lists
asterix:~ % sudo rm /var/cache/apt/*.bin
asterix:~ % sudo mkdir /var/lib/apt/lists
asterix:~ % sudo mkdir /var/lib/apt/lists/partial
asterix:~ % LANG=C;sudo apt-get clean
asterix:~ % LANG=C;sudo apt-get autoclean
Reading package lists... Done
Building dependency tree
Reading state information... Done
asterix:~ % LANG=C;sudo apt-get --purge autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
 libldap2-dev : Depends: libldap-2.4-2 (= 2.4.28-1.1ubuntu4.2) but 2.4.28-1.1ubuntu4.3 is installed
E: Unmet dependencies. Try using -f.

asterix:~ % LANG=C;sudo apt-get --fix-missing update -o APT::Cache-Limit=100000000
Ign http://cran.cnr.Berkeley.edu precise/ InRelease
Get:1 http://cran.cnr.Berkeley.edu precise/ Release.gpg [490 B]
Ign http://us.archive.ubuntu.com precise InRelease
Ign http://us.archive.ubuntu.com precise-updates InRelease
Get:2 http://cran.cnr.Berkeley.edu precise/ Release [2280 B]
Get:3 http://us.archive.ubuntu.com precise Release.gpg [198 B]
Get:4 http://cran.cnr.Berkeley.edu precise/ Packages [42.2 kB]
Ign http://security.ubuntu.com precise-security InRelease
Ign http://ppa.launchpad.net precise InRelease
Get:5 http://us.archive.ubuntu.com precise-updates Release.gpg [198 B]
Ign http://toolbelt.heroku.com ./ InRelease
Get:6 http://us.archive.ubuntu.com precise Release [49.6 kB]
Get:7 http://security.ubuntu.com precise-security Release.gpg [198 B]
Get:8 http://ppa.launchpad.net precise Release.gpg [316 B]
Get:9 http://security.ubuntu.com precise-security Release [49.6 kB]
Get:10 http://ppa.launchpad.net precise Release [11.9 kB]
Ign http://cran.cnr.Berkeley.edu precise/ Translation-en
Get:11 http://us.archive.ubuntu.com precise-updates Release [49.6 kB]
Get:12 http://us.archive.ubuntu.com precise/main Sources [934 kB]
Get:13 http://toolbelt.heroku.com ./ Release.gpg [490 B]
Get:14 http://ppa.launchpad.net precise/main Sources [824 B]
Get:15 http://security.ubuntu.com precise-security/main Sources [83.5 kB]
Get:16 http://ppa.launchpad.net precise/main i386 Packages [1379 B]
Ign http://ppa.launchpad.net precise/main TranslationIndex
Get:17 http://toolbelt.heroku.com ./ Release [1673 B]
Get:18 http://us.archive.ubuntu.com precise/restricted Sources [5470 B]
Get:19 http://us.archive.ubuntu.com precise/universe Sources [5019 kB]
Get:20 http://security.ubuntu.com precise-security/restricted Sources [2494 B]
Get:21 http://security.ubuntu.com precise-security/universe Sources [27.7 kB]
Get:22 http://security.ubuntu.com precise-security/multiverse Sources [1383 B]
Get:23 http://security.ubuntu.com precise-security/main i386 Packages [311 kB]
Get:24 http://toolbelt.heroku.com ./ Packages [1043 B]
Ign http://ppa.launchpad.net precise/main Translation-en
Get:25 http://security.ubuntu.com precise-security/restricted i386 Packages [4620 B]
Get:26 http://security.ubuntu.com precise-security/universe i386 Packages [82.5 kB]
Get:27 http://security.ubuntu.com precise-security/multiverse i386 Packages [2371 B]
Get:28 http://security.ubuntu.com precise-security/main TranslationIndex [74 B]
Get:29 http://security.ubuntu.com precise-security/multiverse TranslationIndex [71 B]
Get:30 http://security.ubuntu.com precise-security/restricted TranslationIndex [72 B]
Get:31 http://security.ubuntu.com precise-security/universe TranslationIndex [73 B]
Get:32 http://us.archive.ubuntu.com precise/multiverse Sources [155 kB]
Get:33 http://us.archive.ubuntu.com precise/main i386 Packages [1274 kB]
Get:34 http://security.ubuntu.com precise-security/main Translation-en [144 kB]
Get:35 http://security.ubuntu.com precise-security/multiverse Translation-en [995 B]
Get:36 http://security.ubuntu.com precise-security/restricted Translation-en [1253 B]
Get:37 http://us.archive.ubuntu.com precise/restricted i386 Packages [8431 B]
Get:38 http://us.archive.ubuntu.com precise/universe i386 Packages [4796 kB]
Get:39 http://security.ubuntu.com precise-security/universe Translation-en [50.8 kB]
Get:40 http://us.archive.ubuntu.com precise/multiverse i386 Packages [121 kB]
Get:41 http://us.archive.ubuntu.com precise/main TranslationIndex [3706 B]
Get:42 http://us.archive.ubuntu.com precise/multiverse TranslationIndex [2676 B]
Get:43 http://us.archive.ubuntu.com precise/restricted TranslationIndex [2596 B]
Get:44 http://us.archive.ubuntu.com precise/universe TranslationIndex [2922 B]
Get:45 http://us.archive.ubuntu.com precise-updates/main Sources [410 kB]
Get:46 http://us.archive.ubuntu.com precise-updates/restricted Sources [5467 B]
Get:47 http://us.archive.ubuntu.com precise-updates/universe Sources [93.5 kB]
Get:48 http://us.archive.ubuntu.com precise-updates/multiverse Sources [6582 B]
Get:49 http://us.archive.ubuntu.com precise-updates/main i386 Packages [683 kB]
Get:50 http://us.archive.ubuntu.com precise-updates/restricted i386 Packages [10.0 kB]
Get:51 http://us.archive.ubuntu.com precise-updates/universe i386 Packages [214 kB]
Get:52 http://us.archive.ubuntu.com precise-updates/multiverse i386 Packages [13.8 kB]
Get:53 http://us.archive.ubuntu.com precise-updates/main TranslationIndex [3564 B]
Get:54 http://us.archive.ubuntu.com precise-updates/multiverse TranslationIndex [2605 B]
Get:55 http://us.archive.ubuntu.com precise-updates/restricted TranslationIndex [2461 B]
Get:56 http://us.archive.ubuntu.com precise-updates/universe TranslationIndex [2850 B]
Get:57 http://us.archive.ubuntu.com precise/main Translation-en [726 kB]
Get:58 http://us.archive.ubuntu.com precise/multiverse Translation-en [93.4 kB]
Get:59 http://us.archive.ubuntu.com precise/restricted Translation-en [2395 B]
Get:60 http://us.archive.ubuntu.com precise/universe Translation-en [3341 kB]
Ign http://toolbelt.heroku.com ./ Translation-en
Get:61 http://us.archive.ubuntu.com precise-updates/main Translation-en [302 kB]
Get:62 http://us.archive.ubuntu.com precise-updates/multiverse Translation-en [7834 B]
Get:63 http://us.archive.ubuntu.com precise-updates/restricted Translation-en [2432 B]
Get:64 http://us.archive.ubuntu.com precise-updates/universe Translation-en [124 kB]
Fetched 19.3 MB in 9s (2119 kB/s)
Reading package lists... Done

asterix:~ % sudo dpkg --configure -a
Setting up libssl1.0.0 (1.0.1-4ubuntu5.10) ...
Can't locate Tie/Hash.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl .) at /usr/lib/perl/5.14/POSIX.pm line 58.
BEGIN failed--compilation aborted at /usr/lib/perl/5.14/POSIX.pm line 58.
Compilation failed in require at /usr/share/perl5/Debconf/Template.pm line 7.
BEGIN failed--compilation aborted at /usr/share/perl5/Debconf/Template.pm line 7.
Compilation failed in require at /usr/share/perl5/Debconf/Question.pm line 8.
BEGIN failed--compilation aborted at /usr/share/perl5/Debconf/Question.pm line 8.
Compilation failed in require at /usr/share/perl5/Debconf/Config.pm line 7.
BEGIN failed--compilation aborted at /usr/share/perl5/Debconf/Config.pm line 7.
Compilation failed in require at /usr/share/perl5/Debconf/Log.pm line 10.
Compilation failed in require at /usr/share/perl5/Debconf/Db.pm line 7.
BEGIN failed--compilation aborted at /usr/share/perl5/Debconf/Db.pm line 7.
Compilation failed in require at /usr/share/debconf/frontend line 6.
BEGIN failed--compilation aborted at /usr/share/debconf/frontend line 6.
dpkg: error processing libssl1.0.0 (--configure):
 subprocess installed post-installation script returned error exit status 2
Setting up libdbus-1-3 (1.4.18-1ubuntu1.4) ...
Setting up libperl5.14 (5.14.2-6ubuntu2.3) ...
Setting up man-db (2.6.1-2) ...
Can't locate Tie/Hash.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl .) at /usr/lib/perl/5.14/POSIX.pm line 58.
BEGIN failed--compilation aborted at /usr/lib/perl/5.14/POSIX.pm line 58.
Compilation failed in require at /usr/share/perl5/Debconf/Template.pm line 7.
BEGIN failed--compilation aborted at /usr/share/perl5/Debconf/Template.pm line 7.
Compilation failed in require at /usr/share/perl5/Debconf/Question.pm line 8.
BEGIN failed--compilation aborted at /usr/share/perl5/Debconf/Question.pm line 8.
Compilation failed in require at /usr/share/perl5/Debconf/Config.pm line 7.
BEGIN failed--compilation aborted at /usr/share/perl5/Debconf/Config.pm line 7.
Compilation failed in require at /usr/share/perl5/Debconf/Log.pm line 10.
Compilation failed in require at /usr/share/perl5/Debconf/Db.pm line 7.
BEGIN failed--compilation aborted at /usr/share/perl5/Debconf/Db.pm line 7.
Compilation failed in require at /usr/share/debconf/frontend line 6.
BEGIN failed--compilation aborted at /usr/share/debconf/frontend line 6.
dpkg: error processing man-db (--configure):
 subprocess installed post-installation script returned error exit status 2
Setting up libgnutlsxx27 (2.12.14-5ubuntu3.4) ...
Setting up libcurl3-gnutls (7.22.0-3ubuntu4.2) ...
Setting up qemu-utils (1.0+noroms-0ubuntu14.10) ...
Setting up libdrm2 (2.4.43-0ubuntu0.0.2) ...
Setting up libdrm-nouveau1a (2.4.43-0ubuntu0.0.2) ...
Setting up libudev0 (175-0ubuntu9.3) ...
Setting up libc6-amd64 (2.15-0ubuntu10.4) ...
Setting up libc-dev-bin (2.15-0ubuntu10.4) ...
Setting up linux-libc-dev (3.2.0-49.75) ...
Setting up libdrm-radeon1 (2.4.43-0ubuntu0.0.2) ...
Setting up initramfs-tools-bin (0.99ubuntu13.1) ...
Setting up libgnutls-openssl27 (2.12.14-5ubuntu3.4) ...
Setting up libnih1 (1.0.3-4ubuntu9.1) ...
dpkg: dependency problems prevent configuration of libcurl4-gnutls-dev:
 libcurl4-gnutls-dev depends on libldap2-dev; however:
  Package libldap2-dev is not installed.
dpkg: error processing libcurl4-gnutls-dev (--configure):
 dependency problems - leaving unconfigured
Setting up libssl-doc (1.0.1-4ubuntu5.10) ...
dpkg: dependency problems prevent configuration of libssl-dev:
 libssl-dev depends on libssl1.0.0 (= 1.0.1-4ubuntu5.10); however:
  Package libssl1.0.0 is not configured yet.
dpkg: error processing libssl-dev (--configure):
 dependency problems - leaving unconfigured
Setting up libpciaccess0 (0.12.902-1ubuntu0.2) ...
Setting up libnih-dbus1 (1.0.3-4ubuntu9.1) ...
Setting up qemu-common (1.0+noroms-0ubuntu14.10) ...
Setting up initramfs-tools (0.99ubuntu13.1) ...
update-initramfs: deferring update (trigger activated)
Setting up libc6-dev (2.15-0ubuntu10.4) ...
Setting up upstart (1.5-0ubuntu7.2) ...
Setting up libdrm-intel1 (2.4.43-0ubuntu0.0.2) ...
Setting up libgnutls-dev (2.12.14-5ubuntu3.4) ...
Setting up libc6-dev-amd64 (2.15-0ubuntu10.4) ...
Setting up dmsetup (2:1.02.48-4ubuntu7.3) ...
update-initramfs: deferring update (trigger activated)
Setting up perl-modules (5.14.2-6ubuntu2.3) ...
Setting up libdevmapper1.02.1 (2:1.02.48-4ubuntu7.3) ...
Setting up perl (5.14.2-6ubuntu2.3) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.img-3.2.0-24-generic-pae
/usr/sbin/mkinitramfs: 64: .: Can't open /usr/share/initramfs-tools/hook-functions
Errors were encountered while processing:
 libssl1.0.0
 man-db
 libcurl4-gnutls-dev
 libssl-dev

asterix:~ % sudo dpkg --clear-avail
asterix:~ % LANG=C;sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  libicu48 libev4 libv8-3.7.12.22 libc-ares2
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  libldap2-dev
The following packages will be upgraded:
  libldap2-dev
1 upgraded, 0 newly installed, 0 to remove and 192 not upgraded.
5 not fully installed or removed.
Need to get 503 kB of archives.
After this operation, 5120 B of additional disk space will be used.
Do you want to continue [Y/n]? Y
Get:1 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main libldap2-dev i386 2.4.28-1.1ubuntu4.3 [503 kB]
Fetched 503 kB in 1s (413 kB/s)
E: Internal Error, No file name for libssl1.0.0

asterix:~ % LANG=C;sudo apt-get --fix-missing install
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
 libldap2-dev : Depends: libldap-2.4-2 (= 2.4.28-1.1ubuntu4.2) but 2.4.28-1.1ubuntu4.3 is installed
E: Unmet dependencies. Try using -f.

asterix:~ % LANG=C;sudo apt-get update -o APT::Cache-Limit=100000000 && sudo apt-get dist-upgrade
Ign http://cran.cnr.Berkeley.edu precise/ InRelease
Hit http://cran.cnr.Berkeley.edu precise/ Release.gpg
Ign http://us.archive.ubuntu.com precise InRelease
Ign http://us.archive.ubuntu.com precise-updates InRelease
Hit http://cran.cnr.Berkeley.edu precise/ Release
Ign http://security.ubuntu.com precise-security InRelease
Hit http://us.archive.ubuntu.com precise Release.gpg
Hit http://cran.cnr.Berkeley.edu precise/ Packages
Ign http://ppa.launchpad.net precise InRelease
Hit http://us.archive.ubuntu.com precise-updates Release.gpg
Hit http://security.ubuntu.com precise-security Release.gpg
Hit http://us.archive.ubuntu.com precise Release
Hit http://ppa.launchpad.net precise Release.gpg
Hit http://us.archive.ubuntu.com precise-updates Release
Ign http://toolbelt.heroku.com ./ InRelease
Hit http://security.ubuntu.com precise-security Release
Ign http://cran.cnr.Berkeley.edu precise/ Translation-en
Hit http://us.archive.ubuntu.com precise/main Sources
Hit http://us.archive.ubuntu.com precise/restricted Sources
Hit http://us.archive.ubuntu.com precise/universe Sources
Hit http://us.archive.ubuntu.com precise/multiverse Sources
Hit http://us.archive.ubuntu.com precise/main i386 Packages
Hit http://us.archive.ubuntu.com precise/restricted i386 Packages
Hit http://us.archive.ubuntu.com precise/universe i386 Packages
Hit http://us.archive.ubuntu.com precise/multiverse i386 Packages
Hit http://us.archive.ubuntu.com precise/main TranslationIndex
Hit http://us.archive.ubuntu.com precise/multiverse TranslationIndex
Hit http://ppa.launchpad.net precise Release
Hit http://us.archive.ubuntu.com precise/restricted TranslationIndex
Hit http://us.archive.ubuntu.com precise/universe TranslationIndex
Hit http://us.archive.ubuntu.com precise-updates/main Sources
Hit http://us.archive.ubuntu.com precise-updates/restricted Sources
Hit http://us.archive.ubuntu.com precise-updates/universe Sources
Hit http://security.ubuntu.com precise-security/main Sources
Hit http://ppa.launchpad.net precise/main Sources
Hit http://us.archive.ubuntu.com precise-updates/multiverse Sources
Hit http://us.archive.ubuntu.com precise-updates/main i386 Packages
Hit http://us.archive.ubuntu.com precise-updates/restricted i386 Packages
Hit http://us.archive.ubuntu.com precise-updates/universe i386 Packages
Hit http://us.archive.ubuntu.com precise-updates/multiverse i386 Packages
Hit http://security.ubuntu.com precise-security/restricted Sources
Hit http://security.ubuntu.com precise-security/universe Sources
Hit http://security.ubuntu.com precise-security/multiverse Sources
Hit http://security.ubuntu.com precise-security/main i386 Packages
Hit http://security.ubuntu.com precise-security/restricted i386 Packages
Hit http://security.ubuntu.com precise-security/universe i386 Packages
Hit http://security.ubuntu.com precise-security/multiverse i386 Packages
Hit http://security.ubuntu.com precise-security/main TranslationIndex
Hit http://security.ubuntu.com precise-security/multiverse TranslationIndex
Hit http://security.ubuntu.com precise-security/restricted TranslationIndex
Hit http://us.archive.ubuntu.com precise-updates/main TranslationIndex
Hit http://us.archive.ubuntu.com precise-updates/multiverse TranslationIndex
Hit http://us.archive.ubuntu.com precise-updates/restricted TranslationIndex
Hit http://us.archive.ubuntu.com precise-updates/universe TranslationIndex
Hit http://us.archive.ubuntu.com precise/main Translation-en
Hit http://ppa.launchpad.net precise/main i386 Packages
Ign http://ppa.launchpad.net precise/main TranslationIndex
Hit http://toolbelt.heroku.com ./ Release.gpg
Hit http://us.archive.ubuntu.com precise/multiverse Translation-en
Hit http://us.archive.ubuntu.com precise/restricted Translation-en
Hit http://us.archive.ubuntu.com precise/universe Translation-en
Hit http://security.ubuntu.com precise-security/universe TranslationIndex
Hit http://us.archive.ubuntu.com precise-updates/main Translation-en
Hit http://us.archive.ubuntu.com precise-updates/multiverse Translation-en
Hit http://us.archive.ubuntu.com precise-updates/restricted Translation-en
Hit http://us.archive.ubuntu.com precise-updates/universe Translation-en
Hit http://security.ubuntu.com precise-security/main Translation-en
Hit http://security.ubuntu.com precise-security/multiverse Translation-en
Hit http://security.ubuntu.com precise-security/restricted Translation-en
Hit http://toolbelt.heroku.com ./ Release
Hit http://security.ubuntu.com precise-security/universe Translation-en
Ign http://ppa.launchpad.net precise/main Translation-en
Hit http://toolbelt.heroku.com ./ Packages
Ign http://toolbelt.heroku.com ./ Translation-en
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
 libldap2-dev : Depends: libldap-2.4-2 (= 2.4.28-1.1ubuntu4.2) but 2.4.28-1.1ubuntu4.3 is installed
E: Unmet dependencies. Try using -f.

asterix:~ % find /etc/apt -name '*.list' -exec bash -c 'echo -e "\n$1\n"; cat -n "$1"' _ '{}' \;

/etc/apt/sources.list.d/chris-lea-node_js-precise.list

     1 deb http://ppa.launchpad.net/chris-lea/node.js/ubuntu precise main
     2 deb-src http://ppa.launchpad.net/chris-lea/node.js/ubuntu precise main

/etc/apt/sources.list.d/heroku.list

     1 deb http://toolbelt.heroku.com/ubuntu ./

/etc/apt/sources.list

     1 #
     2 # deb cdrom:[Ubuntu-Server 10.10 _Maverick Meerkat_ - Release i386 (20101007)]/ maverick main restricted
     3
     4 # deb cdrom:[Ubuntu-Server 10.10 _Maverick Meerkat_ - Release i386 (20101007)]/ maverick main restricted
     5 # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
     6 # newer versions of the distribution.
     7
     8 deb http://us.archive.ubuntu.com/ubuntu/ precise main restricted
     9 deb-src http://us.archive.ubuntu.com/ubuntu/ precise main restricted
    10
    11 ## Major bug fix updates produced after the final release of the
    12 ## distribution.
    13 deb http://us.archive.ubuntu.com/ubuntu/ precise-updates main restricted
    14 deb-src http://us.archive.ubuntu.com/ubuntu/ precise-updates main restricted
    15
    16 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
    17 ## team. Also, please note that software in universe WILL NOT receive any
    18 ## review or updates from the Ubuntu security team.
    19 deb http://us.archive.ubuntu.com/ubuntu/ precise universe
    20 deb-src http://us.archive.ubuntu.com/ubuntu/ precise universe
    21 deb http://us.archive.ubuntu.com/ubuntu/ precise-updates universe
    22 deb-src http://us.archive.ubuntu.com/ubuntu/ precise-updates universe
    23
    24 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
    25 ## team, and may not be under a free licence. Please satisfy yourself as to
    26 ## your rights to use the software. Also, please note that software in
    27 ## multiverse WILL NOT receive any review or updates from the Ubuntu
    28 ## security team.
    29 deb http://us.archive.ubuntu.com/ubuntu/ precise multiverse
    30 deb-src http://us.archive.ubuntu.com/ubuntu/ precise multiverse
    31 deb http://us.archive.ubuntu.com/ubuntu/ precise-updates multiverse
    32 deb-src http://us.archive.ubuntu.com/ubuntu/ precise-updates multiverse
    33
    34 ## Uncomment the following two lines to add software from the 'backports'
    35 ## repository.
    36 ## N.B. software from this repository may not have been tested as
    37 ## extensively as that contained in the main release, although it includes
    38 ## newer versions of some applications which may provide useful features.
    39 ## Also, please note that software in backports WILL NOT receive any review
    40 ## or updates from the Ubuntu security team.
    41 # deb http://us.archive.ubuntu.com/ubuntu/ maverick-backports main restricted universe multiverse
    42 # deb-src http://us.archive.ubuntu.com/ubuntu/ maverick-backports main restricted universe multiverse
    43
    44 ## Uncomment the following two lines to add software from Canonical's
    45 ## 'partner' repository.
    46 ## This software is not part of Ubuntu, but is offered by Canonical and the
    47 ## respective vendors as a service to Ubuntu users.
    48 # deb http://archive.canonical.com/ubuntu maverick partner
    49 # deb-src http://archive.canonical.com/ubuntu maverick partner
    50
    51 ## Uncomment the following two lines to add software from Ubuntu's
    52 ## 'extras' repository.
    53 ## This software is not part of Ubuntu, but is offered by third-party
    54 ## developers who want to ship their latest software.
    55 # deb http://extras.ubuntu.com/ubuntu maverick main
    56 # deb-src http://extras.ubuntu.com/ubuntu maverick main
    57
    58 deb http://security.ubuntu.com/ubuntu precise-security main restricted
    59 deb-src http://security.ubuntu.com/ubuntu precise-security main restricted
    60 deb http://security.ubuntu.com/ubuntu precise-security universe
    61 deb-src http://security.ubuntu.com/ubuntu precise-security universe
    62 deb http://security.ubuntu.com/ubuntu precise-security multiverse
    63 deb-src http://security.ubuntu.com/ubuntu precise-security multiverse
    64
    65 # Mirror for R
    66 deb http://cran.cnr.Berkeley.edu/bin/linux/ubuntu precise/
========================================================================
Based on the suggestions in https://answers.launchpad.net/ubuntu/+source/apt/+question/231831, I tried the following:

asterix:~ % apt-cache policy libldap-2.4-2 libldap-2.4-2:i386
libldap-2.4-2:
  Installed: 2.4.28-1.1ubuntu4.3
  Candidate: 2.4.28-1.1ubuntu4.3
  Version table:
 *** 2.4.28-1.1ubuntu4.3 0
        500 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main i386 Packages
        100 /var/lib/dpkg/status
     2.4.28-1.1ubuntu4 0
        500 http://us.archive.ubuntu.com/ubuntu/ precise/main i386 Packages
libldap-2.4-2:
  Installed: 2.4.28-1.1ubuntu4.3
  Candidate: 2.4.28-1.1ubuntu4.3
  Version table:
 *** 2.4.28-1.1ubuntu4.3 0
        500 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main i386 Packages
        100 /var/lib/dpkg/status
     2.4.28-1.1ubuntu4 0
        500 http://us.archive.ubuntu.com/ubuntu/ precise/main i386 Packages

No bugs reported that I know of.

asterix:~ % wget -c http://us.archive.ubuntu.com/ubuntu/pool/main/o/openldap/libldap-2.4-2_2.4.28-1.1ubuntu4.3_i386.deb
--2013-07-26 09:32:22-- http://us.archive.ubuntu.com/ubuntu/pool/main/o/openldap/libldap-2.4-2_2.4.28-1.1ubuntu4.3_i386.deb
Resolving us.archive.ubuntu.com (us.archive.ubuntu.com)... 91.189.91.15, 91.189.91.13, 91.189.91.14, ...
Connecting to us.archive.ubuntu.com (us.archive.ubuntu.com)|91.189.91.15|:80... connected.
HTTP request sent, awaiting response... 416 Requested Range Not Satisfiable

    The file is already fully retrieved; nothing to do.

I had run this and all other steps) previously. Running them again so I can capture the output.

asterix:~ % sudo dpkg -i ~/libldap-2.4-2_2.4.28-1.1ubuntu4.3_*.deb
[sudo] password for rajesh:
(Reading database ... 121260 files and directories currently installed.)
Preparing to replace libldap-2.4-2 2.4.28-1.1ubuntu4.3 (using .../libldap-2.4-2_2.4.28-1.1ubuntu4.3_i386.deb) ...
Unpacking replacement libldap-2.4-2 ...
Setting up libldap-2.4-2 (2.4.28-1.1ubuntu4.3) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place

asterix:~ % rm ~/libldap-2.4-2_2.4.28-1.1ubuntu4.3_*.deb
rm: remove write-protected regular file `/home/rajesh/libldap-2.4-2_2.4.28-1.1ubuntu4.3_i386.deb'? y
asterix:~ % sudo apt-get install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  libicu48 libev4 libv8-3.7.12.22 libc-ares2
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  libldap2-dev
The following packages will be upgraded:
  libldap2-dev
1 upgraded, 0 newly installed, 0 to remove and 192 not upgraded.
5 not fully installed or removed.
Need to get 0 B/503 kB of archives.
After this operation, 5120 B of additional disk space will be used.
Do you want to continue [Y/n]? Y
E: Internal Error, No file name for libssl1.0.0

Tried the modified command:
asterix:~ % wget -c http://us.archive.ubuntu.com/ubuntu/pool/main/o/openldap/libldap-2.4-2_2.4.28-1.1ubuntu4.3_i386.deb
--2013-07-26 09:36:54-- http://us.archive.ubuntu.com/ubuntu/pool/main/o/openldap/libldap-2.4-2_2.4.28-1.1ubuntu4.3_i386.deb
Resolving us.archive.ubuntu.com (us.archive.ubuntu.com)... 91.189.91.14, 91.189.91.15, 91.189.91.13, ...
Connecting to us.archive.ubuntu.com (us.archive.ubuntu.com)|91.189.91.14|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 185344 (181K) [application/x-debian-package]
Saving to: `libldap-2.4-2_2.4.28-1.1ubuntu4.3_i386.deb'

100%[================================================================================>] 185,344 248K/s in 0.7s

2013-07-26 09:36:55 (248 KB/s) - `libldap-2.4-2_2.4.28-1.1ubuntu4.3_i386.deb' saved [185344/185344]

asterix:~ % sudo dpkg -i --force-all ~/libldap-2.4-2_2.4.28-1.1ubuntu4.3_*.deb
(Reading database ... 121260 files and directories currently installed.)
Preparing to replace libldap-2.4-2 2.4.28-1.1ubuntu4.3 (using .../libldap-2.4-2_2.4.28-1.1ubuntu4.3_i386.deb) ...
Unpacking replacement libldap-2.4-2 ...
Setting up libldap-2.4-2 (2.4.28-1.1ubuntu4.3) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place

asterix:~ % rm ~/libldap-2.4-2_2.4.28-1.1ubuntu4.3_*.deb
rm: remove regular file `/home/rajesh/libldap-2.4-2_2.4.28-1.1ubuntu4.3_i386.deb'? y

asterix:~ % sudo apt-get install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  libicu48 libev4 libv8-3.7.12.22 libc-ares2
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  libldap2-dev
The following packages will be upgraded:
  libldap2-dev
1 upgraded, 0 newly installed, 0 to remove and 192 not upgraded.
5 not fully installed or removed.
Need to get 0 B/503 kB of archives.
After this operation, 5120 B of additional disk space will be used.
Do you want to continue [Y/n]? Y
E: Internal Error, No file name for libssl1.0.0

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu apt Edit question
Assignee:
No assignee Edit question
Solved by:
Rajesh M
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

Did you upgrade direct from Maverick to Precise or did you upgrade to the releases in between or did you clean install Precise?

Revision history for this message
Rajesh M (desidude) said :
#2

I upgraded from Lucid to Precise.

Revision history for this message
Manfred Hampl (m-hampl) said :
#3

The case in question #231831 was a bit different, so you need a bit different commands.

please provide the output of the command

apt-cache policy libldap2-dev libldap-2.4-2 libssl1.0.0

Revision history for this message
Rajesh M (desidude) said :
#4

Here is the output of running the above command:

asterix:~ % sudo apt-cache policy libldap2-dev libldap-2.4-2 libssl1.0.0
[sudo] password for rajesh:
libldap2-dev:
  Installed: 2.4.28-1.1ubuntu4.2
  Candidate: 2.4.28-1.1ubuntu4.3
  Version table:
     2.4.28-1.1ubuntu4.3 0
        500 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main i386 Packages
 *** 2.4.28-1.1ubuntu4.2 0
        100 /var/lib/dpkg/status
     2.4.28-1.1ubuntu4 0
        500 http://us.archive.ubuntu.com/ubuntu/ precise/main i386 Packages
libldap-2.4-2:
  Installed: 2.4.28-1.1ubuntu4.3
  Candidate: 2.4.28-1.1ubuntu4.3
  Version table:
 *** 2.4.28-1.1ubuntu4.3 0
        500 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main i386 Packages
        100 /var/lib/dpkg/status
     2.4.28-1.1ubuntu4 0
        500 http://us.archive.ubuntu.com/ubuntu/ precise/main i386 Packages
libssl1.0.0:
  Installed: 1.0.1-4ubuntu5.10
  Candidate: 1.0.1-4ubuntu5.10
  Version table:
 *** 1.0.1-4ubuntu5.10 0
        500 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main i386 Packages
        500 http://security.ubuntu.com/ubuntu/ precise-security/main i386 Packages
        100 /var/lib/dpkg/status
     1.0.1-4ubuntu3 0
        500 http://us.archive.ubuntu.com/ubuntu/ precise/main i386 Packages

Revision history for this message
Manfred Hampl (m-hampl) said :
#5

Try the following commands in a terminal:

cd
wget -c http://us.archive.ubuntu.com/ubuntu/pool/main/o/openldap/libldap2-dev_2.4.28-1.1ubuntu4.3_i386.deb
wget -c http://us.archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.0.0_1.0.1-4ubuntu5.10_i386.deb
sudo dpkg -i ~/libldap2-dev_2.4.28-1.1ubuntu4.3_i386.deb ~/libssl1.0.0_1.0.1-4ubuntu5.10_i386.deb
rm ~/libldap2-dev_2.4.28-1.1ubuntu4.3_i386.deb ~/libssl1.0.0_1.0.1-4ubuntu5.10_i386.deb
sudo apt-get install -f

and copy/paste all output into this question document as done before.

Revision history for this message
Rajesh M (desidude) said :
#6

Here it is:

asterix:~ % wget -c http://us.archive.ubuntu.com/ubuntu/pool/main/o/openldap/libldap2-dev_2.4.28-1.1ubuntu4.3_i386.deb
--2013-07-30 10:25:59-- http://us.archive.ubuntu.com/ubuntu/pool/main/o/openldap/libldap2-dev_2.4.28-1.1ubuntu4.3_i386.deb
Resolving us.archive.ubuntu.com (us.archive.ubuntu.com)... 91.189.91.14, 91.189.91.15, 91.189.91.13, ...
Connecting to us.archive.ubuntu.com (us.archive.ubuntu.com)|91.189.91.14|:80...connected.
HTTP request sent, awaiting response... 200 OK
Length: 503438 (492K) [application/x-debian-package]
Saving to: `libldap2-dev_2.4.28-1.1ubuntu4.3_i386.deb'

100%[======================================>] 503,438 429K/s in 1.1s

2013-07-30 10:26:01 (429 KB/s) - `libldap2-dev_2.4.28-1.1ubuntu4.3_i386.deb' saved [503438/503438]

asterix:~ % wget -c http://us.archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.0.0_1.0.1-4ubuntu5.10_i386.deb
--2013-07-30 10:28:10-- http://us.archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.0.0_1.0.1-4ubuntu5.10_i386.deb
Resolving us.archive.ubuntu.com (us.archive.ubuntu.com)... 91.189.91.13, 91.189.91.15, 91.189.91.14, ...
Connecting to us.archive.ubuntu.com (us.archive.ubuntu.com)|91.189.91.13|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1008434 (985K) [application/x-debian-package]
Saving to: `libssl1.0.0_1.0.1-4ubuntu5.10_i386.deb'

100%[=======================================================================================================>] 1,008,434 635K/s in 1.6s

2013-07-30 10:28:12 (635 KB/s) - `libssl1.0.0_1.0.1-4ubuntu5.10_i386.deb' saved [1008434/1008434]

asterix:~ % sudo dpkg -i ~/libldap2-dev_2.4.28-1.1ubuntu4.3_i386.deb ~/libssl1.0.0_1.0.1-4ubuntu5.10_i386.deb
[sudo] password for rajesh:
Selecting previously unselected package libldap2-dev.
(Reading database ... 121260 files and directories currently installed.)
Preparing to replace libldap2-dev 2.4.28-1.1ubuntu4.2 (using .../libldap2-dev_2.4.28-1.1ubuntu4.3_i386.deb) ...
Unpacking replacement libldap2-dev ...
Preparing to replace libssl1.0.0 1.0.1-4ubuntu5.10 (using .../libssl1.0.0_1.0.1-4ubuntu5.10_i386.deb) ...
Unpacking replacement libssl1.0.0 ...
Setting up libldap2-dev (2.4.28-1.1ubuntu4.3) ...
Setting up libssl1.0.0 (1.0.1-4ubuntu5.10) ...
Can't locate Tie/Hash.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl .) at /usr/lib/perl/5.14/POSIX.pm line 58.
BEGIN failed--compilation aborted at /usr/lib/perl/5.14/POSIX.pm line 58.
Compilation failed in require at /usr/share/perl5/Debconf/Template.pm line 7.
BEGIN failed--compilation aborted at /usr/share/perl5/Debconf/Template.pm line 7.
Compilation failed in require at /usr/share/perl5/Debconf/Question.pm line 8.
BEGIN failed--compilation aborted at /usr/share/perl5/Debconf/Question.pm line 8.
Compilation failed in require at /usr/share/perl5/Debconf/Config.pm line 7.
BEGIN failed--compilation aborted at /usr/share/perl5/Debconf/Config.pm line 7.
Compilation failed in require at /usr/share/perl5/Debconf/Log.pm line 10.
Compilation failed in require at /usr/share/perl5/Debconf/Db.pm line 7.
BEGIN failed--compilation aborted at /usr/share/perl5/Debconf/Db.pm line 7.
Compilation failed in require at /usr/share/debconf/frontend line 6.
BEGIN failed--compilation aborted at /usr/share/debconf/frontend line 6.
dpkg: error processing libssl1.0.0 (--install):
 subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
 libssl1.0.0

asterix:~ % rm ~/libldap2-dev_2.4.28-1.1ubuntu4.3_i386.deb ~/libssl1.0.0_1.0.1-4ubuntu5.10_i386.deb
rm: remove regular file `/home/rajesh/libldap2-dev_2.4.28-1.1ubuntu4.3_i386.deb'? y
rm: remove regular file `/home/rajesh/libssl1.0.0_1.0.1-4ubuntu5.10_i386.deb'? y

asterix:~ % sudo apt-get install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libicu48 libev4 libv8-3.7.12.22 libc-ares2
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 192 not upgraded.
4 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
E: Internal Error, No file name for libssl1.0.0

Revision history for this message
Manfred Hampl (m-hampl) said :
#7

It seems getting rid of the error messages "BEGIN failed--compilation aborted at *.pm" must be the first step

Try the following commands

which perl
dpkg -l | grep perl
sudo apt-get install --reinstall perl-base
sudo dpkg --configure -a

and copy/paste all output as done before.

Revision history for this message
Rajesh M (desidude) said :
#8

I did notice the failed compilation messages. Here is the output:
asterix:~ % which perl
/usr/bin/perl

asterix:~ % dpkg -l | grep perl
ii libalgorithm-diff-perl 1.19.02-2 module to find differences between files
ii libalgorithm-diff-xs-perl 0.04-2build2 module to find differences between files (XS accelerated)
ii libalgorithm-merge-perl 0.08-2 Perl module for three-way merge of textual data
ii libapparmor-perl 2.7.102-0ubuntu3.5 AppArmor library Perl bindings
ii libapt-pkg-perl 0.1.25build2 Perl interface to libapt-pkg
ii libclass-accessor-perl 0.34-1 Perl module that automatically generates accessors
ii libclass-factory-util-perl 1.7-2 Utility method for factory classes
ii libclass-isa-perl 0.36-3 report the search path for a class's ISA tree
ii libclass-load-perl 0.13-1 module for loading modules by name
ii libclass-singleton-perl 1.4-1 implementation of a "Singleton" class
ii libconfig-file-perl 1.50-2 Parses simple configuration files
ii libdata-optlist-perl 0.107-1 module to parse and validate simple name/value option pairs
ii libdatetime-format-builder-perl 0.8000-1 module to create DateTime parsers
ii libdatetime-format-iso8601-perl 0.07-1 module to parse ISO8601 date and time formats
ii libdatetime-format-strptime-perl 1.5000-1 Perl module to parse and format strp and strf time patterns
ii libdatetime-locale-perl 1:0.45-1 Perl extension providing localization support for DateTime
ii libdatetime-perl 2:0.7000-1build1 module for manipulating dates, times and timestamps
ii libdatetime-timezone-perl 1:1.42-1+2011nubuntu1 framework exposing the Olson time zone database to Perl
ii libdpkg-perl 1.16.1.2ubuntu7 Dpkg perl modules
ii libencode-locale-perl 1.02-2 utility to determine the locale encoding
ii liberror-perl 0.17-1 Perl module for error/exception handling in an OO-ish way
ii libfile-basedir-perl 0.03-1fakesync1 Perl module to use the freedesktop basedir specification
ii libfile-copy-recursive-perl 0.38-1 Perl extension for recursively copying files and directories
ii libfile-desktopentry-perl 0.04-3 Perl module to handle freedesktop .desktop files
ii libfile-listing-perl 6.03-1 module to parse directory listings
ii libfile-mimeinfo-perl 0.15-2 Perl module to determine file types
ii libfont-afm-perl 1.20-1 Font::AFM - Interface to Adobe Font Metrics files
ii libhtml-form-perl 6.00-1 module that represents an HTML form element
ii libhtml-format-perl 2.10-1 module for transforming HTML into various formats
ii libhtml-parser-perl 3.69-1build1 collection of modules that parse HTML text documents
ii libhtml-tagset-perl 3.20-2 Data tables pertaining to HTML
ii libhtml-tree-perl 4.2-1 Perl module to represent and create HTML syntax trees
ii libhttp-cookies-perl 6.00-2 HTTP cookie jars
ii libhttp-daemon-perl 6.00-1 simple http server class
ii libhttp-date-perl 6.00-1 module of date conversion routines
ii libhttp-message-perl 6.01-1 perl interface to HTTP style messages
ii libhttp-negotiate-perl 6.00-2 implementation of content negotiation
ii libio-socket-inet6-perl 2.69-2 object interface for AF_INET6 domain sockets
ii libio-socket-ssl-perl 1.53-1 Perl module implementing object oriented interface to SSL sockets
ii libio-string-perl 1.08-2 Emulate IO::File interface for in-core strings
ii liblist-moreutils-perl 0.33-1build1 Perl module with additional list functions not found in List::Util
ii liblocale-gettext-perl 1.05-7build1 module using libc functions for internationalization in Perl
ii liblwp-mediatypes-perl 6.01-1 module to guess media type for a file or a URL
ii liblwp-protocol-https-perl 6.02-1 https driver for LWP::UserAgent
ii libmailtools-perl 2.08-1 Manipulate email in perl programs
ii libmath-round-perl 0.06-3 Perl extension for rounding numbers
ii libmodule-runtime-perl 0.011-1 Perl module for runtime module handling
ii libnet-http-perl 6.02-1 module providing low-level HTTP connection client
ii libnet-ssleay-perl 1.42-1build1 Perl module for Secure Sockets Layer (SSL)
ii libpackage-deprecationmanager-perl 0.11-1 Manage deprecation warnings for your distribution
ii libpackage-stash-perl 0.33-1 module providing routines for manipulating stashes
ii libpackage-stash-xs-perl 0.24-1build1 Perl module providing routines for manipulating stashes (XS version)
ii libparams-classify-perl 0.013-4 Perl module for argument type classification
ii libparams-util-perl 1.04-1build1 Perl extension for simple stand-alone param checking functions
ii libparams-validate-perl 0.97-1build2 Perl module to validate parameters to Perl method/function calls
ii libparse-debianchangelog-perl 1.2.0-1ubuntu1 parse Debian changelogs and output them in other formats
ii libperl5.14 5.14.2-6ubuntu2.3 shared Perl library
ii libpod-plainer-perl 1.03-1 Perl extension for converting Pod to old-style Pod.
ii libregexp-assemble-perl 0.35-2 Assemble multiple Regular Expressions into a single RE
ii librpc-xml-perl 0.76-1 Perl implementation of the XML-RPC protocol
ii libsocket6-perl 0.23-1build2 Perl extensions for IPv6
ii libsub-install-perl 0.925-1 module for installing subroutines into packages easily
ii libsub-name-perl 0.05-1build2 module for assigning a new name to referenced sub
ii libswitch-perl 2.16-2 switch statement for Perl
ii libterm-readkey-perl 2.30-4build3 A perl module for simple terminal control
ii libtext-charwidth-perl 0.04-7build1 get display widths of characters on the terminal
ii libtext-iconv-perl 1.7-5 converts between character sets in Perl
ii libtext-wrapi18n-perl 0.06-7 internationalized substitute of Text::Wrap
ii libtimedate-perl 1.2000-1 collection of modules to manipulate date/time information
ii libtry-tiny-perl 0.11-1 module providing minimalistic try/catch
ii liburi-perl 1.59-1 module to manipulate and access URI strings
ii libwww-perl 6.03-1 simple and consistent interface to the world-wide web
ii libwww-robotrules-perl 6.01-1 database of robots.txt-derived permissions
ii libxml-parser-perl 2.41-1build1 Perl module for parsing XML files
ii perl 5.14.2-6ubuntu2.3 Larry Wall's Practical Extraction and Report Language
ii perl-base 5.14.2-6ubuntu2.3 minimal Perl system
ii perl-modules 5.14.2-6ubuntu2.3 Core Perl modules

Getting an error at the next step and unable to reinstall perl:
asterix:~ % sudo apt-get install --reinstall perl-base
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libicu48 libev4 libv8-3.7.12.22 libc-ares2
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 192 not upgraded.
4 not fully installed or removed.
Need to get 1,471 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main perl-base i386 5.14.2-6ubuntu2.3 [1,471 kB]
Fetched 1,471 kB in 1s (772 kB/s)
E: Internal Error, No file name for libssl1.0.0

asterix:~ % sudo dpkg --configure -a
Setting up libssl1.0.0 (1.0.1-4ubuntu5.10) ...
Can't locate Tie/Hash.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl .) at /usr/lib/perl/5.14/POSIX.pm line 58.
BEGIN failed--compilation aborted at /usr/lib/perl/5.14/POSIX.pm line 58.
Compilation failed in require at /usr/share/perl5/Debconf/Template.pm line 7.
BEGIN failed--compilation aborted at /usr/share/perl5/Debconf/Template.pm line 7.
Compilation failed in require at /usr/share/perl5/Debconf/Question.pm line 8.
BEGIN failed--compilation aborted at /usr/share/perl5/Debconf/Question.pm line 8.
Compilation failed in require at /usr/share/perl5/Debconf/Config.pm line 7.
BEGIN failed--compilation aborted at /usr/share/perl5/Debconf/Config.pm line 7.
Compilation failed in require at /usr/share/perl5/Debconf/Log.pm line 10.
Compilation failed in require at /usr/share/perl5/Debconf/Db.pm line 7.
BEGIN failed--compilation aborted at /usr/share/perl5/Debconf/Db.pm line 7.
Compilation failed in require at /usr/share/debconf/frontend line 6.
BEGIN failed--compilation aborted at /usr/share/debconf/frontend line 6.
dpkg: error processing libssl1.0.0 (--configure):
 subprocess installed post-installation script returned error exit status 2
Setting up man-db (2.6.1-2) ...
Can't locate Tie/Hash.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl .) at /usr/lib/perl/5.14/POSIX.pm line 58.
BEGIN failed--compilation aborted at /usr/lib/perl/5.14/POSIX.pm line 58.
Compilation failed in require at /usr/share/perl5/Debconf/Template.pm line 7.
BEGIN failed--compilation aborted at /usr/share/perl5/Debconf/Template.pm line 7.
Compilation failed in require at /usr/share/perl5/Debconf/Question.pm line 8.
BEGIN failed--compilation aborted at /usr/share/perl5/Debconf/Question.pm line 8.
Compilation failed in require at /usr/share/perl5/Debconf/Config.pm line 7.
BEGIN failed--compilation aborted at /usr/share/perl5/Debconf/Config.pm line 7.
Compilation failed in require at /usr/share/perl5/Debconf/Log.pm line 10.
Compilation failed in require at /usr/share/perl5/Debconf/Db.pm line 7.
BEGIN failed--compilation aborted at /usr/share/perl5/Debconf/Db.pm line 7.
Compilation failed in require at /usr/share/debconf/frontend line 6.
BEGIN failed--compilation aborted at /usr/share/debconf/frontend line 6.
dpkg: error processing man-db (--configure):
 subprocess installed post-installation script returned error exit status 2
Setting up libcurl4-gnutls-dev (7.22.0-3ubuntu4.2) ...
dpkg: dependency problems prevent configuration of libssl-dev:
 libssl-dev depends on libssl1.0.0 (= 1.0.1-4ubuntu5.10); however:
  Package libssl1.0.0 is not configured yet.
dpkg: error processing libssl-dev (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 libssl1.0.0
 man-db
 libssl-dev

Revision history for this message
Manfred Hampl (m-hampl) said :
#9

The perl-base reinstallation has not worked with apt-get, try it with dpkg:

sudo dpkg -i /var/cache/apt/archives/perl-base_5.14.2-6ubuntu2.3_i386.deb
sudo dpkg --configure -a

and copy/paste all output as done before.

Revision history for this message
Rajesh M (desidude) said :
#10

No errors this time.

asterix:~ % sudo dpkg -i /var/cache/apt/archives/perl-base_5.14.2-6ubuntu2.3_i386.deb
[sudo] password for rajesh:
(Reading database ... 121260 files and directories currently installed.)
Preparing to replace perl-base 5.14.2-6ubuntu2.3 (using .../perl-base_5.14.2-6ubuntu2.3_i386.deb) ...
Unpacking replacement perl-base ...
Setting up perl-base (5.14.2-6ubuntu2.3) ...

asterix:~ % sudo dpkg --configure -a
Setting up libssl1.0.0 (1.0.1-4ubuntu5.10) ...
Setting up man-db (2.6.1-2) ...
Updating database of manual pages ...
Setting up libssl-dev (1.0.1-4ubuntu5.10) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place

I did an update followed by an upgrade and it worked.

Thanks for your help.