Scangearmp2 SOLVED.

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

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:
echo $PATH

and copy the output here.

Copy of Terminal after reboot:-

kevin@kevin-desktop:~$ 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
kevin@kevin-desktop:~$

Good.

Now in your terminal enter:

install.sh

You will need to enter your password when asked.
Paste the output here.

Keith

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
kevin@kevin-desktop:~$

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

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

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:

sudo apt --purge remove simple-scan

Supply your password when asked and answer “y” when asked to continue.

Then

sudo apt install simple-scan

and report the result.

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

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

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

OK Goalie. If that doesn’t work, I have an idea about the broken pipe.

Keith

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

Well, I’m just clutching at straws, really, but try this:

sudo mv /usr/lib/libcncpmslld2.so.3.0.0   /usr/lib/libcncpmslld2.so.3.0.0.bak

Then

install.sh

…and post the result.

By the way: have you noticed that you can copy the code accurately by clicking on the [Select]?

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
kevin@kevin-desktop:~$

Goalie

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

sudo ls  /usr/lib/libcncpmslld*

and show the output.

This is full copy of first try :-

kevin@kevin-desktop:~$ 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
kevin@kevin-desktop:~$ 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
kevin@kevin-desktop:~$

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

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.

Copy of last command :-

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

Goalie

Yes; that’s what I was expecting. So we must return the file back to its original state:

sudo mv /usr/lib/libcncpmslld2.so.3.0.0.bak   /usr/lib/libcncpmslld2.so.3.0.0

I’ll have another think.