LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-30-2013, 12:14 AM   #1
tknpz
LQ Newbie
 
Registered: May 2013
Posts: 5

Rep: Reputation: Disabled
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)
 
Old 05-30-2013, 01:41 AM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
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.
 
Old 05-30-2013, 08:30 AM   #3
tknpz
LQ Newbie
 
Registered: May 2013
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by evo2 View Post
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, #!
 
Old 05-30-2013, 07:39 PM   #4
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
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.
 
Old 05-30-2013, 08:48 PM   #5
Hungry ghost
Senior Member
 
Registered: Dec 2004
Posts: 1,222

Rep: Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667
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.

Last edited by Hungry ghost; 05-30-2013 at 09:06 PM.
 
  


Reply

Tags
error, linux, packages


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
E:sub-process /usr/bin/dpkg returned an error code (2) elvisvite Linux - Software 0 12-11-2012 05:44 AM
E: Sub-process /usr/bin/dpkg returned an error code (1) Sipps123 Linux - Newbie 3 12-11-2011 11:11 PM
Sub-Process /usr/bin/dpkg returned an error code thoufiq Linux - Server 1 04-30-2011 10:29 PM
E: Sub-process /usr/bin/dpkg returned an error code (1) ashwani.sahni Ubuntu 1 05-14-2010 08:43 AM
Sub-process /usr/bin/dpkg returned an error code (1) rapattack Debian 10 04-24-2008 11:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:08 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration