I’m trying to update Tesseract OCR (tesseract-ocr
) from one of these PPA archives: ppa:alex-p/tesseract-ocr-devel
or ppa:alex-p/tesseract-ocr-daily
on Ubuntu 22.04. 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
This started to happen on Oct 30 and subsequent days, while on Oct 29 and earlier it used to install correctly.
To reproduce:
$ 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"
2
Answers
A workaround is to switch to one of stable PPAs, e.g.
ppa:alex-p/tesseract-ocr5
:The issue has been solved in https://github.com/tesseract-ocr/tesseract/issues/4343.
tesseract-ocr
is installable once again from thetesseract-ocr-devel
andtesseract-ocr-daily
PPAs.