找不到“ redis-server”的版本

时间:2018-08-09 19:57:18

标签: docker ubuntu redis ubuntu-16.04

我正在尝试为映像上的特定版本安装Redis。

我跟随blog,将我指向ppa:chris-lea。但是,我得到了

E: Version '4:4.0.6-1chl1~zesty1' for 'redis-server' was not found

我的Dockerfile

FROM ubuntu:16.04

RUN apt-get update -y && apt-get install -y --no-install-recommends \
    software-properties-common curl \
 && add-apt-repository ppa:chris-lea/redis-server \
 && apt-get update -y && apt-get install -y redis-server=4:4.0.6-1chl1~zesty1 \
 && rm -rf /var/lib/apt/lists/*

有关安装Redis的较长错误消息。

 Redis is an open source, advanced key-value store. It is often referred to as a data structure server since keys can contain strings, hashes, lists, sets and sorted sets.
 More info: https://launchpad.net/~chris-lea/+archive/ubuntu/redis-server
gpg: keyring `/tmp/tmpu6tt52qk/secring.gpg' created
gpg: keyring `/tmp/tmpu6tt52qk/pubring.gpg' created
gpg: requesting key C7917B12 from hkp server keyserver.ubuntu.com
gpg: /tmp/tmpu6tt52qk/trustdb.gpg: trustdb created
gpg: key C7917B12: public key "Launchpad chrislea" imported
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)
OK
Hit:1 http://archive.ubuntu.com/ubuntu xenial InRelease
Hit:2 http://security.ubuntu.com/ubuntu xenial-security InRelease
Get:3 http://ppa.launchpad.net/chris-lea/redis-server/ubuntu xenial InRelease [17.5 kB]
Hit:4 http://archive.ubuntu.com/ubuntu xenial-updates InRelease
Hit:5 http://archive.ubuntu.com/ubuntu xenial-backports InRelease
Get:6 http://ppa.launchpad.net/chris-lea/redis-server/ubuntu xenial/main amd64 Packages [1137 B]
Fetched 18.7 kB in 0s (30.3 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
E: Version '4:4.0.6-1chl1~zesty1' for 'redis-server' was not found

在安装Redis之前,我确实运行了另一个apt-get update。我在哪里做错了?如果我没有提供足够的信息,请告诉我。

一个相关的问题是https://askubuntu.com/questions/586082/apt-get-cannot-install-specific-version-listed-in-apt-cache-policy

我的Docker版本18.06.0-ce,内部版本0ffa825

0 个答案:

没有答案