0

Background
I installed the tesseract snap package sudo snap install tesseract.
Upon running tesseract, I got an error message about a missing data file.
I followed this answer which said, uninstall the snap and install via apt:

$ sudo snap remove tesseract
$ sudo apt install tesseract-ocr tesseract-ocr-eng

(I used synaptic instead of the command line to install the apt version).

Problem
Now, I get the following:

$ tesseract
bash: /snap/bin/tesseract: No such file or directory

But

$ whereis tesseract
tesseract: /usr/bin/tesseract /usr/share/man/man1/tesseract.1.gz

and

$ echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin

/usr/bin is earlier in the list than /snap/bin.

Is this one of those systemd things where I have to poke it before it can see a change?
If so, what to poke and how?

AlanQ
  • 115

0 Answers0