Cannot update/upgrade packages, reports error with libldap-2.4.2 and libssl.1.0
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:/
sudo dpkg -i ~/libldap-
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:/
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_
DISTRIB_
DISTRIB_
asterix:~ % uname -a
Linux asterix 3.2.0-24-
asterix:~ % sudo rm /var/lib/
asterix:~ % sudo rm /var/lib/dpkg/lock
asterix:~ % sudo cp -arf /var/lib/dpkg /var/lib/
asterix:~ % sudo mv /var/lib/
asterix:~ % sudo cp /var/lib/
asterix:~ % sudo mv /var/lib/
asterix:~ % sudo cp /var/lib/
asterix:~ % sudo rm -rf /var/lib/
asterix:~ % sudo rm -rf /var/lib/apt/lists
asterix:~ % sudo rm /var/cache/
asterix:~ % sudo mkdir /var/lib/apt/lists
asterix:~ % sudo mkdir /var/lib/
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-
E: Unmet dependencies. Try using -f.
asterix:~ % LANG=C;sudo apt-get --fix-missing update -o APT::Cache-
Ign http://
Get:1 http://
Ign http://
Ign http://
Get:2 http://
Get:3 http://
Get:4 http://
Ign http://
Ign http://
Get:5 http://
Ign http://
Get:6 http://
Get:7 http://
Get:8 http://
Get:9 http://
Get:10 http://
Ign http://
Get:11 http://
Get:12 http://
Get:13 http://
Get:14 http://
Get:15 http://
Get:16 http://
Ign http://
Get:17 http://
Get:18 http://
Get:19 http://
Get:20 http://
Get:21 http://
Get:22 http://
Get:23 http://
Get:24 http://
Ign http://
Get:25 http://
Get:26 http://
Get:27 http://
Get:28 http://
Get:29 http://
Get:30 http://
Get:31 http://
Get:32 http://
Get:33 http://
Get:34 http://
Get:35 http://
Get:36 http://
Get:37 http://
Get:38 http://
Get:39 http://
Get:40 http://
Get:41 http://
Get:42 http://
Get:43 http://
Get:44 http://
Get:45 http://
Get:46 http://
Get:47 http://
Get:48 http://
Get:49 http://
Get:50 http://
Get:51 http://
Get:52 http://
Get:53 http://
Get:54 http://
Get:55 http://
Get:56 http://
Get:57 http://
Get:58 http://
Get:59 http://
Get:60 http://
Ign http://
Get:61 http://
Get:62 http://
Get:63 http://
Get:64 http://
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/
BEGIN failed--compilation aborted at /usr/lib/
Compilation failed in require at /usr/share/
BEGIN failed--compilation aborted at /usr/share/
Compilation failed in require at /usr/share/
BEGIN failed--compilation aborted at /usr/share/
Compilation failed in require at /usr/share/
BEGIN failed--compilation aborted at /usr/share/
Compilation failed in require at /usr/share/
Compilation failed in require at /usr/share/
BEGIN failed--compilation aborted at /usr/share/
Compilation failed in require at /usr/share/
BEGIN failed--compilation aborted at /usr/share/
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/
BEGIN failed--compilation aborted at /usr/lib/
Compilation failed in require at /usr/share/
BEGIN failed--compilation aborted at /usr/share/
Compilation failed in require at /usr/share/
BEGIN failed--compilation aborted at /usr/share/
Compilation failed in require at /usr/share/
BEGIN failed--compilation aborted at /usr/share/
Compilation failed in require at /usr/share/
Compilation failed in require at /usr/share/
BEGIN failed--compilation aborted at /usr/share/
Compilation failed in require at /usr/share/
BEGIN failed--compilation aborted at /usr/share/
dpkg: error processing man-db (--configure):
subprocess installed post-installation script returned error exit status 2
Setting up libgnutlsxx27 (2.12.14-
Setting up libcurl3-gnutls (7.22.0-3ubuntu4.2) ...
Setting up qemu-utils (1.0+noroms-
Setting up libdrm2 (2.4.43-
Setting up libdrm-nouveau1a (2.4.43-
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-
Setting up initramfs-tools-bin (0.99ubuntu13.1) ...
Setting up libgnutls-openssl27 (2.12.14-
Setting up libnih1 (1.0.3-4ubuntu9.1) ...
dpkg: dependency problems prevent configuration of libcurl4-
libcurl4-
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-
Setting up libnih-dbus1 (1.0.3-4ubuntu9.1) ...
Setting up qemu-common (1.0+noroms-
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-
Setting up libgnutls-dev (2.12.14-
Setting up libc6-dev-amd64 (2.15-0ubuntu10.4) ...
Setting up dmsetup (2:1.02.
update-initramfs: deferring update (trigger activated)
Setting up perl-modules (5.14.2-6ubuntu2.3) ...
Setting up libdevmapper1.02.1 (2:1.02.
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.
/usr/sbin/
Errors were encountered while processing:
libssl1.0.0
man-db
libcurl4-
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://
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-
E: Unmet dependencies. Try using -f.
asterix:~ % LANG=C;sudo apt-get update -o APT::Cache-
Ign http://
Hit http://
Ign http://
Ign http://
Hit http://
Ign http://
Hit http://
Hit http://
Ign http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Ign http://
Hit http://
Ign http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Ign http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Ign http://
Hit http://
Ign http://
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-
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/
1 deb http://
2 deb-src http://
/etc/apt/
1 deb http://
/etc/apt/
1 #
2 # deb cdrom:[
3
4 # deb cdrom:[
5 # See http://
6 # newer versions of the distribution.
7
8 deb http://
9 deb-src http://
10
11 ## Major bug fix updates produced after the final release of the
12 ## distribution.
13 deb http://
14 deb-src http://
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://
20 deb-src http://
21 deb http://
22 deb-src http://
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://
30 deb-src http://
31 deb http://
32 deb-src http://
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://
42 # deb-src http://
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://
49 # deb-src http://
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://
56 # deb-src http://
57
58 deb http://
59 deb-src http://
60 deb http://
61 deb-src http://
62 deb http://
63 deb-src http://
64
65 # Mirror for R
66 deb http://
=======
Based on the suggestions in https:/
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://
100 /var/lib/
2.
500 http://
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://
100 /var/lib/
2.
500 http://
No bugs reported that I know of.
asterix:~ % wget -c http://
--2013-07-26 09:32:22-- http://
Resolving us.archive.
Connecting to us.archive.
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-
[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-
Unpacking replacement libldap-2.4-2 ...
Setting up libldap-2.4-2 (2.4.28-
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
asterix:~ % rm ~/libldap-
rm: remove write-protected regular file `/home/
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://
--2013-07-26 09:36:54-- http://
Resolving us.archive.
Connecting to us.archive.
HTTP request sent, awaiting response... 200 OK
Length: 185344 (181K) [application/
Saving to: `libldap-
100%[==
2013-07-26 09:36:55 (248 KB/s) - `libldap-
asterix:~ % sudo dpkg -i --force-all ~/libldap-
(Reading database ... 121260 files and directories currently installed.)
Preparing to replace libldap-2.4-2 2.4.28-1.1ubuntu4.3 (using .../libldap-
Unpacking replacement libldap-2.4-2 ...
Setting up libldap-2.4-2 (2.4.28-
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
asterix:~ % rm ~/libldap-
rm: remove regular file `/home/
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: