如何满足Mint Tara上“ docker-compose up”的libmysqlclient-dev要求?

时间:2019-02-19 16:37:58

标签: mysql docker linuxmint

我有:

# docker-compose up
Building app
Step 1/6 : FROM python:3
 ---> ac069ebfe1e1
Step 2/6 : RUN apt-get update     && apt-get install -y --no-install-recommends         mysql-client libmysqlclient-dev
 ---> Running in 86873856ecc6
Ign:1 http://deb.debian.org/debian stretch InRelease
Get:2 http://security.debian.org/debian-security stretch/updates InRelease [94.3 kB]
Get:3 http://deb.debian.org/debian stretch-updates InRelease [91.0 kB]
Get:4 http://deb.debian.org/debian stretch Release [118 kB]
Get:5 http://deb.debian.org/debian stretch Release.gpg [2434 B]
Get:6 http://security.debian.org/debian-security stretch/updates/main amd64 Packages [474 kB]
Get:7 http://deb.debian.org/debian stretch-updates/main amd64 Packages [7748 B]
Get:8 http://deb.debian.org/debian stretch/main amd64 Packages [7084 kB]
Fetched 7871 kB in 2s (3716 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
Package libmysqlclient-dev 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

E: Package 'libmysqlclient-dev' has no installation candidate
ERROR: Service 'app' failed to build: The command '/bin/sh -c apt-get update     && apt-get install -y --no-install-recommends         

mysql-client libmysqlclient-dev' returned a non-zero code: 100

在Linux Mint 19.1 Tara上同时安装了libmysqlclient-dev或安装了default-libmysqlclient-dev的情况都是如此。

库似乎已成功安装,但是当我运行docker-compose up时,它出错了,声称libmysqlclient-dev没有候选安装。

我需要做什么才能使Docker Compose以满意的libmysqlcient-dev形式启动?

谢谢...

0 个答案:

没有答案