The Linux Community Forum

Support => Printers and Scanners => Topic started by: 19goalie50nxQ on December 18, 2020, 09:58:07 am

Title: Scangearmp2 SOLVED.
Post by: 19goalie50nxQ on December 18, 2020, 09:58:07 am
Further to my recent request for help with installing the scangearmp2 for use with my Canon TR8550 printer. The problem was solved for me to be able to use scangearmp2 with Simple Scan, however now when I receive Software Updates included is one for scangearmp2. But now when I install the updates the scangearmp2 won’t and I receive a notice as shown on the attachment. I have to quit the scangearmp2 update to enable the other updates to install. I’ve now received the scangearmp2 update several times and each time I quit it.                                                                                                                                                                                                                                                        My question is, should I uninstall the scangearmp2 and then, next time the scaneramp2 update appears reinstall. I’m reluctant to uninstall the present scangearmp2, which I did through the instructions given to me by Rich J, as this is working perfectly.
Title: Re: Scangearmp2
Post by: Keith on December 18, 2020, 11:59:48 am
As far as I can tell (I've never used it), Scangear is provided by Canon solely for installing Canon software/drivers.  Now that you've installed your printer, do you need Scangear?  If  not, then I suggest that you un-install it as you can re-install it at a later date if necessary.   

I have used Canon printers in the past and have not needed any helper software - just lucky, I guess. 

Keith
Title: Re: Scangearmp2
Post by: 19goalie50nxQ on December 18, 2020, 02:33:47 pm
Hello Keith.

Thanks for your reply, I used the default scanner on the Canon printer settings originally but found it wasn't as user friendly as the Linux Simple Scan I used with the Epson printer which the Canon printer has replaced. I’ve been satisfied with the Linux scangearmp2 since installing it as per Rich J instructions, which I now use with the Linux Simple Scan.   
                                                                                                                                                                                                                                                                                 My concern is, if I uninstall the scangearmp2 and reinstall the update as you suggest I may make a mess of things. So for the time being I’ll stick with ‘quitting’ the scangearmp2 updates when they appear, unless I can be assured that installing the update will be okay.

Best regards.

19goalie50nxQ

Title: Re: Scangearmp2
Post by: Keith on December 18, 2020, 02:42:49 pm
Not sure what you mean by re-installing the update.  If it can't update scangear due to a "competing" file then starting from scratch might be the best way to go. 
It looks like installing the Linux Scangear has left in place a Canon file that Update objects to, preventing the update. 

Since you know how to install the Linux Scangear successfully I suggest that you remove Scangear completely and re-install it.  If that doesn't work you might need to use Synaptic Package Manager to remove the offending file(s) but we'll deal with that if necessary. 

Hope that helps.
Keith
Title: Re: Scangearmp2
Post by: Rich J on December 18, 2020, 04:47:49 pm
As has been previously stated - if all you want to do is scan then Simple Scan 'should' fulfil that without further ado - and it would not work 'with' Scangear anyway, they would just exist side-by-side on the computer.  As Keith says, uninstall all Scangear files and test Simple Scan again to se if it does what you require.  You can always reinstall Scangear afterwards if needs be.

To completely remove Scangear:  Open a Terminal (click on the icon or press "Ctrl + Alt + T") and copy/paste this command after the prompt - sudo apt-get --purge remove scangearmp2 and hit Enter.  Type in your password when prompted and hit Enter again.

You may have to confirm this when Terminal halts (press Y to accept, then Enter) and all traces of scangear will be gone.  This should stop the error messages appearing when updating  ;)

Rich



Title: Re: Scangearmp2
Post by: 19goalie50nxQ on December 24, 2020, 02:58:38 pm
Hi Keith & Rich J.
I've tried both your latest suggestions and removed completely the scangearmp2 as suggested and tried to re-install as per Rich J previous instructions. unfortunately now when trying to re-install I'm unable to do so and get message as shown on the Terminal attachment. I've tried various methods but still unable to install scangeramp2. You will see on the Terminal attachment at the bottom is two error notices dpkg:error and dpkg-error do these have anything to do with not being able to install scangearmp2. NOTE:- Ironically I have not had any scangeramp2 updates since removing the scangearmp2.
I'm sorry to bother you again on this subject I was dubious about removing the scangearmp2 when it was operating successfully with Simple Scan.
Regards
19goalie50nxQ
Title: Re: Scangearmp2
Post by: Keith on December 24, 2020, 08:53:02 pm
Hi Goalie.

Simple Scan has nothing to do with Scangearmp2 (as far as I know) - it is an entirely separate software that works on its own. 
Please let us know if Simple Scan is still working.  If it is, you don't need Scangearmp2. 
The dpkg errors do indicate that Scangearmp2 has not been installed properly (if at all).  As the installation has failed you will not receive any scangearmp2 updates as there is nothing to update.

If Simple Scan is not working, then:
The instructions you are using to install Scangear are explicitly for Ubuntu 20.04.  What version of Ubuntu are you using?  If not 20.04, then the installation might not work, but other users reporting on that web page also have the same problem as you when changing to Ubuntu 20.04. 
The same web page says:
"To install UFRII or LIPSLX printer driver for Canon LBP/iR printers, install one of following packages for your devices via apt command:
    cnrdrvcups-lipslx
    cnrdrvcups-ufr2-uk
    cnrdrvcups-ufr2-us
"
I can't help you with that as I haven't a clue what it means.

You might like to try downloading and installing ScanGear MP Ver. 3.60 from the Canon site: https://my.canon/en/support/0100949101/1 (https://my.canon/en/support/0100949101/1) which looks a lot simpler!

Keith

