Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tesseract-ocr no longer installable on Ubuntu:22.04 due to missing libleptonica6 dependency #4343

Open
mirekphd opened this issue Nov 1, 2024 · 3 comments

Comments

@mirekphd
Copy link

mirekphd commented Nov 1, 2024

Current Behavior

I'm trying to install Tesseract OCR (tesseract-ocr) on Ubuntu (from one of PPA archives: ppa:alex-p/tesseract-ocr-devel or ppa:alex-p/tesseract-ocr-daily). However, the installation fails due to libleptonica6 no longer being installable:

 #32 8.592 The following packages have unmet dependencies:
 #32 8.648  libtesseract5 : Depends: libleptonica6 (>= 1.75.3) but it is not installable
 #32 8.649  tesseract-ocr : Depends: libleptonica6 (>= 1.75.3) but it is not installable

Expected Behavior

Latest tesseract-ocr should be installable on Ubuntu 22.04.

Suggested Fix

No response

tesseract -v

latest

Operating System

No response

Other Operating System

Ubuntu 22.04

uname -a

No response

Compiler

No response

CPU

No response

Virtualization / Containers

To reproduce in Docker:

$ docker run --rm -it --name test -u 0 ubuntu:22.04 bash -c "apt update && apt install -y software-properties-common && add-apt-repository -y ppa:alex-p/tesseract-ocr-devel && apt update && apt install -y tesseract-ocr"
# note you can swap the PPA archive to `ppa:alex-p/tesseract-ocr-daily` or `ppa:alex-p/tesseract-ocr5.3` with the same result 

Other Information

This started to happen on Oct 30 and subsequent days, while on Oct 29 and earlier it used to install correctly.

@mirekphd
Copy link
Author

mirekphd commented Nov 1, 2024

A workaround is to switch to one of stable PPAs, e.g. ppa:alex-p/tesseract-ocr5:

$ docker run --rm -it --name test -u 0 ubuntu:22.04 bash -c "apt update && apt install -y software-properties-common && add-apt-repository -y ppa:alex-p/tesseract-ocr5 && apt update && apt install -y tesseract-ocr && tesseract --version"
[..]
Setting up liblept5:amd64 (1.82.0-3build1) ...
Setting up libtesseract5:amd64 (5.4.1-1ppa1~jammy1) ...
[..]
tesseract 5.4.1
 leptonica-1.82.0

@stweil
Copy link
Contributor

stweil commented Nov 1, 2024

Did you report this to the Ubuntu maintainers?

@amitdo
Copy link
Collaborator

amitdo commented Nov 2, 2024

CC: @AlexanderP

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants