Canon Pixma MP160 does not work on 12.04.3 LTS

Asked by M Bjornbak

Its a combined printer-scanner. Before I made a fresh install of Ubuntu 12.04 the printer /scanner worked.
Having succeded in finding appropriate drivers in rmp.-format I converetd these files into the deb.-format. However, without success. The procedure I- after converting the files the "ubuntu-format"- followed was the following--- illustrated by copy-paste from my teminal.
Still, the printer/scanner does not function. I'm certain that I f--- up.
Can any one here provide guidance?: 1) How to clean up my mess, 2)how to- step by step for a newbie- achieve the objective= a printer/scanner that works properly?
-----------------------------------------

mbh@mbh-XS35:~$ cd Downloads
mbh@mbh-XS35:~/Downloads$ ls
cnijfilter-mp160-2.70-1.i386.rpm scangearmp-mp160_1.00-2_i386.deb
cnijfilter-mp160_2.70-2_i386.deb

mbh@mbh-XS35:~/Downloads$ dpkg -i cnijfilter-common_2.70-2_i386.deb
dpkg: error: requested operation requires superuser privilege

mbh@mbh-XS35:~/Downloads$ sudo dpkg i cnijfilter-common_2.70-2_i386.deb
[sudo] password for mbh:
dpkg: error: need an action option

Type dpkg --help for help about installing and deinstalling packages [*];
Use `dselect' or `aptitude' for user-friendly package management;
Type dpkg -Dhelp for a list of dpkg debug flag values;
Type dpkg --force-help for a list of forcing options;
Type dpkg-deb --help for help about manipulating *.deb files;

Options marked [*] produce a lot of output - pipe it through `less' or `more' !
mbh@mbh-XS35:~/Downloads$ apt-get -f install
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
mbh@mbh-XS35:~/Downloads$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
mbh@mbh-XS35:~/Downloads$ sudo dpg i cnijfilter-mp160_2.70-2_i386.deb
sudo: dpg: command not found
mbh@mbh-XS35:~/Downloads$ dpkg -i cnijfilter-mp160_2.70-2_i386.deb
dpkg: error: requested operation requires superuser privilege
mbh@mbh-XS35:~/Downloads$ sudo dpkg -i cnijfilter-mp160_2.70-2_i386.deb
Selecting previously unselected package cnijfilter-mp160.
(Reading database ... 204003 files and directories currently installed.)
Unpacking cnijfilter-mp160 (from cnijfilter-mp160_2.70-2_i386.deb) ...
Setting up cnijfilter-mp160 (2.70-2) ...
mbh@mbh-XS35:~/Downloads$ sudo dpkg i scangearmp-mp160_1.00-2_i386.deb
dpkg: error: need an action option

Type dpkg --help for help about installing and deinstalling packages [*];
Use `dselect' or `aptitude' for user-friendly package management;
Type dpkg -Dhelp for a list of dpkg debug flag values;
Type dpkg --force-help for a list of forcing options;
Type dpkg-deb --help for help about manipulating *.deb files;

Options marked [*] produce a lot of output - pipe it through `less' or `more' !
mbh@mbh-XS35:~/Downloads$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
mbh@mbh-XS35:~/Downloads$
-------------------------------------------------------------------

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
actionparsnip
Solved:
Last query:
Last reply:
Revision history for this message
michael (yellupcm-gmail) said :
#1
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#2

sudo dpkg -i cnijfilter-common_2.70-2_i386.deb

Will work.

sudo dpkg i cnijfilter-common_2.70-2_i386.deb

Is not the right command. This is why you are getting the errors.

Revision history for this message
M Bjornbak (mbjornbak) said :
#3

Thanks to both of you. The devil seems to be in th details--- a missing "hyphen" if I understand you correctly. Tomorrow I'll give it a try and report back and if Iḿ lucky click on the "This solved my Problem"
mbjornbak

Revision history for this message
M Bjornbak (mbjornbak) said :
#4

Here is the terminal output of my second- apparently more successful- attempt. I used the downloaded red hat, i.e., rpm-files files, directly with a prefixed -i. The terminal gave no error message.

mbh@mbh-XS35:~$ cd Downloads
mbh@mbh-XS35:~/Downloads$ ls

cnijfilter-common-2.70-1.i386.rpm scangearmp-mp160-1.00-1.i386.rpm
cnijfilter-mp160-2.70-1.i386.rpm scangearmp-common-1.00-2.i386.rpm
mbh@mbh-XS35:~/Downloads$ sudo alien -i cnijfilter-common-2.70-1.i386.rpm
[sudo] password for mbh:
 dpkg --no-force-overwrite -i cnijfilter-common_2.70-2_i386.deb
Selecting previously unselected package cnijfilter-common.
(Reading database ... 204228 files and directories currently installed.)
Unpacking cnijfilter-common (from cnijfilter-common_2.70-2_i386.deb) ...
Setting up cnijfilter-common (2.70-2) ...
mbh@mbh-XS35:~/Downloads$ sudo alien -i cnijfilter-mp160-2.70-1.i386.rpm
Warning: Skipping conversion of scripts in package cnijfilter-mp160: postinst postrm
Warning: Use the --scripts parameter to include the scripts.
 dpkg --no-force-overwrite -i cnijfilter-mp160_2.70-2_i386.deb
(Reading database ... 204237 files and directories currently installed.)
Preparing to replace cnijfilter-mp160 2.70-2 (using cnijfilter-mp160_2.70-2_i386.deb) ...
Unpacking replacement cnijfilter-mp160 ...
Setting up cnijfilter-mp160 (2.70-2) ...
mbh@mbh-XS35:~/Downloads$ sudo alien -i scangearmp-mp160-1.00-1.i386.rpm
 dpkg --no-force-overwrite -i scangearmp-mp160_1.00-2_i386.deb
Selecting previously unselected package scangearmp-mp160.
(Reading database ... 204237 files and directories currently installed.)
Unpacking scangearmp-mp160 (from scangearmp-mp160_1.00-2_i386.deb) ...
Setting up scangearmp-mp160 (1.00-2) ...
mbh@mbh-XS35:~/Downloads$ sudo alien -i scangearmp-common-1.00-2.i386.rpm
[sudo] password for mbh:
Warning: Skipping conversion of scripts in package scangearmp-common: postinst postrm
Warning: Use the --scripts parameter to include the scripts.
 dpkg --no-force-overwrite -i scangearmp-common_1.00-3_i386.deb
Selecting previously unselected package scangearmp-common.
(Reading database ... 204242 files and directories currently installed.)
Unpacking scangearmp-common (from scangearmp-common_1.00-3_i386.deb) ...
Setting up scangearmp-common (1.00-3) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
mbh@mbh-XS35:~/Downloads$
-----------------------------
Then I ran the following commands:
mbh@mbh-XS35:~$ sudo dpkg -l | grep cnijfilter
[sudo] password for mbh:
ii cnijfilter-common 2.70-2 IJ Printer Driver Ver.2.70 for Linux
ii cnijfilter-mp160 2.70-2 IJ Printer Driver Ver.2.70 for Linux

mbh@mbh-XS35:~/Downloads$ sudo dpkg -l | grep scangearmp
ii scangearmp-common 1.00-3 ScanGear MP Ver.1.00 for Linux
ii scangearmp-mp160 1.00-2 ScanGear MP Ver.1.00 for Linux
mbh@mbh-XS35:~/Downloads$

BINGO! All the drivers are seemingly installed. An old old answer from 2007 to a question also on launchpad - Question #3742- that I found an hour ago- seems to agree.
--------------------------------
“--There are four files that have to be downloaded for the Canon Pixma MP160, two for the printer and two for the scanner to work. --”
---------------------------------
Irrespective of an apparently successful installation, I cant get the printer or the scanner to work.
mbjornbak

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#5

Why are you using rpms? Are there not deb files on the site?

Revision history for this message
M Bjornbak (mbjornbak) said :
#6

No, believe me I spent hours searching. I had to go all the way to Asia- check this site and you will see, that only rmp files are provided

http://support-asia.canon-asia.com/P/search?model=PIXMA+MP160&menu=download&filter=0&tagname=g_os&g_os=Linux
mbornbak

Revision history for this message
Best actionparsnip (andrew-woodhead666) said :
#7

https://launchpad.net/~michael-gruz/+archive/canon

The maintainer of this PPA may have a clue

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#8
Revision history for this message
M Bjornbak (mbjornbak) said :
#9

First, I apologize for my late response. I hav been abroad.
Next. I cant communicate with the PPA- owner/maintainer. There is no public email address available- even after login on launchpad.
How ever, the information provided indicates that the PPA has NOT been updated to cover 12.04!

Moving on to the ubuntugeek suggestion. As far as I can see, I- more or less- have followed it UNTIL the following text appears:

"sudo aptitude install libpng3
sudo ln -s /usr/lib/libtiff.so.4 /usr/lib/libtiff.so.3
sudo /etc/init.d/cupsys restart
cd /usr/share/cups/model/
sudo lpadmin -p MP160 -P canonmp160.ppd -v cnij_usb:/dev/usblp0 -E
sudo apt-get install libxml1"

As concerne the scanner, i did not do the following
"tar -xvjf mp150-0.13.1.tar.bz2
cd mp150-0.13.1
make
sudo make install"

In the course of the coming days I will follow the ubuntugeek manual to the letter and report back here, when I'm ready. OK ?
Before I start, I wonder whether you could tell me if should remove the already installed drivers and if yes, how to do that?
And I see that the concept "aptitude" appears in the first line of the first quotation. Why not "apt-get"??
mbjornbak
PS I apologize for- incorrectly- using "this solved my problem button", As you can see, my problem has yet to be solved. I sincerely that your patience isn't wearing thin.