[EDIT]  I've just installed ScangearMP2 Ver. 3.60 on my Ubuntu 18.04.  The installation went OK, although I don't have a Canon printer/scanner to try it on.
Title: Re: Scangearmp2
Post by: 19goalie50nxQ on December 24, 2020, 09:50:33 pm
Hi Keith.

Thanks for your quick reply, didn't expect a reply until after Christmas, I'm using Linux Mint 19.3 Cinnamon 64bit. Simple Scan isn't working. I've downloaded the ScanGear MP Ver. 3.60 from the Canon site this downloads as :- scangearmp2-3.60-1-deb.tar.gz file. Unfortunately I've no idea how to read or open this type of file can you help me with this.

I don't want to interrupt your Christmas celebrations so you don't have to reply until after Boxing day if you are busy

Regards
Goalie.
Title: Re: Scangearmp2
Post by: Keith on December 25, 2020, 02:08:28 pm
Hi Goalie.

I don't have Mint on any of my computers but I believe Mint is based on Ubuntu which I do use, so the following instructions might work.

To create directory .scangear in home directory
Start a terminal session:   Ctrl+Alt+t
Enter:
Code: [Select]
mkdir .scangear 
    {Note the "."}

To extract the files
In your file manager, navigate to the scangearmp2-3.60-1-deb.tar.gz file that you put in Downloads.
Right click on that Scangear file then in the context menu that appears, select Open with.. then select Archive manager.

In the window that appears:
   Click on Extract
   When the file window appears, go to your home directory then
   Enter Ctrl+h to display hidden directories. Then:
   Navigate to the .scangear directory that you created in your home directory and double-click on it
      (This will show the empty directory)
   Click on the Extract button (top right?).
If you are invited to "show the files" or "Close", choose "close".  You can also close the Archive Manager window.

To change the PATH variable so it can find your scangear files:
Return to your terminal session.
Enter:
Code: [Select]
gedit  .profile
  Note the "."!

In the editor window, make the last two lines look like:
# set PATH so it includes user's private bin directories
PATH="$PATH:$HOME/.local/bin:$HOME/.scangear/scangearmp2-3.60-1-deb"
Save the file and exit the gedit editor.

REBOOT YOUR PC.

Now install your files:
In your terminal enter:
Code: [Select]
cd .scangear/scangearmp2-3.60-1-deb
Then:
Code: [Select]
chmod +x install.sh
Then:   
Code: [Select]
install.sh
  This should install scangearmp2


I can't guarantee that this will work in Mint but it works fine on my Ubuntu 18.04.
Good Luck!

Keith

Title: Re: Scangearmp2
Post by: 19goalie50nxQ on December 26, 2020, 04:07:36 pm
Hi Keith.

Thanks for your quick reply, I have to stress that I’m a novice with Linux so I may not do things correctly as per your instructions. So I’m having difficulty in following all your instructions (not your fault)  Can you clarify some points for me to do with your instructions as follows:-   
                     
    1. To create .scangear in Home directory.

I’ve taken this to mean create a folder then from there open Terminal and enter                 Code :- mkdire  .scangear  (See attachment ‘A’) (Not sure where the “.” is)

    2. To extract the files.

From my Home directory I select the scangearmp2-3.60-1-deb.tar.gz file from the Downloads folder. Right click on the Scangear file and from the menu  Open with Archive Manager  I clicked on the Extract button in (top L.H. corner) Then a box with the ‘Show the files’ or ‘Close’ I chose ‘Close’ and closed the Archive Manager.

    3. To change the PATH variable so it can find your scangear fles. (This is where I struggled)

            Returned to Terminal session entered Code: - gedit .profile  (Not sure where the “.” is)

            Not sure what is meant by :- In the editor window, make the last two lines look like:-
#set PATH so it includes users private bin directories. See Attachment 'B'  Can you illustrate how I do it.                      What do  you mean by bin directories.
Title: Re: Scangearmp2
Post by: Keith on December 26, 2020, 04:39:09 pm
Hi Goalie,

It seems that I didn't do a good job of explaining the process - sorry.  It looks like you have extracted the files from the *.tar.gz file but we don't know where they have been extracted to.
Never mind:  let's do it one step at a time.
By the way - please don't attach images of the whole window as it takes up too much space on the server.  Simply highlight the text as you would in an office document by clicking and dragging the cursor over all the text then copy it using Ctrl+Shift.  You can then paste it into your post with Ctrl+v.

First of all, start a Terminal Session (Ctrl+Alt+t).  Then enter:
Code: [Select]
mkdir .scangear
The "." is the normal decimal-point/full-stop on your keyboard. 
Check that you have created the directory by entering:
Code: [Select]
ls -a
You should see ".scangear" listed in the output.  Let me know if it's there (or not!) and we'll go from there. 
Just for practice; copy and paste into your reply the line containing ".scangear".

Keith

{By the way: the "."  before a file name makes it "hidden" in that it is not normally displayed.  The "-a" in the list command shows all files in the directory including hidden ones}
Title: Re: Scangearmp2
Post by: 19goalie50nxQ on December 26, 2020, 06:38:04 pm
Hi Keith,

Thanks again for your quick reply hope I’m not spoiling your Christmas celebrations and note your clarification of where the full stop is.

I’ve started a Terminal session and added the Code :- mkdir  .scangear  that was the easy bit.

Now I don’t fully understand the next instruction :-                                                                                                                                                                                               Check that you have created the directory by entering: Code:-  ls -a
Question where do I do this in Terminal? and where is the directory created and where will I find the output to check if “scangear” has been created.

Finally what is this operation :- Just for practice; copy and paste into your reply the line containing ".scangear".

