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


  Search this Thread
Old 02-21-2009, 10:54 AM   #1
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:

Unpacking linux-image-2.6.26-1-686 (from .../linux-image-2.6.26-1-686_2.6.26-13_i386.deb) ...
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: (using .../passwd_1%3a4.1.1-6_i386.deb) ...
Unpacking replacement passwd ...
Processing triggers for man-db ...
Errors were encountered while processing:
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:

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.

This worked! I was back in business after doing:
$ 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, 01:09 PM   #2
Senior Member
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 614Reputation: 614Reputation: 614Reputation: 614Reputation: 614Reputation: 614
Yeah "No space left on device" was a good clue.
Old 02-21-2009, 04:38 PM   #3
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, 09:37 AM   #4
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.


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

All times are GMT -5. The time now is 01:27 PM.

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