The Linux Community Forum

General Help & Advice => Linux Support => Topic started by: Matilda on June 16, 2021, 05:00:55 pm

Title: My scanner doesn´t work on Ubuntu
Post by: Matilda on June 16, 2021, 05:00:55 pm
I plugged my old windows scanner into my MacBook running on Ubuntu and although the light on the scanner is on the Macbook says that it cannot connect to it.
There´s nothing wrong with the scanner as it works great on my Peppermint netbook. What could be the problem guys?
Title: Re: My scanner doesn´t work on Ubuntu
Post by: Brian000 on June 16, 2021, 09:15:35 pm
Hi,

Could you kindly share some important details, like the make and model of the scanner.

...But, the light - that may just be power, which is not any confirmation of connectivity.


Title: Re: My scanner doesn´t work on Ubuntu
Post by: Matilda on June 17, 2021, 12:24:23 pm
Packard Bell Diamond 1200.
Title: Re: My scanner doesn´t work on Ubuntu
Post by: Keith on June 17, 2021, 01:55:35 pm
With the scanner plugged in try:
Code: [Select]
scanimage -L
and report the output.
Title: Re: My scanner doesn?t work on Ubuntu
Post by: Brian000 on June 17, 2021, 08:38:07 pm
Based on this it's supported but looks to require some manual work

https://ubuntuforums.org/showthread.php?t=771976 (https://ubuntuforums.org/showthread.php?t=771976)


Edit: adding URL for SANE
http://www.sane-project.org/cgi-bin/...model=&bus=usb (http://www.sane-project.org/cgi-bin/...model=&bus=usb)
Title: Re: My scanner doesn´t work on Ubuntu
Post by: Rich J on June 18, 2021, 06:20:48 am
You might try this - https://forums.linuxmint.com/viewtopic.php?t=150579

Copy and paste the instructions, in turn, into terminal.

(found by googling your scanner model)

Rich
Title: Re: My scanner doesn´t work on Ubuntu
Post by: emegra on June 18, 2021, 09:13:28 am
Hi Melissa

I had the same scanner Melissa with the same issue,

Your scanner needs a firmware file, placed in /usr/share/sane/gt68xx/, I have this file if you private message me your email address I'll send it to you and then help you place it in the right path, if you're not comfortable giving me your email address we'll find another way to pass the file on to you


Graeme
Title: Re: My scanner doesn´t work on Ubuntu
Post by: Matilda on June 19, 2021, 01:52:09 pm
Hi Melissa

I had the same scanner Melissa with the same issue,

Your scanner needs a firmware file, placed in /usr/share/sane/gt68xx/, I have this file if you private message me your email address I'll send it to you and then help you place it in the right path, if you're not comfortable giving me your email address we'll find another way to pass the file on to you


Graeme

Thank you very much Graeme. I now remember that you had sent me firmware for my Peppermint netbook a couple of years ago. It works great on the netbook so I expect it'll do the trick for the Ubuntu MacBook too.
Title: Re: My scanner doesn´t work on Ubuntu
Post by: emegra on June 23, 2021, 03:01:33 pm
When you're ready Matilda, place the file I sent you in your ~/Downloads folder then post here when it's done and we'll take it from there





Graeme
Title: Re: My scanner doesn´t work on Ubuntu
Post by: Matilda on June 26, 2021, 03:26:05 pm
It's been sat there for a few days waiting for its instructions Mr. Emegra!
Title: Re: My scanner doesn´t work on Ubuntu
Post by: emegra on July 06, 2021, 07:14:25 pm
Hi Matilda
Can you confirm you have the file I sent you in ~/Downloads ?
Title: Re: My scanner doesn´t work on Ubuntu
Post by: Matilda on July 16, 2021, 06:55:17 pm
Hi Matilda
Can you confirm you have the file I sent you in ~/Downloads ?

Yes I did in the above message, written on June 26th!

Quote
It's been sat there for a few days waiting for its instructions Mr. Emegra!
Title: Re: My scanner doesn´t work on Ubuntu
Post by: emegra on July 19, 2021, 05:24:09 pm
Ok Matilda

copy & paste the following command into the terminal then post back the terminal output

Code: [Select]
sudo mkdir /usr/share/sane


Graeme

Title: Re: My scanner doesn´t work on Ubuntu
Post by: Matilda on July 30, 2021, 12:48:18 am
[email protected]:~$ sudo mkdir /usr/share/sane
[sudo] password for avon:
mkdir: cannot create directory ‘/usr/share/sane’: File exists
[email protected]:~$

Title: Re: My scanner doesn´t work on Ubuntu
Post by: Matilda on July 30, 2021, 12:49:31 am
With the scanner plugged in try:
Code: [Select]
scanimage -L
and report the output.

[email protected]:~$ scanimage -L
device `gt68xx:libusb:001:016' is a Mustek BearPaw 1200 CU flatbed scanner
[email protected]:~$

Title: Re: My scanner doesn´t work on Ubuntu
Post by: Matilda on July 30, 2021, 12:54:29 am
You might try this - https://forums.linuxmint.com/viewtopic.php?t=150579

Copy and paste the instructions, in turn, into terminal.

(found by googling your scanner model)

Rich

Started that, but got a scary response, so did not go any further.
[email protected]:~$ sudo apt-get install xsane
[sudo] password for avon:
Sorry, try again.
[sudo] password for avon:
E: Could not get lock /var/lib/dpkg/lock-frontend. It is held by process 25667 (unattended-upgr)
N: Be aware that removing the lock file is not a solution and may break your system.
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?
[email protected]:~$


Title: Re: My scanner doesn´t work on Ubuntu
Post by: Keith on July 30, 2021, 10:02:59 am
That's OK - the system was updating itself in the background so couldn't let you do anything with the system.
If you try again, it should be alright. 

Keith
Title: Re: My scanner doesn´t work on Ubuntu
Post by: Matilda on July 31, 2021, 08:20:00 pm
No, it still doesn't work! It still says it is unable to connect to the scanner, so yet again I have to use my tiny Peppermint netbook, which takes ages to boot up, to scan documents..grrr--
Title: Re: My scanner doesn´t work on Ubuntu
Post by: Matilda on July 31, 2021, 08:21:50 pm
I'm not very impressed with Ubuntu as an OS to be honest. Peppermint is much better! I'll have to take this MacBook to the computer shop in the near future and ask them to get rid of Ubuntu and put the latest Peppermint distro on it.
Title: Re: My scanner doesn´t work on Ubuntu
Post by: emegra on August 01, 2021, 04:47:02 pm
Hi Matila

There's a few steps we have to go through I needed to know /usr/share/sane was on your system before we could proceed

please copy and paste into the terminal the following command

Code: [Select]
sudo mkdir /usr/share/sane/gt68xx

then let me know when you've done that

Graeme
Title: Re: My scanner doesn´t work on Ubuntu
Post by: Matilda on August 01, 2021, 06:27:08 pm


Nothing much seemed to happen there Emegra!

[email protected]:~$ sudo mkdir /usr/share/sane/gt68xx
[sudo] password for avon:
[email protected]:~$


Title: Re: My scanner doesn´t work on Ubuntu
Post by: Keith on August 01, 2021, 06:33:48 pm
The command just created a directory.  You can check using
Code: [Select]
ls /usr/share/sane/gt68xx
Emegra will add file(s) later.
Title: Re: My scanner doesn´t work on Ubuntu
Post by: emegra on August 01, 2021, 06:36:44 pm
Quote
Nothing much seemed to happen there Emegra!

That's ok, all we need to do now is place the file I sent you into that folder you just created and the set the permissions, so paste the following into the terminal

Code: [Select]
cp ~/Downloads/PS1Dfw.usb /usr/share/sane/gt68xx/

Then post output of

Code: [Select]
ls -l  /usr/share/sane/gt68xx


Graeme
Title: Re: My scanner doesn´t work on Ubuntu
Post by: Matilda on August 01, 2021, 06:37:24 pm
The command just created a directory.  You can check using
Code: [Select]
ls /usr/share/sane/gt68xx
Emegra will add file(s) later.

Ok. I have to admit I have no idea what a directory is unless I Google it. Do you think my brother put an old version of Ubuntu on this MacBook? It seems to be taking a lot of effort to load software unlike Peppermint. I had the same problem with Ubuntu with the little netbook my other brother gave me and then Mark Greaves (bless him) told me to post it to him, and he put Peppermint on it. He always used to say that laptops/netbooks work best with Peppermint.
Title: Re: My scanner doesn´t work on Ubuntu
Post by: Matilda on August 01, 2021, 06:39:50 pm
It still doesn't like it!

[email protected]:~$ cp ~/Downloads/PS1Dfw.usb /usr/share/sane/gt68xx/
cp: cannot create regular file '/usr/share/sane/gt68xx/PS1Dfw.usb': Permission denied
[email protected]:~$

Title: Re: My scanner doesn´t work on Ubuntu
Post by: emegra on August 01, 2021, 06:43:59 pm
Ok that's my fault Matilda I'm sorry

try this


Code: [Select]
sudo cp ~/Downloads/PS1Dfw.usb /usr/share/sane/gt68xx/

Then

Code: [Select]
ls -l  /usr/share/sane/gt68xx

Then post the output



Graeme

Title: Re: My scanner doesn´t work on Ubuntu
Post by: Matilda on August 01, 2021, 06:47:05 pm
Oh well, never mind guys. I will call the computer shop in town tomorrow and see how much they will charge me to wipe this Ubuntu off and put the latest Peppermint distro on this MacBook. This Ubuntu seems to have too many problems. My bro probably used an old version! I told him last time he put Ubuntu on a computer for me ( which was the netbook my other brother gave me, which Mark later on put Peppermint on) that he should only put Peppermint onto laptops and netbooks. Ubuntu doesn't seem suited to them.
Title: Re: My scanner doesn´t work on Ubuntu
Post by: Matilda on August 01, 2021, 06:48:46 pm
No idea if this is what you were hoping for, but here it is!

[email protected]:~$ sudo cp ~/Downloads/PS1Dfw.usb /usr/share/sane/gt68xx/
[sudo] password for avon:
[email protected]:~$ ls -l  /usr/share/sane/gt68xx
total 8
-rw-r--r-- 1 root root 7256 Aug  1 18:47 PS1Dfw.usb
[email protected]:~$

Title: Re: My scanner doesn´t work on Ubuntu
Post by: Matilda on August 01, 2021, 06:50:24 pm
You do know that the software is called document scanner on Ubuntu and not simple scanner as in Peppermint? It is not the same one.
Title: Re: My scanner doesn´t work on Ubuntu
Post by: emegra on August 01, 2021, 06:52:16 pm
Ok we're nearly there Matilda
now copy & paste the following command into the terminal

Code: [Select]
sudo chmod 744 /usr/share/sane/gt68xx/PS1Dfw.usb

then once again

Code: [Select]
sudo ls -l  /usr/share/sane/gt68xx

then post the output

Graeme
Title: Re: My scanner doesn´t work on Ubuntu
Post by: Matilda on August 01, 2021, 06:58:36 pm
Hope it turned up what you are looking for!

[email protected]:~$ sudo chmod 744 /usr/share/sane/gt68xx/PS1Dfw.usb
[sudo] password for avon:
[email protected]:~$ sudo ls -l  /usr/share/sane/gt68xx
total 8
-rwxr--r-- 1 root root 7256 Aug  1 18:47 PS1Dfw.usb
[email protected]:~$

I have no idea what any of this means, especially ´avon´
Title: Re: My scanner doesn´t work on Ubuntu
Post by: emegra on August 01, 2021, 07:01:30 pm
Ok that looks good to me

Try your scanner now



Graeme
Title: Re: My scanner doesn´t work on Ubuntu
Post by: Matilda on August 01, 2021, 07:11:42 pm
Ok that looks good to me

Try your scanner now



Graeme

Okay- I will go and get it from the hessian bag I keep it in, in my bedroom. Yeah--I need some sort of desk for all my computer stuff lol.
Title: Re: My scanner doesn´t work on Ubuntu
Post by: Matilda on August 01, 2021, 07:18:09 pm
Nope, still says it is unable to connect. Don´t worry about it. I will get this Ubuntu wiped off and have Peppermint put on it instead. It never took so much effort to try and get things to work on Peppermint. I will shut this Macbook down until I can get the money together to get Peppermint put on it. (I think they will charge me about £50).
Title: Re: My scanner doesn´t work on Ubuntu
Post by: emegra on August 01, 2021, 07:24:11 pm
Matilda wiping Ubuntu and installing Peppermint won't fix the problem, Peppermint is Ubuntu, don't be disheartened there's a few other firmware files we can try, The one I tried was the one I thought most likely to work but maybe I was wrong, so if you're prepared to stick with me I'm prepared to keep trying

What do you want to do ?


Graeme
Title: Re: My scanner doesn´t work on Ubuntu
Post by: Matilda on August 01, 2021, 07:46:31 pm
Matilda wiping Ubuntu and installing Peppermint won't fix the problem, Peppermint is Ubuntu, don't be disheartened there's a few other firmware files we can try, The one I tried was the one I thought most likely to work but maybe I was wrong, so if you're prepared to stick with me I'm prepared to keep trying

What do you want to do ?


Graeme

I've used this scanner so many times over a period of about 7 years on Peppermint and no problems with it. I didn't have so many firmware installation issues with Peppermint. It's not just the scanner but also the DVD package. That won't work either, but it works on the Peppermint netbook.

Peppermint works differently to Ubuntu. It is simpler and easier to use the software manager etc. I hardly have had any problems getting packages uploaded in the past using Peppermint. Mark always said it was the best distro for netbooks and laptops!

I've put the MacBook away for now. I'm having a think if I even want to keep it because it has some keys that stick, and a screen so reflective it is like a mirror! I can't really use it to watch anything (which is a shame cos of the big screen) unless it is a dim day or evening, and it needs to be plugged in all the time as the battery doesn't have much charge. Now, the netbook also needs to be plugged in, but it isn't big and heavy like the MacBook and it also gets very hot, so I got it a cooling mat which works, but doesn't stay as cool as the Chromebook does.
I might give it to my mate Dave to do his typing on (he writes zines). I already have the netbook and my Chromebook which between them, do all I want them to do.

I'll let you know in a couple of days what I've decided to do. Thanks for your help so far.
Title: Re: My scanner doesn´t work on Ubuntu
Post by: Matilda on September 12, 2021, 07:49:51 pm
Well I´m using the Macbook again! My Chromebook is second hand and some sites have updated Chrome and they are not supporting it. Very annoying. I have another post about that.

I´m getting given another scanner off a local bloke this coming week, so it might work better on the Macbook. I will post about that when I have it. In the meantime the Peppermint netbook works the scanner I already have very well.
SimplePortal 2.3.3 © 2008-2010, SimplePortal