LinuxQuestions.org
Visit Jeremy's Blog.
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
 
LinkBack Search this Thread
Old 07-12-2009, 04:44 PM   #1
randyepperson
LQ Newbie
 
Registered: Dec 2005
Location: SW Wisconsin, US
Distribution: Debian - Lenny
Posts: 11

Rep: Reputation: 0
(lenny) Getting error code 2 from dpkg trying to install libcups2-dev


I'm trying to upgrade libcups2-dev and dpkg is giving me an error. I issue aptitude install libcups2-dev from the CLI as root and receive -

aptitude install libcups2-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done
The following packages will be upgraded:
libcups2 libcups2-dev
2 packages upgraded, 0 newly installed, 0 to remove and 65 not upgraded.
Need to get 0B/559kB of archives. After unpacking 0B will be used.
Do you want to continue? [Y/n/?] Y
Writing extended state information... Done
(Reading database ... dpkg: unrecoverable fatal error, aborting:
files list file for package `libcups2-dev' is missing final newline
E: Sub-process /usr/bin/dpkg returned an error code (2)
A package failed to install. Trying to recover:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done

It appears that the error is in the current copy of this library. Do I need to correct this error before I can upgrade? If so, how do I update it?

The odd thing for me is that because of this error, I cannot install or remove
any other software. Dpkg is at an impasse.

Thanks for any assistance
 
Old 07-12-2009, 05:55 PM   #2
randyepperson
LQ Newbie
 
Registered: Dec 2005
Location: SW Wisconsin, US
Distribution: Debian - Lenny
Posts: 11

Original Poster
Rep: Reputation: 0
I found the problem - somehow the /var/lib/dpkg/info/libcups2-dev.list file had the last line written as X'00'. I deleted the line of all zeros and the package upgraded fine.
 
  


Reply

Tags
dpkg, lenny


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Input/Output Error; dpkg sub-process /usr/bin/dpkg returned and error code (2) NosLycn Linux - Software 7 12-12-2011 02:50 AM
SOLVED: Upgrade error: Sub-process /usr/bin/dpkg returned an error code (1) jlb0057 Debian 3 03-11-2011 08:37 AM
Sub-process /usr/bin/dpkg returned an error code kako13 Debian 2 05-15-2008 06:01 PM
Can't remove an app: error code 3 for DPKG vargadanis Ubuntu 5 11-17-2007 04:32 AM
dpkg returned an error code (1) Segmentation fault questionman Debian 6 11-02-2004 12:04 AM


All times are GMT -5. The time now is 02:18 PM.

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
Open Source Consulting | Domain Registration