E:储存库'http://ppa.launchpad.net/alex-p/tesseract-ocr/ubuntu focus Release'没有发布文件

问题描述 投票:2回答:1

我正在尝试在docker映像上安装tesseract-ocr版本4.1.1,但是虽然我已经在本地计算机上安装了该版本,但没有找到版本。然后,我尝试添加它的存储库,以便我可以修复错误,但又出现另一个错误E: The repository 'http://ppa.launchpad.net/alex-p/tesseract-ocr/ubuntu focal Release' does not have a Release file

这是我在Dockerfile中使用的用于创建用于安装tesseract的Docker映像的命令集

RUN file="$(apt-get update && \
            apt-get install -y apt-utils && \
            apt-get install -y curl && \
            apt-get update && \
            apt-get install -y software-properties-common && \
            apt-get update && \
            add-apt-repository ppa:alex-p/tesseract-ocr -y && \  # the error here
            apt-get update && \
            apt install tesseract-ocr=4.1.1-1ppa1~xenial1 -y)" && echo $file # the version I need

我已经进行了很多搜索,但仍然无法安装。如何解决此错误,或使用其他方式安装tesseract 4.1.1!?

我的基本图像是python 3.7.6

注意:我无法使用tesseract docker映像来避免其余模块的版本错误

docker dockerfile ubuntu-16.04 tesseract
1个回答
0
投票

我遇到了同样的问题,您是否找到了解决方案?谢谢

© www.soinside.com 2019 - 2024. All rights reserved.