SthPhoenix / InsightFace-REST

InsightFace REST API for easy deployment of face recognition services with TensorRT in Docker.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Package 'libturbojpeg' has no installation candidate

GregoryZeng opened this issue · comments

Hi, I was running bash deploy_cpu.sh and got this error. Do you have any suggestion? Thanks.

Sending build context to Docker daemon  3.729MB
Step 1/14 : FROM python:3.8-slim
3.8-slim: Pulling from library/python
69692152171a: Pull complete
66a3c154490a: Pull complete
3e35bdfb65b2: Pull complete
f2c4c4355073: Pull complete
21bb8d414880: Pull complete
Digest: sha256:1156cbb1f6a7660dcce3e2f3906a149427fbee71aea0b49953bccf0cc7a3bcaa
Status: Downloaded newer image for python:3.8-slim
 ---> 40663d3c7bf7
Step 2/14 : ENV LC_ALL=C.UTF-8
 ---> Running in d6dfdc1243c9
Removing intermediate container d6dfdc1243c9
 ---> 3b1f9ca09012
Step 3/14 : ENV LANG=C.UTF-8
 ---> Running in 880da5716b1a
Removing intermediate container 880da5716b1a
 ---> 4575dcd4f5fe
Step 4/14 : RUN apt-get update && apt-get install -y libgl1-mesa-glx protobuf-compiler libprotoc-dev libb64-0d libglib2.0-0     libgomp1 gcc curl  libturbojpeg && rm -rf /var/lib/apt/lists/*
 ---> Running in c024e868d09e
Get:1 http://security.debian.org/debian-security buster/updates InRelease [65.4 kB]
Get:2 http://security.debian.org/debian-security buster/updates/main amd64 Packages [289 kB]
Get:3 http://deb.debian.org/debian buster InRelease [121 kB]
Get:4 http://deb.debian.org/debian buster-updates InRelease [51.9 kB]
Get:5 http://deb.debian.org/debian buster/main amd64 Packages [7907 kB]
Get:6 http://deb.debian.org/debian buster-updates/main amd64 Packages [10.9 kB]
Fetched 8445 kB in 5s (1589 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
Package libturbojpeg is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  libturbojpeg0

E: Package 'libturbojpeg' has no installation candidate
The command '/bin/sh -c apt-get update && apt-get install -y libgl1-mesa-glx protobuf-compiler libprotoc-dev libb64-0d libglib2.0-0     libgomp1 gcc curl  libturbojpeg && rm -rf /var/lib/apt/lists/*' returned a non-zero code: 100
Starting 1 workers on CPU
Error response from daemon: No such container: insightface-rest-cpu
Error: No such container: insightface-rest-cpu
--- Starting container insightface-rest-cpu with CPU at port 18081
Unable to find image 'insightface-rest:v0.5.9.9-cpu' locally
docker: Error response from daemon: pull access denied for insightface-rest, repository does not exist or may require 'docker login': denied: requested access to the resource is denied.
See 'docker run --help'

Try replacing libturbojpeg with libturbojpeg0 in dockerfile. Unfortunately I haven't tested CPU build after latest updates for a while. GPU version docker image is based on Ubuntu, while CPU version is based on Debian, so indeed package distributions may be different.

Try replacing libturbojpeg with libturbojpeg0 in dockerfile. Unfortunately I haven't tested CPU build after latest updates for a while. GPU version docker image is based on Ubuntu, while CPU version is based on Debian, so indeed package distributions may be different.

Thanks. It works.
Besides, I find that git should be included in the Dockerfile as well.