question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

apt-get: unable to locate package (i.e. nano, tesseract-ocr)

See original GitHub issue

In CodeEnvy terminal of the docker container, I try to install tesseract libraries via apt-get, but the package name cannot be located. It works fine in my local Ubuntu (14 / Trusty) docker container, but not on Codenvy (Ubuntu 16 / Xenial).

user@6408be1317f2:~/tomcat8$ sudo apt-get install tesseract-ocr                                                                                                                                   
Reading package lists... Done                                                                                                                                                                     
Building dependency tree                                                                                                                                                                          
Reading state information... Done                                                                                                                                                                 
E: Unable to locate package tesseract-ocr 

I also tried to install nano, but that package could also not be found.

user@6408be1317f2:~/tomcat8$ sudo apt-get install nano                                                                                                                                            
Reading package lists... Done                                                                                                                                                                     
Building dependency tree                                                                                                                                                                          
Reading state information... Done                                                                                                                                                                 
E: Unable to locate package nano

I found this on StackExchange/AskUbuntu: http://askubuntu.com/questions/378558/unable-to-locate-package-while-trying-to-install-packages-by-apt, but not sure what to make of it.

From my understanding, nano and tesseract-ocr should also be available for Ubuntu Xenial.

http://packages.ubuntu.com/xenial/nano http://packages.ubuntu.com/xenial/tesseract-ocr (this one is in the [universe] repository)

I checked /etc/apt/sources.list and all Ubuntu repos including the universe repository is enabled there.

Any idea?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

24reactions
tolushacommented, Nov 1, 2016

@mathiasconradt Hello. Try sudo apt-get update and then sudo apt-get install tesseract-ocr

0reactions
Bishwas-pycommented, May 8, 2021

You need to add all the repositories in sources.list, check this easy solution.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to locate and install package after running 'sudo apt ...
Initially I tried to install tesseract-ocr on 16.04. It could not install the package as some libraries were not found/up-to-date. I ran sudo ......
Read more >
[Solved] How to install tesseract-ocr package
I type sudo apt-get install tesseract-ocr inside php container and got E: Unable to locate package tesseract-ocr however it's a common package ......
Read more >
Not able install tesseract ocr on ubuntu 17.04 - Google Groups
Use 'sudo apt autoremove' to remove them. The following additional packages will be installed: libgif7 liblept5 libtesseract-data libtesseract3 ...
Read more >
Install Tesseract OCR on Linux
This tutorial explains how to install Tesseract on Linux using both the Debian apt packages manager and the git repositories for other Linux...
Read more >
How To Install Tesseract OCR 5 on Ubuntu 22.04|20.04|18.04
Step 1 : Update your system. Begin the installation process by updating the APT Index. · Step 2 : Add Tesseract OCR 5...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found