Goalie
Title: Re: Scangearmp2
Post by: Keith on December 26, 2020, 06:53:09 pm
The command you entered (mkdir .scangear) created the directory ".scangear" in your home directory.  (You did press the Enter key, didn't you?!)
If you now type in the terminal the command
Code: [Select]
ls -a
followed by pressing the Enter key this will print on the terminal all the files/directories in your home directory.  For example, here is part of my output:
[email protected]:~$ ls -a
.                      Documents        .lesshst          .sane
..                     Downloads        .local            .scangear
.adobe                 .dropbox         .macromedia     


I described in my previous post how to copy text from your terminal and paste it into your post.  Here it is again:
Simply highlight the text as you would in an office document by clicking and dragging the cursor over all the text (or just the line containing .scangear) then copy it using Ctrl+Shift.  You can then paste it into your post with Ctrl+v.  I want you to do this so I can see that your really have created the .scangear directory. 

Keith
Title: Re: Scangearmp2
Post by: 19goalie50nxQ on December 26, 2020, 08:07:14 pm
Hi Keith.

Here is copy of section off Terminal with ".scangear " shown amongst them as requested.

 S.C.-2.png
 S.C.-3.png.jpg
'Scam email.png'
 .scangear
'Scanned Docs 2020'
 .scngear
 screen.png
'SCREENSHOTS 2020'

Hope this is what you are looking for and look forward to further instructions.

Goalie

Title: Re: Scangearmp2
Post by: Keith on December 26, 2020, 08:16:37 pm
Excellent!

You have a wrongly-named " .scngear" also, but don't worry about it. 
Now I want to check if you have anything in the .scangear directory.  Please enter the following commands into your terminal (followed in each case by the Enter key):
Code: [Select]
cd .scangear
then
Code: [Select]
ls
Now copy all the lines from the ls command line you entered to the end of the last line, and post them here.
Title: Re: Scangearmp2
Post by: 19goalie50nxQ on December 26, 2020, 08:41:47 pm
Hi Keith.

Its not working after I press Enter after Code:- ls (see attachment) tried number of times with same result, what am I doing wrong?

Goalie
Title: Re: Scangearmp2
Post by: 19goalie50nxQ on December 26, 2020, 08:50:25 pm
Hi Keith.

Its getting late and I want to go and watch a TV programme, I'll look again tomorrow at the correspondence between us and look closely at yours and Rich J replies and see if I can see where I'm going wrong.

Thanks for your patience on this matter.
Goalie.

Title: Re: Scangearmp2
Post by: Keith on December 26, 2020, 08:57:09 pm
Please don't add attachments:  copy and paste the lines as previously described.

You are not doing anything wrong!  The result shows that there is nothing in the directory to list, and this what I wanted to know.
Before going any further you need to be able to display hidden files in your file manager, and I shall show you how....

Start your file manager if it not running.  Make sure it is displaying your Home directory.
Now press the keys Ctrl+h.  You should see many more files added that have a "." in front of them - these are hidden files.  You can toggle the view by doing Ctlr+h again.  Got the idea?
By displaying the hidden files you should be able to see the .scangear directory. 

When you are happy with doing all this, let me know and we shall extract your scangear files.

Keith
Title: Re: Scangearmp2
Post by: 19goalie50nxQ on December 27, 2020, 12:28:47 pm
Hi Keith.
Opened the HOME directory and found the hidden directory ".scangear" eventually. Await your next instructions, again I hope I'm not interrupting any of your festivities.
Goalie.
Title: Re: Scangearmp2
Post by: Keith on December 27, 2020, 12:55:01 pm
Jolly good.  Now the next bit:

To extract the files
In your file manager, navigate to the scangearmp2-3.60-1-deb.tar.gz file that you put in Downloads.
Right click on that Scangear file then in the context menu that appears, select Open with.. then select Archive manager.

In the window that appears:
   Click on Extract
   When the file window appears, go to your home directory then
   Enter Ctrl+h to display hidden directories like you've just practised. Then:
   Navigate to the .scangear directory that you created in your home directory and double-click on it
      (This will show an empty directory)
   Click on the Extract button (top right?).
If you are invited to "show the files" or "Close", choose "close".  You can also close the Archive Manager window.

To check:  In your file manager, navigate to your .scangear/scangearmp2-3.60-1-deb directory and you will find some files there. Mine are shown in the attachment (I'm allowed to attach!).
Let me know if the files are there.

Keith
Title: Re: Scangearmp2
Post by: 19goalie50nxQ on December 27, 2020, 01:26:31 pm
Hi Keith.

I've got a domestic chore to do so will have a look at your instructions later and get back to you,

Goalie.
Title: Re: Scangearmp2
Post by: 19goalie50nxQ on December 27, 2020, 03:33:09 pm
Hi Keith.
Chore done.
I'm struggling, I open the "scangearmp2-3.60-1-deb.tar.gz" file and Open with Archive Manager and navigate to the hidden ".scangear directory" in the Home directory. When this opens it isn't empty but there is a Extract button in bottom R.H. corner and pressing this it brings up the invite to "show the files" or "Close", I choose "Close". Now when I check the "scangearmp2-3.60-1-deb.tar.gz" file the files are not as shown on your attachment. They are folders :- documents, packages, resources and install,sh.  So again what have I done wrong?
Goalie
P.S. You must be getting frustrated with me by now.
Title: Re: Scangearmp2
Post by: Keith on December 27, 2020, 04:06:30 pm
Goalie,

My instruction was: " In your file manager, navigate to your .scangear/scangearmp2-3.60-1-deb directory ".  Not the "scangearmp2-3.60-1-deb.tar.gz file".
The list of files that you mention is correct but they must be in the directory .scangear/scangearmp2-3.60-1-deb as shown in the image of my previous post. Please check that before we go to the next step.

Keith
Title: Re: Scangearmp2
Post by: 19goalie50nxQ on December 27, 2020, 04:51:45 pm
Hi Keith.

It looks like I'm at cross purposes with your instructions. On my Mint system the layout of the Home directory and yours are slightly different but in essence one of the same thing. I have miss-understood your instruction :- "In your file manager, navigate to your .scangear/scangearmp2-3.60-1-deb directory " I now realize that I should have said directory (instead of file), so I'm sure that I have done the procedure as per your instructions. i.e. I open my ".scangear directory" this opens the "scangearmp2-3.60-1-deb" directory and this opens up the "documents, packages, resources and install,sh." files. Can you confirm this what you are looking for so we can go to the next step.

Goalie
Title: Re: Scangearmp2
Post by: Keith on December 27, 2020, 05:07:34 pm
Perfect!!!

Sorry this is taking such a long time. 
The "install.sh" file is a long list of instructions for the PC to install the scangear drivers.  To do this, the file has to be an "executable" file.  We shall check that it is.

Start a terminal session then enter the following command followed by the "Enter" key:
Code: [Select]
ls -l ~/.scangear/scangearmp2-3.60-1-deb/install.sh
Then copy the output line (Ctrl+Shift+c) and paste it here.
I am expecting something like "-rwxr-xr-x 1 keith keith 18163 Nov 30  2017 /home/keith/.scangear/scangearmp2-3.60-1-deb/install.sh"

Title: Re: Scangearmp2
Post by: 19goalie50nxQ on December 27, 2020, 07:16:38 pm
Hi Keith.
Thanks again for your reply and patience I'll look at this tomorrow if that's ok with you, think we both need a rest from this. 
Goalie
Title: Re: Scangearmp2
Post by: 19goalie50nxQ on December 28, 2020, 10:45:49 am
Good Morning Keith.
Full of snow here and below is the result you hopefully were hoping for.

-rwxr-xr-x 1 kevin kevin 18163 Nov 30  2017 /home/kevin/.scangear/scangearmp2-3.60-1-deb/install.sh

Goalie
Title: Re: Scangearmp2
Post by: Keith on December 28, 2020, 12:37:06 pm
Hi Goalie.

That's good.
You may remember that the install.sh file is a long list of instructions (an executable file) telling the computer how to install the scangear software/drivers.  The "x"s at the start of the line you posted tell us that the install.sh file is indeed an executable file, so that's one less job for us. 

Just one more thing to do and we are home.
Executable files are executed simply by typing the name into a terminal.  However, the computer won't search the whole machine looking for it: it searches only the places listed in an environment variable called the PATH variable.  You can check where it looks by typing into your terminal
Code: [Select]
echo $PATH
and you will see that .scangear isn't listed. 
Modifying the PATH variable is not recommended (don't ask how I know!) but there is a cunning (and safe) method.  One can specify your .scangear directory by adding it to your .profile file and you computer will add it to PATH at start-up. 

To edit the file, in your terminal enter
Code: [Select]
gedit .profile
and copy the last two lines of the file into your next post.  This so we can see if there is already something there - we don't want to screw up at this stage.

Keith
Title: Re: Scangearmp2
Post by: 19goalie50nxQ on December 28, 2020, 12:44:03 pm
Hi Keith.
Here is copy of the lines after entering :- gedit .profile

Command 'gedit' not found, but can be installed with:

sudo apt install gedit


Goalie
Title: Re: Scangearmp2
Post by: Keith on December 28, 2020, 12:52:50 pm
No problem.

You can install gedit as suggested but for simplicity I suggest to use the text editor supplied by Mint (don't use LibreOffice!). 
When asking your editor to open .profile, don't forget to use Ctrl+h so you can see hidden files. 

Title: Re: Scangearmp2
Post by: 19goalie50nxQ on December 28, 2020, 01:09:14 pm
Keith before I do anything silly, can you clarify what you mean by this :-" I suggest to use the text editor supplied by Mint (don't use LibreOffice!)".  I copied your Code command gedit .profile and pasted into Terminal then pressed Enter I hope this was okay.

Also again to clarify :- "When asking your editor to open .profile, don't forget to use Ctrl+h so you can see hidden files"  I'm not sure where use" .profile" is it in Terminal command after :- sudo apt install gedit.  Sorry to labour on this I don't want to mess things up can you let me have the command to proceed correctly.

Goalie.
Title: Re: Scangearmp2
Post by: Keith on December 28, 2020, 01:18:34 pm
When you pasted the command gedit .profile into your terminal it produced an error because the text editor gedit is not installed on your computer.
You have two options:
1. install gedit as suggested or
2. look in your Mint menus to find your text editor - I think it might be called pluma

For simplicity I suggest using the one already installed.  After starting that editor, open .profile not forgetting to display "hidden files" so that you can see it!. 
Title: Re: Scangearmp2
Post by: 19goalie50nxQ on December 28, 2020, 01:47:49 pm
Keith I'm learning more each time you contact me, to be honest I've never used a text editor so don't know how to use it. However I've checked what is installed and it is Nano also in the Software Manager I notice there is Gedit so I can install it if this will make things easier.

Also I apologise for taking longer to reply sometimes its just that being "confined to barracks" so to speak, I have to help my wife with chores when she asks me. Plus she can't understand why I seem to be on the computer all the time mind, it doesn't matter that she's on WhatsApp all the time.lol

Goalie
Title: Re: Scangearmp2
Post by: Keith on December 28, 2020, 01:55:37 pm
No problem Goalie.  You're doing fine.

As I am more familiar with gedit, let's install that.  Enter the following
Code: [Select]
sudo apt install gedit
You will be asked for your password.  As you type it nothing will appear on the screen.  This is normal, so you will have to be careful in your typing.  Don't forget to press "Enter"! 
As the screen fills up it may ask you if you are happy to proceed - type y (and press Enter if nothing happens).
When your user-prompt reappears, gedit is installed.  Let me know when that's done and we'll move on. 

Keith
Title: Re: Scangearmp2
Post by: 19goalie50nxQ on December 28, 2020, 02:25:02 pm
Gedit fully installed.
Title: Re: Scangearmp2
Post by: Keith on December 28, 2020, 02:31:30 pm
Jolly good!

I've a thought.  Best check if you actually have a file called .profile.  Enter the following:
Code: [Select]
ls .profile
If the result looks like
[email protected]:~$ ls .profile
.profile
[email protected]:~$

Then we are in business. 
Title: Re: Scangearmp2
Post by: 19goalie50nxQ on December 28, 2020, 02:37:53 pm
No joy see copy off Terminal :- [email protected]desktop:~$ ls .profile
.profile
[email protected]:~$

Could I have done something wrong again?
Title: Re: Scangearmp2
Post by: Keith on December 28, 2020, 02:44:51 pm
Perfect!!  The file .profile is listed. 

Now enter the following:
Code: [Select]
gedit .profile
This will start the gedit text editor and fill it with the .profile file. 
Go to the bottom of the page and you will see something like:
# set PATH so it includes user's private bin directories
PATH="$PATH:$HOME/.bin:$HOME/.local/bin

Whatever it says, please copy the whole of the last two lines and post them here.
Title: Re: Scangearmp2
Post by: 19goalie50nxQ on December 28, 2020, 02:47:49 pm
Copy of last two lines :-

# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
    PATH="$HOME/bin:$PATH"
fi

# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/.local/bin" ] ; then
    PATH="$HOME/.local/bin:$PATH"
fi
Title: Re: Scangearmp2
Post by: Keith on December 28, 2020, 03:02:37 pm
That's good: it means that no other additions have been made and we can add our .scangear directory to the PATH.

Copy the following lines and add them to the bottom of the file:
Code: [Select]
# set PATH so it includes user's .scangear directory if it exists
if [ -d "$HOME/.scangear" ] ; then
    PATH="$HOME/.scangear/scangearmp2-3.60-1-deb:$PATH"
fi
Then copy the last 12 lines or so and paste them here.  Don't close gedit yet!!

Keith
Title: Re: Scangearmp2
Post by: 19goalie50nxQ on December 28, 2020, 03:08:28 pm
Hope these are correct:-

# if running bash
if [ -n "$BASH_VERSION" ]; then
    # include .bashrc if it exists
    if [ -f "$HOME/.bashrc" ]; then
   . "$HOME/.bashrc"
    fi
fi

# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
    PATH="$HOME/bin:$PATH"
fi

# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/.local/bin" ] ; then
    PATH="$HOME/.local/bin:$PATH"
fi

if [ -d "$HOME/.scangear" ] ; then
    PATH="$HOME/.scangear/scangearmp2-3.60-1-deb:$PATH"
fi
Title: Re: Scangearmp2
Post by: Keith on December 28, 2020, 03:13:45 pm
You omitted the comment line but it's not important. 
Yes; that's fine.  Now save the edited file and close gedit.

Then:
1. Reboot your computer
then
2. In a terminal, enter:
Code: [Select]
echo $PATH
and copy the output here.
Title: Re: Scangearmp2
Post by: 19goalie50nxQ on December 28, 2020, 03:20:48 pm
Copy of Terminal after reboot:-

[email protected]:~$ echo $PATH
/home/kevin/.scangear/scangearmp2-3.60-1-deb:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
[email protected]:~$
Title: Re: Scangearmp2
Post by: Keith on December 28, 2020, 03:24:59 pm
Good.

Now in your terminal enter:
Code: [Select]
install.sh
You will need to enter your password when asked. 
Paste the output here.

Keith
Title: Re: Scangearmp2
Post by: 19goalie50nxQ on December 28, 2020, 03:28:23 pm
Doesn't look good?

ScanGear MP
Version 3.60
Copyright CANON INC. 2007-2018

==================================================
Command executed = sudo dpkg -iG /home/kevin/.scangear/scangearmp2-3.60-1-deb/packages/scangearmp2_3.60-1_amd64.deb
(Reading database ... 376255 files and directories currently installed.)
Preparing to unpack .../scangearmp2_3.60-1_amd64.deb ...
Unpacking scangearmp2 (3.60-1) ...
dpkg: error processing archive /home/kevin/.scangear/scangearmp2-3.60-1-deb/packages/scangearmp2_3.60-1_amd64.deb (--install):
 trying to overwrite '/usr/lib/libcncpmslld2.so.3.0.0', which is also in package libcanon-proprio-bin 0.2+4.10-1804ubuntu1
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
 /home/kevin/.scangear/scangearmp2-3.60-1-deb/packages/scangearmp2_3.60-1_amd64.deb
Command executed = sudo dpkg -P scangearmp2
dpkg: warning: ignoring request to remove scangearmp2 which isn't installed
[email protected]:~$
Title: Re: Scangearmp2
Post by: Keith on December 28, 2020, 03:56:24 pm
Hmmm.  This is very similar to the error you had right at the beginning.  I don't know what's causing it but it looks like some library files are screwed up. 

Sorry, Old Bean, I am flummoxed. 
If simple-scan is not working I suggest that remove it and re-install it - at least that is easy.  Let me know if you want to do that. 

Keith
Title: Re: Scangearmp2
Post by: 19goalie50nxQ on December 28, 2020, 04:09:10 pm
Hi Keith.

I'm sorry I've caused you so much hassle, I go along with the suggestion about Simple Scan. Is it worth having another look at Rich J suggestions which got Simple Scan working with the Canon scanner before I started getting the abortive Scangear updates? or should I try removingt and re-install Simple Scan first.

Goalie
Title: Re: Scangearmp2
Post by: Keith on December 28, 2020, 04:21:40 pm
Hi Goalie.

Not to worry - it's what we're here for. 
The error message indicated a "broken pipe" so it looks like a file is missing in one of the libraries. 
OK, so let's try re-installing simple-scan:
Code: [Select]
sudo apt --purge remove simple-scan
Supply your password when asked and answer "y" when asked to continue.

Then
Code: [Select]
sudo apt install simple-scan
and report the result.
Title: Re: Scangearmp2
Post by: 19goalie50nxQ on December 28, 2020, 04:32:23 pm
Hi Keith.

No joy removed and reinstalled Simple Scan a couple of times and each time couldn't connect to Canon scanner. Not to worry I'll try Rich J suggestions again and will let you know how I get on later.

Once again many thanks for your assistance and patience with this problem. One more thing could you explain how I use the Text Editor which I find that its Xed that is the default editor in Mint which I didn't spot is also installed.

Goalie
Title: Re: Scangearmp2
Post by: Keith on December 28, 2020, 04:46:19 pm
Is this the Canon Pixma TR8550 printer that you mentioned ages ago? If so, can you print to it or is that function dead, too?  If it won't respond to anything perhaps uninstalling/re-installing the printer might help.  I've had to do that in the past.  Worth a try before anything else, I think. 

Re text editors.  They are really simple and very useful.  Generally one can't format the text but for many things that's fine and the files are smaller. 
When you open the editor, just start typing.  When you have finished, just save with an appropriate filename and destination, then close the editor - easy. 
When you come to writing Linux scripts you will be using a text editor all the time.  There are some fancy ones about (I use Kate) but one can set up gedit to make lines easy to find, etc.  Let me know if you are interested. 

Meanwhile:  sorry I couldn't help you.  I shall keep an eye on this topic and let you know if I have any ideas.

Keith
Title: Re: Scangearmp2
Post by: 19goalie50nxQ on December 28, 2020, 04:58:54 pm
Hi Keith.

Tried Rich J suggestions but no joy, it does say that it encountered a "broken pipe" in the details of the failure to connect. Its a pity I can't get the scanner to work I do use it quite often. its not "all doom & gloom" I can still print from the computer to the Canon which is the one . A thought did go through my mind as to your suggestion about remove and reinstall the printer drive I might try that. Will let you know how I get on if I decide to reinstate the printer drive etc.

Thanks also for your advice on using the text editor will try to use it more often.

Goalie
Title: Re: Scangearmp2
Post by: Keith on December 28, 2020, 07:01:42 pm
OK Goalie.  If that doesn't work, I have an idea about the broken pipe.

Keith
Title: Re: Scangearmp2
Post by: 19goalie50nxQ on December 28, 2020, 07:27:18 pm
Hi Keith.

A glutton for punishment.lol  I haven't tried removing and reinstalling the printer drive yet, to be honest I'm nervous about doing it in case I do something wrong and end up without the printer drive as well. So lets try your idea about the "broken pipe" worth a try.

Goalie
Title: Re: Scangearmp2
Post by: Keith on December 28, 2020, 07:33:56 pm
Well, I'm just clutching at straws, really, but try this:
Code: [Select]
sudo mv /usr/lib/libcncpmslld2.so.3.0.0   /usr/lib/libcncpmslld2.so.3.0.0.bak
Then
Code: [Select]
install.sh
....and post the result.

By the way: have you noticed that you can copy the code accurately by clicking on the [Select]?
Title: Re: Scangearmp2
Post by: 19goalie50nxQ on December 28, 2020, 07:38:43 pm
Keith.

Copy of result not sure if it has done the job or not :-
ScanGear MP
Version 3.60
Copyright CANON INC. 2007-2018

==================================================
Command executed = sudo dpkg -iG /home/kevin/.scangear/scangearmp2-3.60-1-deb/packages/scangearmp2_3.60-1_amd64.deb
(Reading database ... 376255 files and directories currently installed.)
Preparing to unpack .../scangearmp2_3.60-1_amd64.deb ...
Unpacking scangearmp2 (3.60-1) ...
dpkg: error processing archive /home/kevin/.scangear/scangearmp2-3.60-1-deb/packages/scangearmp2_3.60-1_amd64.deb (--install):
 trying to overwrite '/usr/lib/libcncpmslld2.so.3.0.0', which is also in package libcanon-proprio-bin 0.2+4.10-1804ubuntu1
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
 /home/kevin/.scangear/scangearmp2-3.60-1-deb/packages/scangearmp2_3.60-1_amd64.deb
Command executed = sudo dpkg -P scangearmp2
dpkg: warning: ignoring request to remove scangearmp2 which isn't installed
[email protected]:~$

Goalie

Title: Re: Scangearmp2
Post by: Keith on December 28, 2020, 07:43:46 pm
Are you sure you did the sudo mv /usr/lib/libcncpmslld2.so.3.0.0   /usr/lib/libcncpmslld2.so.3.0.0.bak command first?  As the first file (that Canon is complaining about) should no longer exist. 

Please try
Code: [Select]
sudo ls  /usr/lib/libcncpmslld*
and show the output.
Title: Re: Scangearmp2
Post by: 19goalie50nxQ on December 28, 2020, 07:49:19 pm
This is full copy of first try :-

[email protected]:~$ sudo mv /usr/lib/libcncpmslld2.so.3.0.0   /usr/lib/libcncpmslld2.so.3.0.0.bak
[sudo] password for kevin:         
mv: cannot stat '/usr/lib/libcncpmslld2.so.3.0.0': No such file or directory
[email protected]:~$ install.sh
==================================================

ScanGear MP
Version 3.60
Copyright CANON INC. 2007-2018

==================================================
Command executed = sudo dpkg -iG /home/kevin/.scangear/scangearmp2-3.60-1-deb/packages/scangearmp2_3.60-1_amd64.deb
Selecting previously unselected package scangearmp2.
(Reading database ... 376255 files and directories currently installed.)
Preparing to unpack .../scangearmp2_3.60-1_amd64.deb ...
Unpacking scangearmp2 (3.60-1) ...
dpkg: error processing archive /home/kevin/.scangear/scangearmp2-3.60-1-deb/packages/scangearmp2_3.60-1_amd64.deb (--install):
 trying to overwrite '/usr/lib/libcncpmslld2.so.3.0.0', which is also in package libcanon-proprio-bin 0.2+4.10-1804ubuntu1
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
 /home/kevin/.scangear/scangearmp2-3.60-1-deb/packages/scangearmp2_3.60-1_amd64.deb
Command executed = sudo dpkg -P scangearmp2
dpkg: warning: ignoring request to remove scangearmp2 which isn't installed
[email protected]:~$

I've not tried your latest code command until you have seen this copy let me know if you want me to try your latest code command.

Goalie
Title: Re: Scangearmp2
Post by: Keith on December 28, 2020, 07:54:17 pm
That is bizarre.  The first command tells us that the file does not exist (which what I expected) but the install command says it failed to overwrite it - implying that it is there. 
Yes, please do the last command just for completeness.
Title: Re: Scangearmp2
Post by: 19goalie50nxQ on December 28, 2020, 07:57:44 pm
Copy of last command :-

[email protected]:~$ sudo ls  /usr/lib/libcncpmslld*
[sudo] password for kevin:         
/usr/lib/libcncpmslld2.so.3  /usr/lib/libcncpmslld2.so.3.0.0.bak
[email protected]:~$

Goalie
Title: Re: Scangearmp2
Post by: Keith on December 28, 2020, 08:00:46 pm
Yes; that's what I was expecting.  So we must return the file back to its original state:
Code: [Select]
sudo mv /usr/lib/libcncpmslld2.so.3.0.0.bak   /usr/lib/libcncpmslld2.so.3.0.0
I'll have another think.
Title: Re: Scangearmp2
Post by: 19goalie50nxQ on December 28, 2020, 08:05:38 pm
Copy of your last command :-

[email protected]:~$ sudo mv /usr/lib/libcncpmslld2.so.3.0.0.bak   /usr/lib/libcncpmslld2.so.3.0.0
[sudo] password for kevin:         
[email protected]:~$

Keith I appreciate greatly what you are doing for me on this matter, I suggest we "put it to bed" for tonight and tackle it with a fresh mind tomorrow.

All for now.
Goalie
Title: Re: Scangearmp2
Post by: Keith on December 28, 2020, 08:07:12 pm
Good idea!

Keith
Title: Re: Scangearmp2
Post by: 19goalie50nxQ on December 29, 2020, 08:53:35 pm
Hi Keith.

I've removed and reinstalled the printer driver for my Canon Tr8550 printer, then tried to install the scangear without success. I 'surfed' the Ubuntu Forum and came across the link :- https://askubuntu.com/questions/1237107/scangear-driver-for-canon-ts3150-at-ubuntu-20-04-not-working

I know that this probably isn't the same for Linux Mint thought it might give you a lead to possibly find a solution to the Scangear problem.

Don't go out of your way to look at this until after New Year holiday, I'm able to use the printing features of the printers so I'm okay with them at the moment.

Best wishes for a Happy New Year.
Goalie
Title: Re: Scangearmp2
Post by: Keith on December 29, 2020, 09:20:45 pm
Hi Goalie.

From the URL you mention it seems that many people are having the same problem with their canon printer/scanners - which is not encouraging.
Several approaches are mentioned so it might be useful to try them all.  If none of those work, I have another suggestion.

In your terminal, enter:
Code: [Select]
sudo apt remove ippusbxd
then reboot.

Then:
Code: [Select]
scanimage -L
and post the output here.  (It might take a minute or so to find your scanner)

Keith
Title: Re: Scangearmp2
Post by: 19goalie50nxQ on December 29, 2020, 09:35:55 pm
Hi Keith.

Copy of commands in Teminal : _
[email protected]:~$ sudo apt remove ippusbxd
[sudo] password for kevin:         
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package 'ippusbxd' is not installed, so not removed
0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.
[email protected]:~$ scanimage -L

No scanners were identified. If you were expecting something different,
check that the scanner is plugged in, turned on and detected by the
sane-find-scanner tool (if appropriate). Please read the documentation
which came with this software (README, FAQ, manpages).
[email protected]:~$
Title: Re: Scangearmp2
Post by: Keith on December 29, 2020, 09:41:19 pm
Now try:
Code: [Select]
sudo usermod -a -G dialout $USER
and reboot
Title: Re: Scangearmp2
Post by: 19goalie50nxQ on December 29, 2020, 09:47:54 pm
Sorry no joy here.

No scanner detected after reboot the printer is switched on.
Title: Re: Scangearmp2
Post by: Keith on December 29, 2020, 09:51:01 pm
Try
Code: [Select]
export SANE_DEBUG_PIXMA=11 && scanimage > /dev/null
then
Code: [Select]
sudo scanimage -L
(and wait a  bit for a result)
Title: Re: Scangearmp2
Post by: 19goalie50nxQ on December 29, 2020, 09:53:43 pm
Sorry Keith thought we had done it this time.

[email protected]:~$ export SANE_DEBUG_PIXMA=11 && scanimage > /dev/null
[sanei_debug] Setting debug level of pixma to 11.
[pixma] pixma is compiled with pthread support.
[pixma] pixma version 0.17.37
[pixma] pixma_find_scanners() found 0 devices
scanimage: no SANE devices found
[email protected]:~$ sudo scanimage -L
[sudo] password for kevin:         

No scanners were identified. If you were expecting something different,
check that the scanner is plugged in, turned on and detected by the
sane-find-scanner tool (if appropriate). Please read the documentation
which came with this software (README, FAQ, manpages).
[email protected]:~$
Title: Re: Scangearmp2
Post by: 19goalie50nxQ on December 29, 2020, 09:56:58 pm
Keith I have installed both Simple Scan & Xsane so should these be picked up by your searches?

Goalie
Title: Re: Scangearmp2
Post by: Keith on December 29, 2020, 09:59:47 pm
As you were posting I was writing to suggest installing Xsane.  Have you tried it?
Title: Re: Scangearmp2
Post by: 19goalie50nxQ on December 29, 2020, 10:01:48 pm
I've tried both Xsane and Simple Scan and both say no scanner detected.

Doi you want to leave this until after New Year?
Title: Re: Scangearmp2
Post by: Keith on December 29, 2020, 10:16:06 pm
Another user elsewhere had the same problem with an HP printer on Mint.  His final solution (https://www.linuxquestions.org/questions/linux-software-2/xsane-not-working-in-mint-20-a-4175680585/#post6158608 (https://www.linuxquestions.org/questions/linux-software-2/xsane-not-working-in-mint-20-a-4175680585/#post6158608)) was to just re-install Mint - which worked.
I must add that recent Ubuntu updates have been messing my installation of Ubuntu 18.04 although my HP printer/scanner is still working, so you are not alone. 

I can't think of any other things to try, and suggest that you re-install Mint. 
I'm very sorry that I've been unable to solve your difficulties.

Keith
Title: Re: Scangearmp2
Post by: 19goalie50nxQ on December 29, 2020, 10:23:51 pm
Keith thanks for your perseverance with this problem and I will reboot Mint when the next upgrade is out in January.

Best wishes and I'll let you know how I get on with the reboot.

Goalie
Title: Re: Scangearmp2
Post by: Keith on December 29, 2020, 10:26:25 pm
I suspect that a simple upgrade will not suffice and a complete re-installation will be necessary - but good luck anyway.

Best wishes to you & yours for the new year.

Keith
Title: Re: Scangearmp2
Post by: 19goalie50nxQ on December 30, 2020, 09:59:23 am
Hi Keith.

Thanks for your reply I did mean to do a re-installation got mixed up with upgrade, was going to wait until Linux Mint 20.1 "Ulyssa" was fully released. However I'll try first to re-install Mint 19.3 "Tricia" will let you know how I get on.

Best regards
Goalie
Title: Re: Scangearmp2
Post by: Keith on December 30, 2020, 12:46:25 pm
OK Goalie - good luck
Title: Re: Scangearmp2
Post by: 19goalie50nxQ on January 02, 2021, 12:49:27 pm
Hi Keith.

Happy New Year I’ve solved my Canon printer problem but not as you would have expected.

I removed / re-installed the Linux Mint “Tricia” 19.3 and downloaded the printer and scanner drives from the Canon Pixma TR8550 web site. Then when I restarted the computer the Canon printer was receiving the printer jobs but wasn’t printing them. Also the computer wasn’t seeing the scanner, after various abortive attempts to get the printer and scanner to work I gave up.
My daughter uses Windows and has a HP Envy 5030 printer which we arranged to swap my Canon printer for her HP printer. After connecting the HP printer to my computer upon starting the Mint system it immediately recognised the HP Envy 5050 and I was able to print and scan without any problem.
My daughter says I can keep the HP printer and she will use the Canon printer, so it appears that the Mint 19.3 doesn’t work with the Canon printer as easily as the HP does.

So Keith I thank you once again for your help and patience with me on trying to get the Canon printer to work and I’ll sign this off as “solved” upon receipt of your reply.

Goalie.
Title: Re: Scangearmp2
Post by: Keith on January 02, 2021, 02:42:57 pm
And a Happy New Year to you, also, Goalie.

This is good news indeed. 

It's true that although Linux is very good at coping with almost any printer one throws at it, sometimes it's not up to the job. 
As you are using HP now I do recommend that you install the HP Linux & Imaging Printing system (HPLIP) available here: https://sourceforge.net/projects/hplip/files/hplip/ (https://sourceforge.net/projects/hplip/files/hplip/).  It might even come pre-installed with Mint.  HP is one of the few manufacturers that supports Linux well. 

Best regards,
   Keith

(Yes; please do mark your topic as solved)
Title: Re: Scangearmp2
Post by: 19goalie50nxQ on January 02, 2021, 03:20:10 pm
Hi Keith.

Thanks for your reply and best wishes for the New Year, I tried downloading the HP link but wasn't successful. I looked at the reviews and decided not to pursue it in case I caused  problem with the HP drivers already successfully installed.
So thanks once again for all your help etc. and I'll mark this topic closed.

Best regards
Goalie
Title: Re: Scangearmp2 SOLVED.
Post by: Keith on January 02, 2021, 03:26:30 pm
My pleasure, Goalie.  8)
SimplePortal 2.3.3 © 2008-2010, SimplePortal