Monday, June 21, 2010

Canon Pixma MP145

Here's the steps:

Download the following from canon website:
1. cnijfilter-common_2.80-1_i386.deb
2. cnijfilter-mp140series_2.80-1_i386.deb

There will be problem related with dependency if you want to install them directly (my case is with Ubuntu 10.04).
Both packages depend on libcupsys2, while in my version of Ubuntu it should be libcups2.

So, next step is to modify those packages to use the proper package dependency.

$ mkdir modified-deb
$ dpkg -x cnijfilter-common_2.80-1_i386.deb modified-deb/cnijfilter-common_2.80-1_i386
$ dpkg -e cnijfilter-common_2.80-1_i386.deb modified-deb/cnijfilter-common_2.80-1_i386/DEBIAN

after that, then edit modified-deb/cnijfilter-common_2.80-1_i386/DEBIAN/control and replace licupsys2 with libcups2.

Repackage the updated version:
$ cd modified-deb
$ dpkg -b cnijfilter-common_2.80-1_i386

Do the same thing with the other package, cnijfilter-mp140series_2.80-1_i386.deb.
Finally, install both packages, and you are done.

1 comment:

  1. There is an easier way to get Canon Pixma MP145 working in Ubuntu 10.04, which is to use Canon Pixma MP150 driver. But, it always good to know how to repackage deb files.

    ReplyDelete