943,777 Members | Top Members by Rank

Ad:
Jul 11th, 2009
1

(debian - lenny) Getting error code 2 from dpkg trying to install libcups2-dev

Expand Post »
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?

Thanks for any assistance
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Randy Epperson is offline Offline
3 posts
since Aug 2007
Jul 12th, 2009
0

Re: (debian - lenny) Getting error code 2 from dpkg trying to install libcups2-dev

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.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Randy Epperson is offline Offline
3 posts
since Aug 2007

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Linux Applications and Software Forum Timeline: .htaccess redirect for subdomain
Next Thread in Linux Applications and Software Forum Timeline: .ithmb conversion





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC