Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

E: Unable to locate package chromium-chromedriver #97

Open
Pandaver opened this issue Apr 6, 2022 · 0 comments
Open

E: Unable to locate package chromium-chromedriver #97

Pandaver opened this issue Apr 6, 2022 · 0 comments

Comments

@Pandaver
Copy link

Pandaver commented Apr 6, 2022

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"
  ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant