Page 13 of 19 FirstFirst ... 31112131415 ... LastLast
Results 121 to 130 of 189

Thread: How To: Install Canon PIXMA MX870 drivers on i368 and 64bit ubuntu

  1. #121

    Thumbs up Re: How To: A better patch for Canon PIXMA install.sh

    What's wrong with the solution here?
    http://ubuntuforums.org/showthread.p...6#post10878776

    Quote Originally Posted by WhyDoINeedToRegister? View Post
    I ran into the "The package management system cannot be identified" error with both the printer and scanner drivers for the Canon PIXMA MG8100 series found here:I am trying to use an MG8120 with 64-bit Ubuntu 11.04. I'm not sure why the original poster, thewump, used such a crude modification of the install.sh script. The problem with Canon's script is bad logic that can be fixed properly. Their script fails because they think it is an error condition if the system has both the rpm and dpkg package manager binaries functionally available. Obviously there is nothing wrong with having two package managers installed and Ubuntu 11.04 falls afoul of this. I've attached a patch for install.sh that resolves the dilemma of which to use with a bias for dpkg, and it doesn't rely on forcing architecture. Although the patch was made for the install.sh found in cnijfilter-mg8100series-3.40-1-deb, I was able to use the same patch file as is for the script in scangearmp-mg8100series-1.60-1-deb as well. This solved the problem for me and I suspect/hope it will for other PIXMA driver installs too, although I haven't tried it with any other GNU/Linux distributions.

    One would think that after all this time, that Canon would clue in that their installation scripts are all broken, at least for the most widely used GNU/Linux distribution in the world. Apparently Canon doesn't test its Linux driver installs. If someone in the know could point the correct Canon folk at this thread, I'm sure we'd all appreciate them fixing this.

    I wasn't sure if embedded tab characters would survive posting my patch as a code element in this forum, which is why I attached the patch as a file. For the casual reader, here is the patch as a code element, but you should prefer the attached file if you actually want to feed it to your system's patch utility:

    Code:
    --- install.sh.original    2011-11-15 23:49:14.872663855 -0800
    +++ install.sh    2011-11-16 03:04:23.082665351 -0800
    @@ -1252,20 +1252,18 @@
         dpkg --version 1> /dev/null 2>&1
         c_system_deb=$?
     
    -    ## rpm and deb are error, or rpm and deb are no error, is error ##
    -    if [ $c_system_rpm = 0 -a $c_system_deb = 0 ] || [ $c_system_rpm != 0 -a $c_system_deb != 0 ]; then
    +    ## Use deb if supported, else rpm if supported, else error ##
    +    if [ $c_system_deb = 0 ]; then
    +        C_system="deb"
    +        C_arch32="i386"
    +        C_arch64="amd64"
    +    elif [ $c_system_rpm = 0 ]; then
    +        C_system="rpm"
    +        C_arch32="i386"
    +        C_arch64="x86_64"
    +    else
             printf "$L_INST_COM_01_02"
             return $C_ERR_CODE
    -    else
    -        if test $c_system_rpm -eq 0; then
    -            C_system="rpm"
    -            C_arch32="i386"
    -            C_arch64="x86_64"
    -        else
    -            C_system="deb"
    -            C_arch32="i386"
    -            C_arch64="amd64"
    -        fi
         fi
         
         return 0

  2. #122

    Post Re: How To: A better patch for Canon PIXMA install.sh

    Quote Originally Posted by NathanBrauer View Post
    What's wrong with the solution here?
    http://ubuntuforums.org/showthread.p...6#post10878776
    Trolling, right?

  3. #123
    Join Date
    Jan 2009
    Beans
    84

    Re: How To: Install Canon PIXMA MX870 drivers on i368 and 64bit ubuntu

    It don't work. It worked in ubuntu 11.04
    But now it don't work in ubuntu 11.10

    This gets really annoying.



    Code:
    myself@Ubuntu-Linux:~/Downloads$ tar -xvf cnij*
    cnijfilter-mx870series-3.30-1-i386-deb/
    cnijfilter-mx870series-3.30-1-i386-deb/packages/
    cnijfilter-mx870series-3.30-1-i386-deb/packages/cnijfilter-common_3.30-1_i386.deb
    cnijfilter-mx870series-3.30-1-i386-deb/packages/cnijfilter-mx870series_3.30-1_i386.deb
    cnijfilter-mx870series-3.30-1-i386-deb/resources/
    cnijfilter-mx870series-3.30-1-i386-deb/resources/printer_zh_utf8.lc
    cnijfilter-mx870series-3.30-1-i386-deb/resources/printer_ja_utf8.lc
    cnijfilter-mx870series-3.30-1-i386-deb/resources/printer_fr_utf8.lc
    cnijfilter-mx870series-3.30-1-i386-deb/install.sh
    myself@Ubuntu-Linux:~/Downloads$ cd cnij*
    myself@Ubuntu-Linux:~/Downloads/cnijfilter-mx870series-3.30-1-i386-deb$ ./install.sh
    ==================================================
    
    Canon Inkjet Printer Driver Ver.3.30-1 for Linux
    Copyright CANON INC. 2001-2010
    All Rights Reserved.
    
    ==================================================
    An error occurred. The package management system cannot be identified.
    I am on ubuntu 11.10 i368
    Anyone know of anything that works?
    I already tried this:
    http://www.ubuntubuzz.com/2011/06/do...er-driver.html

    Code:
    sudo add-apt-repository ppa:michael-gruz/canon
    sudo apt-get update
    Code:
    sudo apt-get install cnijfilter-mx870series
    And it don't work either.
    Last edited by M!SF!TS; November 23rd, 2011 at 05:26 AM.
    Die, die, die my darling, Don't utter a single word, Die, die, die my darling, Just shut your pretty mouth
    I'll be seeing you again, I'll be seeing you in Hell
    --The Misfits "Die, Die, My Darling"

  4. #124
    Join Date
    Jul 2006
    Beans
    122

    Re: How To: Install Canon PIXMA MX870 drivers on i368 and 64bit ubuntu

    Quote Originally Posted by NathanBrauer View Post
    Whoot! Easiest setup EVER! Worked wonders (when directions are followed) on Ubuntu 11.10 64 bit over Wifi. Thanks a million!

    One clarification you should make for more advanced users like me: I expected that I had to put your shell script in a specific place in relation to the downloaded files + I wasn't sure if I should unpack the downloaded files or not. So you should simply include the following so things are clear:

    Add to #1: "Do not unpack."
    Change #4: "Save the file anywhere you wish and quit gedit."
    Add to #6: "Script will prompt you for the location of the downloads."

    Thanks again for making this so easy!
    Just ran the installer on 9.10 and worked like a charm, no need to use the script. Thank you for the link, I didn't know they had native drivers for Linux now.

  5. #125
    Join Date
    Jan 2009
    Beans
    84

    Re: How To: Install Canon PIXMA MX870 drivers on i368 and 64bit ubuntu

    For anyone struggling with getting your Canon MX870 driver working or there wireless internet working in Ubuntu 11.10

    I found that this works:

    Install linux kernel 3.1 (stable)


    Open the terminal and run these two commands for both 32-bit and 64-bit versions of Ubuntu 11.10/11.04:

    wget http://kernel.ubuntu.com/~kernel-ppa...241006_all.deb

    sudo dpkg -i linux-headers-3.1.0-030100_3.1.0-030100.201110241006_all.deb



    Ubuntu (32-bit)



    For Ubuntu 11.10/11.04 (32-bit), run these commands:

    wget http://kernel.ubuntu.com/~kernel-ppa...41006_i386.deb

    sudo dpkg -i linux-headers-3.1.0-030100-generic_3.1.0-030100.201110241006_i386.deb

    wget http://kernel.ubuntu.com/~kernel-ppa...41006_i386.deb

    sudo dpkg -i linux-image-3.1.0-030100-generic_3.1.0-030100.201110241006_i386.deb



    Ubuntu (64-bit)



    For Ubuntu 11.10/11.04 (64-bit), issue these commands:

    wget http://kernel.ubuntu.com/~kernel-ppa...1006_amd64.deb

    sudo dpkg -i linux-headers-3.1.0-030100-generic_3.1.0-030100.201110241006_amd64.deb

    wget http://kernel.ubuntu.com/~kernel-ppa...1006_amd64.deb

    sudo dpkg -i linux-image-3.1.0-030100-generic_3.1.0-030100.201110241006_amd64.deb

    ----------------------------------------------------------------------------------------------------

    Now reboot now your system, then open the terminal and run this command to check your Kernel version:

    uname -r

    The output returned will be something like this:

    ~$ uname -r
    3.1.0-030100-generic

    That's it!

    (Taken from here: http://www.upubuntu.com/2011/11/how-...on-ubuntu.html)


    Now you can just follow the directions in the first page of this thread for both the Printer and Scanner. In either 32bit or 64bit Ubuntu 11.10

    Die, die, die my darling, Don't utter a single word, Die, die, die my darling, Just shut your pretty mouth
    I'll be seeing you again, I'll be seeing you in Hell
    --The Misfits "Die, Die, My Darling"

  6. #126
    Join Date
    Jan 2007
    Beans
    18

    Re: How To: Install Canon PIXMA MX870 drivers on i368 and 64bit ubuntu

    Thanks so much for all the hard work guys! I'm 99% of the way there I think, but I can't seem to detect my printer on the network (it's on the wireless) when I get to that part of the script. Has anyone figured out a way around that? I'm running Xubuntu 11.10.

  7. #127
    Join Date
    Jul 2005
    Beans
    306

    Re: How To: Install Canon PIXMA MX870 drivers on i368 and 64bit ubuntu

    Are you sure your printer is on the network? With my router, I setup a DHCP assignment for the printer, giving it a specific IP based on its MAC and I could see in the maintenance panel that it had received that IP. I could then ping the IP from my laptop. From there, it was easily detected.

    Statik

  8. #128
    Join Date
    Sep 2009
    Beans
    8

    Re: How To: Install Canon PIXMA MX870 drivers on i368 and 64bit ubuntu

    I've recently upgraded from 10.10 -> 11.10. Turbo Print still works and I got my MX870 printing within 2 minutes. Very easy install and setup. They are not freeware but I will definitely purchase the software this time around. For anyone that doesn't want to purchase the software, just install it to get the driver then uninstall after 30 days free trial. This is a headache-free solution to what has been posted here so far.

  9. #129
    Join Date
    May 2008
    Beans
    8

    Re: How To: Install Canon PIXMA MX870 drivers on i368 and 64bit ubuntu

    Quote Originally Posted by thewump View Post
    UPDATED FOR SCANNER DRIVER TOO.

    This took a while and I didn't find the information elsewhere, so thought I'd throw the information here in case anyone else is looking for it!

    1) PRINTING
    Firstly, get the 32 bit printer drivers from Asia:

    http://support-sg.canon-asia.com/con...100272302.html

    Download is at the bottom of that page.

    After you download it, untar the file and get into the directory that it creates

    Code:
    tar -xvf cnij*
    cd cnij*
    Now.. if you have a 32 bit / i386 system you are good to go!

    Code:
    ./install.sh
    and follow your nose.

    If you are using 64 bit though it's more tricky. The 32 bit deb file itself works fine on 64bit machines, but the stuff in the install script does all the hard work of actually getting the printer set up, so the thing to do is hack the install.sh file to force it to ignore the architecture.

    open the file with your favorite editor and find the block:

    Code:
            ## rpm and deb are error, or rpm and deb are no error, is error ##
            if [ $c_system_rpm = 0 -a $c_system_deb = 0 ] || [ $c_system_rpm != 0 -a $c_system_deb != 0 ]; then
                   printf "$L_INST_COM_01_02"
                   return $C_ERR_CODE
            else
                   if test $c_system_rpm -eq 0; then
                           C_system="rpm"
                   else
                            C_system="deb"
                   fi
            fi
    and comment out the logic so all that is left is C_system="deb"

    Code:
            ## rpm and deb are error, or rpm and deb are no error, is error ##
            #if [ $c_system_rpm = 0 -a $c_system_deb = 0 ] || [ $c_system_rpm != 0 -a $c_system_deb != 0 ]; then
            #       printf "$L_INST_COM_01_02"
            #       return $C_ERR_CODE
            #else
            #       if test $c_system_rpm -eq 0; then
            #               C_system="rpm"
            #       else
                            C_system="deb"
            #       fi
            #fi
    Now search for:

    Code:
    C_FUNC_show_and_exec "sudo dpkg -iG $c_fpath_pkg_name"
    and change it to

    Code:
    C_FUNC_show_and_exec "sudo dpkg --force-architecture -iG $c_fpath_pkg_name"
    to force it to ignore the architecture..

    You're done!

    Run with

    Code:
    ./install

    2) SCANNING
    Thanks to others in this thread for doing the groundwork on scanning too. The process is very similar. I think for 386 installs of Ubuntu it should "just work".

    Download the scanner driver from Asia:

    http://support-sg.canon-asia.com/con...100273002.html


    Download is at the bottom of that page.

    After you download it, untar the file and get into the directory that it creates

    Code:
    tar -xvf scan*
    cd scan*
    Now.. if you have a 32 bit / i386 system you are good to go!

    Code:
    ./install.sh
    and follow your nose.

    If you are using 64 bit though it's more tricky. The 32 bit deb file itself works fine on 64bit machines, but the stuff in the install script does all the hard work of actually getting the printer set up, so the thing to do is hack the install.sh file to force it to ignore the architecture.

    open the file with your favorite editor and find the block:

    Code:
            ## rpm and deb are error, or rpm and deb are no error, is error ##
            if [ $c_system_rpm = 0 -a $c_system_deb = 0 ] || [ $c_system_rpm != 0 -a $c_system_deb != 0 ]; then
                   printf "$L_INST_COM_01_02"
                   return $C_ERR_CODE
            else
                   if test $c_system_rpm -eq 0; then
                           C_system="rpm"
                   else
                            C_system="deb"
                   fi
            fi
    and comment out the logic so all that is left is C_system="deb"

    Code:
            ## rpm and deb are error, or rpm and deb are no error, is error ##
            #if [ $c_system_rpm = 0 -a $c_system_deb = 0 ] || [ $c_system_rpm != 0 -a $c_system_deb != 0 ]; then
            #       printf "$L_INST_COM_01_02"
            #       return $C_ERR_CODE
            #else
            #       if test $c_system_rpm -eq 0; then
            #               C_system="rpm"
            #       else
                            C_system="deb"
            #       fi
            #fi
    Now search for:

    Code:
    C_FUNC_show_and_exec "sudo dpkg -iG $c_fpath_pkg_name"
    and change it to

    Code:
    C_FUNC_show_and_exec "sudo dpkg --force-architecture -iG $c_fpath_pkg_name"
    to force it to ignore the architecture..

    You're done!

    Run with

    Code:
    ./install
    Now.. You've just installed drivers AND a scanner app. To use the scanner app you have to run it. Hit ALT-F2 to pull up the run command and type "scangearmp". You should see a dialog box about scanners (first time it might say "NOT FOUND" but if you follow your nose, it will find the scanner and add it to the available list. To make life easier, make a launcher on your desktop for scangearmp for future use.


    K
    just got a Canon MX885(updated version of MX870) to work for Ubunutu 11.10 with a amd64 architecture. Folow the instructions as begining of thread but note that now the install script has added two new lines to the first block of logic which needs to be comented:
    C_arch32="i386"
    C_arch64="amd64"

    In my case since I am using amd64 I left the arch64 line uncomented. Note that if both arch lines are comented install script does not work, it complains about deb files missing.

    Thanks a lot to "thewump", I was afraid I was not going to be able to use this printer with ubuntu.
    Cheers

  10. #130
    Join Date
    Sep 2009
    Beans
    8

    Re: How To: Install Canon PIXMA MX870 drivers on i368 and 64bit ubuntu

    I spent a half hour trying to install scangear by following the instructions given above exactly. I'm running 11.10 64bit and ran into a dependency error involving libusb-dev after running install.sh. So I made sure I had the latest libusb-dev and retried. Still no luck.

    Then I tried installing scangear through the Ubuntu Software Center by searching for "scangear". I first installed the scangearmp-common package (not the i386 version) and that installed without any issues. Then I located the package specific to my printer/scanner (mx870), which is "scangearmp-mx870series" (again not the i386 version). Installed without any issues as well. Went to the command line and typed scangearmp to run and yup it's installed and scans perfectly. This approach took less than a minute. The scangearmp version reported in the About dialog is 1.70.

    So, give the software center a try

    For people still having printing issues on 11.10 64bit systems, this blog post seemed to help out a lot of people:

    http://www.ubuntubuzz.com/2011/06/do...er-driver.html

    I was able to successfully install the driver (cnijfilter-mx870series) although I had it working previously using TurboPrint.
    Last edited by teranine; January 23rd, 2012 at 10:46 AM.

Page 13 of 19 FirstFirst ... 31112131415 ... LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •