E: Unable to locate package chromium-chromedriver
Opened this issue · 0 comments
Pandaver commented
I try to run it on CentOS with Docker but not work
[root@server noip-renew]# docker build -t loblab/selenium:debian .
Sending build context to Docker daemon 726.5kB
Step 1/18 : FROM debian
---> d69c6cd3a20d
Step 2/18 : LABEL maintainer="loblab"
---> Using cache
---> fd7b705aae59
Step 3/18 : ARG TZ=Asia/Shanghai
---> Using cache
---> a472cc9ffc1a
Step 4/18 : ARG APT_MIRROR=mirrors.163.com
---> Using cache
---> 25a8fc542b8b
Step 5/18 : ARG DEBIAN_FRONTED=noninteractive
---> Using cache
---> 4d4db28e84e1
Step 6/18 : ARG PYTHON=python3
---> Using cache
---> a445e6164515
Step 7/18 : RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
---> Using cache
---> 9418056a3f81
Step 8/18 : RUN sed -i "s/deb.debian.org/$APT_MIRROR/" /etc/apt/sources.list
---> Using cache
---> 1b8077d140cc
Step 9/18 : RUN apt-get update && apt-get -y upgrade
---> Using cache
---> 09f4e984c0cd
Step 10/18 : RUN apt-get -y install chromium-chromedriver || apt-get -y install chromium-driver || apt-get -y install chromedriver
---> Running in aa6f7d0b2b76
Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package chromium-chromedriver
Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package chromium-driver
Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package chromedriver
The command '/bin/sh -c apt-get -y install chromium-chromedriver || apt-get -y install chromium-driver || apt-get -y install chromedriver' returned a non-zero code: 100
/etc/docker/daemon.json
{
"registry-mirrors": [
"https://reg-mirror.qiniu.com/"
],
"dns" : [
"8.8.8.8"
]
}