LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Cannot install packages. E: Sub-process /usr/bin/dpkg returned an error code (1) (https://www.linuxquestions.org/questions/linux-software-2/cannot-install-packages-e-sub-process-usr-bin-dpkg-returned-an-error-code-1-a-4175464040/)

tknpz 05-30-2013 12:14 AM

Cannot install packages. E: Sub-process /usr/bin/dpkg returned an error code (1)
 
Here is what is happening when I try to install mpd.

note; I have googled so much about this. I have tried so many things. none of them worked
Code:

apt-get update

apt-get -f install

dpkg --configure --pending

Anyway, this is the output when I try to install mpd

Code:

sudo apt-get install mpd
Reading package lists... Done
Building dependency tree     
Reading state information... Done
Suggested packages:
  icecast2 mpd-client
The following packages will be REMOVED:
  libexempi3 libgjs0b libjthread1.3.1 libtracker-sparql-0.14-0
The following NEW packages will be installed:
  mpd
0 upgraded, 1 newly installed, 4 to remove and 63 not upgraded.
18 not fully installed or removed.
Need to get 224 kB of archives.
After this operation, 2,711 kB disk space will be freed.
Do you want to continue [Y/n]? y
Get:1 http://http.debian.net/debian/ wheezy/main mpd amd64 0.16.7-2+b1 [224 kB]
Fetched 224 kB in 1s (179 kB/s)
(Reading database ... 117322 files and directories currently installed.)
Removing libexempi3:amd64 ...
ldconfig: Writing of cache data failed: No such file or directory
dpkg: error processing libexempi3:amd64 (--remove):
 subprocess installed post-removal script returned error exit status 1
Removing libgjs0b ...
ldconfig: Writing of cache data failed: No such file or directory
dpkg: error processing libgjs0b (--remove):
 subprocess installed post-removal script returned error exit status 1
Removing libjthread1.3.1 ...
ldconfig: Writing of cache data failed: No such file or directory
dpkg: error processing libjthread1.3.1 (--remove):
 subprocess installed post-removal script returned error exit status 1
Removing libtracker-sparql-0.14-0 ...
ldconfig: Writing of cache data failed: No such file or directory
dpkg: error processing libtracker-sparql-0.14-0 (--remove):
 subprocess installed post-removal script returned error exit status 1
Errors were encountered while processing:
 libexempi3:amd64
 libgjs0b
 libjthread1.3.1
 libtracker-sparql-0.14-0
E: Sub-process /usr/bin/dpkg returned an error code (1)

I cannot sudo apt-get purge libgjs0b (or any of the others that are giving me errors)

evo2 05-30-2013 01:41 AM

Hi,

the error seems to be coming from ldconfig (called when shared libraries are added or removed). It is complaing that the cache file is missing. From the ldconfig man page I see that that file should be /etc/ld.so.cache. Can you confirm the file is there? Also what happens if you run "ldconfig --verbose" as root from the commandline?

Evo2.

tknpz 05-30-2013 08:30 AM

Quote:

Originally Posted by evo2 (Post 4961831)
Hi,

the error seems to be coming from ldconfig (called when shared libraries are added or removed). It is complaing that the cache file is missing. From the ldconfig man page I see that that file should be /etc/ld.so.cache. Can you confirm the file is there? Also what happens if you run "ldconfig --verbose" as root from the commandline?

Evo2.

/etc/ld.so.cache is there

When I run ldconfig --verbose, a lot prints out.

Mainly somethingfile -> somethingfile

However, at the very end, this is printed

ldconfig: Writing of cache data failed: No such file or directory

I am on debian, and more specifically, #!

evo2 05-30-2013 07:39 PM

Hi,

a bit of a search indicates the error reporting from ldconfig can be missleading, and the message you see can be caused by a number of different things. Can you confirm that your partition is not full? Eg:
Code:

df -h
Evo2.

Hungry ghost 05-30-2013 08:48 PM

Besides checking if your partition is full, as evo2 suggested, you can execute dpkg with the --debug option, like this:

Code:

dpkg --debug=1000 -i /var/cache/apt/archives/libgjs0b*.deb
Might give more info about the error.


All times are GMT -5. The time now is 02:17 AM.