LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Thread Tools
Old 04-16-2004, 08:15 PM   #1
Bookspoppa
LQ Newbie
 
Registered: Apr 2004
Posts: 6
Thanked: 0
Sub-Process /usr/bin/dpkg returned an error code (1)


[Log in to get rid of this advertisement]
I just installed Debian, and I am upgrading to unstable. When I do the command apt-get upgrade I recieve the an error saying Sub-Process /usr/bin/dpkg returned an error code (1).

this is the the screen leading up to the error:

Preparing to replace console-common 0.7.38 (using .../console-common_0.7.40_all.deb) ...
dpkg: error processing /var/cache/apt/archives/console-common_0.7.40_all.deb (--unpack):
subprocess pre-installation script returned error exit status 9
Loading /etc/console/boottime.kmap.gz
Preparing to replace libkrb53 1.3.2-2 (using .../libkrb53_1.3.3-1_i386.deb) ...
Unpacking replacement libkrb53
Preparing to replace libpam-runtime 0.76-16 (using .../libpam-runtime_0.76-19_all.deb) ...
Unpacking replacement libpam-runtime ...
Errors were encountered while processing:
/var/cache/apt/archives/console-common_0.7.40_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

I am a newbie, so please be specific in your reply. Thanks a lot for your help in advance.
Bookspoppa is offline     Reply With Quote
Old 04-16-2004, 10:11 PM   #2
CBlue
Member
 
Registered: Mar 2004
Location: South Carolina, USA
Distribution: Mepis
Posts: 287
Thanked: 0
After you get that error, try apt-get -f install to force an install of the files that didn't get loaded because of the error. Then try apt-get upgrade again, apt-get -f install back and forth until only the package that has the error is left.
CBlue is offline     Reply With Quote
Old 04-17-2004, 05:02 AM   #3
Bookspoppa
LQ Newbie
 
Registered: Apr 2004
Posts: 6
Thanked: 0

Original Poster
thanks a lot. that worked.
Bookspoppa is offline     Reply With Quote
Old 04-17-2004, 08:22 AM   #4
souljah
Member
 
Registered: Feb 2004
Location: New York City
Distribution: Debian
Posts: 97
Thanked: 0
If you are going to be using debian unstable (sid) it is inherently necessary to read the manpage for dpkg and apt-get. This was just a small taste of what can go wrong with sid
souljah is offline     Reply With Quote
Old 04-17-2004, 11:42 AM   #5
CBlue
Member
 
Registered: Mar 2004
Location: South Carolina, USA
Distribution: Mepis
Posts: 287
Thanked: 0
I love Sid though! It's fun!
CBlue is offline     Reply With Quote
Old 01-31-2008, 07:20 AM   #6
feral-deb
LQ Newbie
 
Registered: Jan 2008
Posts: 1
Thanked: 1
I had a similar problem and what i found that worked for me was going into /var/lib/dpkg/info and deleting everything that had that name and you may also have to go into /var/cache/apt/archives and do the same thing. I'm fairly new to linux so if this breaks anything i am sorry. i haven't run into any problems yet that this has caused.
feral-deb is offline     Reply With Quote
Thanked by:
Old 04-19-2008, 11:00 AM   #7
mrcheeks
Senior Member
 
Registered: Mar 2004
Location: far enough
Distribution: Snow Leopard, FreeBSD, Linux distros.
Posts: 1,689
Thanked: 1
For new users, IMHO it's easier to go on with stable or testing instead of unstable.
mrcheeks is offline     Reply With Quote
Old 01-25-2009, 01:42 PM   #8
spinstartshere
LQ Newbie
 
Registered: Jan 2009
Posts: 1
Thanked: 0
Smile

Thank you, feral-deb. Your comment helped me with a somewhat chronic problem I was having with a package on Ubuntu.
spinstartshere is offline     Reply With Quote
Old 04-18-2009, 06:01 PM   #9
elaterite
LQ Newbie
 
Registered: Nov 2007
Location: Reno, NV
Distribution: Kubuntu
Posts: 4
Thanked: 0
feral-deb you're a genius! Thanks!
elaterite is offline     Reply With Quote
Old 10-03-2009, 07:04 PM   #10
Trebour
LQ Newbie
 
Registered: Oct 2009
Posts: 1
Thanked: 0
Quote:
Originally Posted by feral-deb View Post
I had a similar problem and what i found that worked for me was going into /var/lib/dpkg/info and deleting everything that had that name and you may also have to go into /var/cache/apt/archives and do the same thing. I'm fairly new to linux so if this breaks anything i am sorry. i haven't run into any problems yet that this has caused.


Dude you helped me out big time i was tring to install torrentflux-b4rt and got same error after using your clean up help it installed perfectly many thanks
windows_vista Trebour is offline     Reply With Quote
Old 11-12-2009, 12:51 AM   #11
riazrahaman
LQ Newbie
 
Registered: Oct 2004
Posts: 1
Thanked: 0
Thanks feral-deb, your instructions worked perfectly for me.
linux riazrahaman is offline     Reply With Quote
Old 11-12-2009, 02:48 AM   #12
evo2
Member
 
Registered: Jan 2009
Location: Japan
Distribution: Debian
Posts: 217
Thanked: 27
Quote:
Originally Posted by feral-deb View Post
I had a similar problem and what i found that worked for me was going into /var/lib/dpkg/info and deleting everything that had that name
You deleted the pre and post install scripts. This can very easily mean that the package will not be installed properly, and it won't be removed properly if you choose to uninstall it. It is THE WRONG THING to do.

Using 'apt-get -f install' and/or 'dpkg --configure --pending' are what you should do. If your problems persist, try to read and understand the .postinst script for the problematic package and check for bugs reported against that packge. Failing that, ask for help and/or report a bug.

If you are running sid, you should be prepared to do these sorts of things.
Quote:
and you may also have to go into /var/cache/apt/archives and do the same thing. I'm fairly new to linux so if this breaks anything i am sorry. i haven't run into any problems yet that this has caused.
This is where the .deb files that apt downloads are put, after installation, you can delete them, but you should do it with the command 'apt-get clean'.

Evo2.

Last edited by evo2; 11-12-2009 at 02:56 AM.. Reason: Typo
linuxdebian evo2 is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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
Sendmail returned error code 111 newlinuxgeek Linux - Software 1 02-14-2008 03:16 AM
dpkg returned an error code (1) Segmentation fault questionman Debian 6 11-02-2004 01:04 AM
Sub-process /bin/rpm returned an error code (255) during uninstall with synaptic DraaX Linux - Newbie 2 02-10-2004 03:05 AM
Synaptic error: "sub-process /usr/bin/dpkg returned an error code (2)" firefly2442 Linux - Software 3 02-04-2004 07:41 PM
The program returned an error code (3) Omega Linux - Software 1 05-04-2003 10:47 PM


All times are GMT -5. The time now is 01:03 AM.

Main Menu
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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration