skip to Main Content

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


  1. Chosen as BEST ANSWER

    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
    

  2. The issue has been solved in https://github.com/tesseract-ocr/tesseract/issues/4343.

    tesseract-ocr is installable once again from the tesseract-ocr-devel and tesseract-ocr-daily PPAs.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search