Saturday, April 21, 2012

Fix: Error "Blank line" installing Lexmark printer driver on Ubuntu 12.04

The following error occured when I tried to install Lexmarks 2600 Series driver from Lexmark's  site and their package Printer Driver for Debian Package Manager based distros.

dpkg: error processing lexmark-inkjet-08-driver-1.0-1.i386.deb (--install):
parsing file '/var/lib/dpkg/tmp.ci/control' near line 9 package 'lexmark-inkjet-08-driver':
blank line in value of field 'Description'
Errors were encountered while processing:
lexmark-inkjet-08-driver-1.0-1.i386.deb


I'm using Ubuntu 12.04 but the process should be similar on other versions too. Turns out it's just a parsing error in the deb file, this is how I fixed it:

Downloaded the lexmark-inkjet-08-driver-1.0-1.i386.deb.sh.zip and extracted the lexmark-inkjet-08-driver-1.0-1.i386.deb.sh file in a directory called lexmark

Extract the contents of the sh file into a folder called lexmark_install
./lexmark-inkjet-08-driver-1.0-1.i386.deb.sh --noexec --target lexmark_install


cd lexmark_install

Untar the file called instaarchive_all
tar -xvvf instarchive_all --lzma

Bring out control.tar.gz from the deb package:
ar x lexmark-inkjet-08-driver-1.0-1.i386.deb control.tar.gz

Untar control.tar.gz
tar xf control.tar.gz

Edit the file control (for example with gedit)
gedit control

It will look similar to this:
Package: lexmark-inkjet-08-driver
Version: 1.0-1
Section: non-free
Priority: optional
Architecture: i386
Installed-Size:
Maintainer: build <build@linux>
Description:
Lexmark Z2300/X2600 Drivers Package

This package contains the Lexmark Z2300/X2600 Drivers. This is

a copyrighted package, please refer to the copyright notice
for details about using this product.

The problem is the blank lines in description, I just removed most of it making it look like this:
Package: lexmark-inkjet-08-driver
Version: 1.0-1
Section: non-free
Priority: optional
Architecture: i386
Installed-Size:
Maintainer: build <build@linux>
Description: Lexmark Z2300/X2600 Drivers Package


Then, add the files back to control.tar.gz
tar cfz control.tar.gz ./control ./postinst ./prerm ./preinst

Add control.tar.gz back to the deb file:
ar r lexmark-inkjet-08-driver-1.0-1.i386.deb control.tar.gz

And finally, install the deb
sudo dpkg --install lexmark-inkjet-08-driver-1.0-1.i386.deb

This is it! If it works your done!

http://archbird.se/lexmark_printer_driver.php

16 comments:

  1. This comment has been removed by the author.

    ReplyDelete
  2. Also using Ubuntu 12.04. Driver installation worked perfectly, and then I added the printer via CUPS. However, when I send jobs to the printer they stop and I get the following error: /usr/dellinkjet/dell09/bin/printdriver failed

    Do you have any suggestions on how to resolve this?

    ReplyDelete
  3. Thanks Works Great

    ReplyDelete
  4. thanks it has solved my big Linux problem.

    ReplyDelete
  5. Hello, you have resolve my problem, thank you very much for helping !

    ReplyDelete
  6. thanks, very useful!

    ReplyDelete
  7. YEAH!!! you are the king!! thank you!!..i was suffering

    ReplyDelete
  8. Awesome blog !!! its os informative for you its help you to fix your error ,go through this site .
    error 1068 windows7
    Thank you
    Aalia lyon

    ReplyDelete
  9. Thank you! This workaround also works on the Dell V313 driver which has the exact same problem (apparently Dell printers are just relabeled lexmark printers.)

    ReplyDelete
  10. If i say frankly i don't like Lexmark printers although some people prefer it quite seriously i used ones Lexmark but each time when i need Toner Cartridge for Printers it will waste my time to find out what i need now i am using HP it is good and very easy to find stuffs.

    ReplyDelete
  11. After research a number of of the blog posts on your website now, and I truly like your means of blogging. I bookmarked it to my bookmark website record and can be checking back soon. Pls take a look at my web site as nicely and let me know what you think. Brother Printer Toll Free Number

    ReplyDelete
  12. We can help you fix any printer related issues. Moreover, some difficulties can interrupt in your enjoyment while using the Printer but there is nothing to fear, you can handle issues so easily by getting assistance from Lexmark Printer Technical Support Phone Number. We are providing third party services...
    https://printersupportnumber.co/lexmark-printer.html

    ReplyDelete
  13. Hello there, thank you for sharing your blog with us.

    If you need printer maintenance service, you can contact Lexmark Printer Repair services in Santa Fe, New Mexico.

    ReplyDelete