LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 02-21-2009, 09:54 AM   #1
jlb0057
LQ Newbie
 
Registered: Feb 2009
Location: Tennessee
Distribution: Debian, Ubuntu, Linux Mint
Posts: 10

Rep: Reputation: 0
SOLVED: Upgrade error: Sub-process /usr/bin/dpkg returned an error code (1)


When trying apt-get dist-upgrade I got the following:

Quote:
...
Unpacking linux-image-2.6.26-1-686 (from .../linux-image-2.6.26-1-686_2.6.26-13_i386.deb) ...
Done.
dpkg: error processing /var/cache/apt/archives/linux-image-2.6.26-1-686_2.6.26-13_i386.deb (--unpack):
failed in buffer_write(fd) (10, ret=-1): backend dpkg-deb during `./lib/modules/2.6.26-1-686/kernel/drivers/media/video/zc0301/zc0301.ko': No space left on device
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Running postrm hook script /sbin/update-grub.
Searching for GRUB installation directory ... found: /boot/grub
Searching for default file ... found: /boot/grub/default
Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
Searching for splash image ... none found, skipping ...
Found kernel: /boot/vmlinuz-2.6.21-2-686
Found kernel: /boot/vmlinuz-2.6.18-4-686
Found kernel: /boot/vmlinuz-2.6.18-3-686
Updating /boot/grub/menu.lst ... done

Preparing to replace passwd 1:4.0.18.1-11 (using .../passwd_1%3a4.1.1-6_i386.deb) ...
Unpacking replacement passwd ...
Processing triggers for man-db ...
Errors were encountered while processing:
/var/cache/apt/archives/linux-image-2.6.26-1-686_2.6.26-13_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
I was ready to post on LQ when I came across the link below which advised:

Quote:
If you have more than 1 kernel installed try removing (using synaptic or apt-get) all kernels but the newest. After that do the dist-upgrade once more.

If it doesn't work boot from a livecd and resize your /boot partition into at leest 100 mb.
http://ubuntuforums.org/archive/index.php/t-21672.html

This worked! I was back in business after doing:
Quote:
$ sudo apt-get remove linux-image-2.6.18*
$ sudo apt-get dist-upgrade
I only post this here, because I hit several dead ends on the Google road before coming across this one.
 
Old 02-21-2009, 12:09 PM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,647

Rep: Reputation: 524Reputation: 524Reputation: 524Reputation: 524Reputation: 524Reputation: 524
Yeah "No space left on device" was a good clue.
 
Old 02-21-2009, 03:38 PM   #3
jlb0057
LQ Newbie
 
Registered: Feb 2009
Location: Tennessee
Distribution: Debian, Ubuntu, Linux Mint
Posts: 10

Original Poster
Rep: Reputation: 0
Yes, it seems elementary in retrospect, but my overall disk space looked good. Of course, the boot partition was the problem, but I was not savvy enough to catch that without some guidance.
 
Old 03-11-2011, 08:37 AM   #4
khemraj
LQ Newbie
 
Registered: Mar 2011
Location: pune
Distribution: ubuntu
Posts: 1

Rep: Reputation: 0
Upgrade error: Sub-process /usr/bin/dpkg returned an error code (1)

if any one not understand this which script should edit
then plz open the file in /var/lib/dpkg/<trouble package>.prerm
and remove the set -e line in that script.
same for file
/var/lib/dpkg/info/<trouble package>.postrm also.
n done.
 
  


Reply


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
Sub-Process /usr/bin/dpkg returned an error code (1) Bookspoppa Debian 39 11-12-2013 01:21 PM
Input/Output Error; dpkg sub-process /usr/bin/dpkg returned and error code (2) NosLycn Linux - Software 7 12-12-2011 02:50 AM
E: Sub-process /usr/bin/dpkg returned an error code (1) shogun1234 Linux - Software 1 05-17-2008 09:03 AM
Sub-process /usr/bin/dpkg returned an error code kako13 Debian 2 05-15-2008 06:01 PM
Sub-process /usr/bin/dpkg returned an error code (1) rapattack Debian 10 04-24-2008 11:19 PM


All times are GMT -5. The time now is 05:47 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
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration