Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > Your Distro > Debian Linux Help > subprocess /usr/bin/dpkg returned an error code (1)
 Debian Linux Help   Discussions related to Debian GNU/Linux.

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 10-29-2008   #1 (permalink)
Just Joined!
 
Join Date: Oct 2008
Posts: 23
subprocess /usr/bin/dpkg returned an error code (1)

Hi

i tried to do apt-get dist-upgrade on my nokia n810
but that returns errors too...what does error code (1) even mean?

this is what i get
apt-get dist-upgrade
Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done The following NEW packages will be installed:
bash e2fslibs e2fsprogs libacl1 libattr1
libblkid1 libcomerr2 libss2 libuuid1
ncurses-base ncurses-bin slang1a-utf8
0 upgraded, 12 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/2019kB of archives.
After unpacking 5083kB of additional disk space will be used.
Do you want to continue [Y/n]? y
WARNING: The following packages cannot be authenticated!
bash e2fslibs libblkid1 libcomerr2 libss2
libuuid1 e2fsprogs ncurses-bin ncurses-base
libattr1 libacl1 slang1a-utf8
Install these packages without verification [y/N]? y (Reading database ... 17302 files and directories currently installed.) Unpacking bash (from .../bash_2.05b-26osso2_armel.deb) ...
dpkg: error processing /var/cache/apt/archives/bash_2.05b-26osso2_armel.deb
(--unpack):
trying to overwrite `/bin/sh', which is also in package busybox Errors were encountered while processing:
/var/cache/apt/archives/bash_2.05b-26osso2_armel.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

can any1 (please*10^10) help me get rid of this error??

thanks
unnati
unnati is offline  

Reply With Quote
Old 11-24-2008   #2 (permalink)
Just Joined!
 
Join Date: Nov 2008
Posts: 1
Here's what CBlue sugguested:
Quote:
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.
That particular course of action did not work for me, although it did work for some other people, so try it first.

Here's what I did and this worked:
1. Open terminal, type
Quote:
cd /var/lib/dpkg/info
2. Remove the info files for the bad packages (WARNING, this is dangerous in some cases): Type
Quote:
sudo rm -f <badPackageNameThatWasn'tInstalledInYourCase>*
3.
Quote:
sudo apt-get update -f
and
Quote:
sudo apt-get upgrade,
or, finally,
Quote:
sudo apt-get install <packageThatCouldn'tBeInstalledPreviously>
.
Megamorph is offline   Reply With Quote
Old 11-29-2008   #3 (permalink)
Content Team
 
_madman_'s Avatar
 
Join Date: Jun 2006
Posts: 50
Sounds like you may have "busybox" installed. Busybox is a bunch of common programs reduced to one binary file. Then links are set to that one file using the common command names and busybox responds accordingly, depending on which link invokes it. It is mainly used for bootdisks, liveCD's, and the like - where having fully functional (large) commands is not necessary.

If you are using your system on a memory limited device (which it sounds like), then you may need to stick with "busybox" because Bash would be too large. "/bin/sh" is a file that will invoke either Bash or Busybox.

Why are you trying to upgrade anyway? If you notice, the only files that apt is bringing in for your "upgrade" appear completely unnecessary for your type of system.

I said it before and I'll say it again: UPGRADES ARE BAD!
Do not attempt to upgrade any system ever, unless you know the system thoroughly, and are prepared to handle many errors like this one. Always backup (/home,/etc,/boot,etc) and do a fresh install. And even then, you really don't have to upgrade your OS unless your missing major functionality - which should be years appart.
_madman_ is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Free Network Mapping Tool for Microsoft® Office Visio® Professional 2007 Users
Don't map your network by hand – let LANsurveyor Express for Microsoft Visio Professional 2007 automatically create network diagrams for you.
subscribe
Free eBook:"Vulnerability Management for Dummies"
Get all the Facts and See How to Implement a Successful Vulnerability Management Program.
subscribe
Google vs The World: The Battle of the Message Security Vendors
With such a powerful name behind it, Google Message Security stands out in a sea of products that do exactly the same thing - or so they say.
subscribe

Safe, Secure Backup


All times are GMT. The time now is 02:19 AM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2