Not able install tesseract ocr on ubuntu 17.04

622 views
Skip to first unread message

RT-Rakesh

unread,
May 31, 2018, 3:04:19 AM5/31/18
to tesseract-ocr
user@computer:~$ sudo apt install tesseract-ocr
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libgnutls-openssl27 postfix-sqlite
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  libgif7 liblept5 libtesseract-data libtesseract3 tesseract-ocr-eng
  tesseract-ocr-equ tesseract-ocr-osd
The following NEW packages will be installed:
  libgif7 liblept5 libtesseract-data libtesseract3 tesseract-ocr
  tesseract-ocr-eng tesseract-ocr-equ tesseract-ocr-osd
0 upgraded, 8 newly installed, 0 to remove and 180 not upgraded.
Need to get 945 kB/14.6 MB of archives.
After this operation, 57.5 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Err:1 http://us.archive.ubuntu.com/ubuntu zesty/main amd64 libgif7 amd64 5.1.4-0.4
  404  Not Found [IP: 91.189.91.23 80]
Err:2 http://us.archive.ubuntu.com/ubuntu zesty/universe amd64 liblept5 amd64 1.74.1-1
  404  Not Found [IP: 91.189.91.23 80]
E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/g/giflib/libgif7_5.1.4-0.4_amd64.deb  404  Not Found [IP: 91.189.91.23 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?


This is the error being thrown, can some one help me with how to solve this issue. 

ShreeDevi Kumar

unread,
May 31, 2018, 5:54:48 AM5/31/18
to tesser...@googlegroups.com
Remove the existing version, then


sudo add-apt-repository ppa:alex-p/tesseract-ocr
sudo apt-get update

sudo apt install tesseract-ocr

ShreeDevi
____________________________________________________________
भजन - कीर्तन - आरती @ http://bhajans.ramparivar.com

--
You received this message because you are subscribed to the Google Groups "tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tesseract-ocr+unsubscribe@googlegroups.com.
To post to this group, send email to tesser...@googlegroups.com.
Visit this group at https://groups.google.com/group/tesseract-ocr.
To view this discussion on the web visit https://groups.google.com/d/msgid/tesseract-ocr/06faa78f-7a57-4749-9cf2-e9bdce5721c1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Александр Поздняков

unread,
May 31, 2018, 2:06:43 PM5/31/18
to tesseract-ocr
You need to replace in /etc/apt/sources.list repository http://us.archive.ubuntu.com/ubuntu at http://old-releases.ubuntu.com/ubuntu/


sudo apt-get update
sudo apt install tesseract-ocr 

As for the beta version, I'll think ...

четверг, 31 мая 2018 г., 10:04:19 UTC+3 пользователь RT-Rakesh написал:

RT-Rakesh

unread,
Jun 1, 2018, 12:38:50 AM6/1/18
to tesseract-ocr

Hi ShreeDevi,

Thanks for your response.

I am still getting this error when trying with the command that you shared.
Please assist me how to go about here. 

Thank you very much.

user@computer:~$ sudo apt install tesseract-ocr 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libgnutls-openssl27 postfix-sqlite
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  libgif7 liblept5 libtesseract4 tesseract-ocr-eng tesseract-ocr-osd
The following NEW packages will be installed:
  libgif7 liblept5 libtesseract4 tesseract-ocr tesseract-ocr-eng tesseract-ocr-osd
0 upgraded, 6 newly installed, 0 to remove and 180 not upgraded.
Need to get 6,938 kB of archives.
After this operation, 21.6 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Err:1 http://us.archive.ubuntu.com/ubuntu zesty/main amd64 libgif7 amd64 5.1.4-0.4
  404  Not Found [IP: 91.189.91.23 80]
Get:2 http://ppa.launchpad.net/alex-p/tesseract-ocr/ubuntu zesty/main amd64 liblept5 amd64 1.74.4-1+nmu1ppa1~zesty1 [929 kB]
Get:3 http://ppa.launchpad.net/alex-p/tesseract-ocr/ubuntu zesty/main amd64 libtesseract4 amd64 4.00~git2192-10a8a67c-1ppa1~zesty1 [1,180 kB]
Get:4 http://ppa.launchpad.net/alex-p/tesseract-ocr/ubuntu zesty/main amd64 tesseract-ocr-eng all 4.00~git15-45ed289-1ppa1~zesty1 [1,590 kB]                                                               
Get:5 http://ppa.launchpad.net/alex-p/tesseract-ocr/ubuntu zesty/main amd64 tesseract-ocr-osd all 4.00~git15-45ed289-1ppa1~zesty1 [2,989 kB]                                                               
Get:6 http://ppa.launchpad.net/alex-p/tesseract-ocr/ubuntu zesty/main amd64 tesseract-ocr amd64 4.00~git2192-10a8a67c-1ppa1~zesty1 [219 kB]                                                                
Fetched 6,907 kB in 25s (271 kB/s)                                                                                                                                                                         
E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/g/giflib/libgif7_5.1.4-0.4_amd64.deb  404  Not Found [IP: 91.189.91.23 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?


To unsubscribe from this group and stop receiving emails from it, send an email to tesseract-oc...@googlegroups.com.

ShreeDevi Kumar

unread,
Jun 1, 2018, 3:07:10 AM6/1/18
to tesser...@googlegroups.com
Please see the email from Alex and follow instructions in that.

Александр Поздняков

unread,
Jun 1, 2018, 6:37:57 AM6/1/18
to tesseract-ocr
tesseract 4.00 beta 

Instructions


1. Open a terminal and install apt-transport-https

sudo apt-get install apt-transport-https


2. Open /etc/apt/sources.list

Add  this line: deb https://notesalexp.org/tesseract-ocr/zesty/ zesty main

Replace repository: 

deb http://us.archive.ubuntu.com/ubuntu/ zesty main restricted universe multiverse 

deb http://us.archive.ubuntu.com/ubuntu/ zesty-security main restricted universe multiverse

deb http://us.archive.ubuntu.com/ubuntu/ zesty-updates main restricted universe multiverse

deb http://us.archive.ubuntu.com/ubuntu/ zesty-proposed main restricted universe multiverse 

deb http://us.archive.ubuntu.com/ubuntu/ zesty-backports main restricted universe multiverse 

at 

deb http://old-releases.ubuntu.com/ubuntu/ zesty main restricted universe multiverse 

deb http://old-releases.ubuntu.com/ubuntu/ zesty-security main restricted universe multiverse 

deb http://old-releases.ubuntu.com/ubuntu/ zesty-updates main restricted universe multiverse 
deb http://old-releases.ubuntu.com/ubuntu/ zesty-proposed main restricted universe multiverse 
deb http://old-releases.ubuntu.com/ubuntu/ zesty-backports main restricted universe multiverse 

Save and close sources.list


3.Fetch and install the GnuPG key

sudo apt-get update -oAcquire::AllowInsecureRepositories=true
sudo apt-get install notesalexp-keyring -oAcquire::AllowInsecureRepositories=true
sudo apt-get update


4. Enjoy

sudo apt-get install tesseract-ocr

P.S. in my humble opinion, you need to upgrade to ubuntu 18.04

пятница, 1 июня 2018 г., 10:07:10 UTC+3 пользователь shree написал:
Reply all
Reply to author
Forward
0 new messages