ThoughtfulDev / EagleEye

Stalk your Friends. Find their Instagram, FB and Twitter Profiles using Image Recognition and Reverse Image Search.
Do What The F*ck You Want To Public License
4.28k stars 576 forks source link

The command '/bin/sh -c apt-get update && add-apt-repository -y ppa:deadsnakes/ppa && apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y python3.6 python3.6-dev' returned a non-zero code: 100 #175

Closed GuiFernandess7 closed 2 weeks ago

GuiFernandess7 commented 2 weeks ago

I am trying to build the Docker container, but I am encountering the following error during the build process:

Step 11/24 : RUN apt-get update && add-apt-repository -y ppa:deadsnakes/ppa && apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y python3.6 python3.6-dev
 ---> Running in f35bb1111882
Hit:1 http://archive.ubuntu.com/ubuntu xenial InRelease
Hit:2 http://security.ubuntu.com/ubuntu xenial-security InRelease
Hit:3 http://archive.ubuntu.com/ubuntu xenial-updates InRelease
Hit:4 http://archive.ubuntu.com/ubuntu xenial-backports InRelease
Reading package lists...
gpg: keyring `/tmp/tmprsftpl67/secring.gpg' created
gpg: keyring `/tmp/tmprsftpl67/pubring.gpg' created
gpg: requesting key 6A755776 from hkp server keyserver.ubuntu.com
gpg: /tmp/tmprsftpl67/trustdb.gpg: trustdb created
gpg: key 6A755776: public key "Launchpad PPA for deadsnakes" imported
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)
OK
Hit:1 http://security.ubuntu.com/ubuntu xenial-security InRelease
Hit:2 http://archive.ubuntu.com/ubuntu xenial InRelease
Hit:3 http://archive.ubuntu.com/ubuntu xenial-updates InRelease
Get:4 http://ppa.launchpad.net/deadsnakes/ppa/ubuntu xenial InRelease [18.1 kB]
Hit:5 http://archive.ubuntu.com/ubuntu xenial-backports InRelease
Fetched 18.1 kB in 0s (21.4 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package python3.6
E: Couldn't find any package by glob 'python3.6'
E: Couldn't find any package by regex 'python3.6'
E: Unable to locate package python3.6-dev
E: Couldn't find any package by glob 'python3.6-dev'
E: Couldn't find any package by regex 'python3.6-dev'
The command '/bin/sh -c apt-get update && add-apt-repository -y ppa:deadsnakes/ppa && apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y python3.6 python3.6-dev' returned a non-zero code: 100

Steps to reproduce:

- Attempt to build the Docker container.
- The error occurs during the step that installs Python 3.6 and its dependencies.

Expected behavior: Python 3.6 and the necessary development packages should be installed successfully.

Additional context:

- I am using Ubuntu 22.04.5 LTS under WSL (Windows Subsystem for Linux).
- The repository ppa:deadsnakes/ppa is added, but the packages python3.6 and python3.6-dev cannot be found.

It seems like the requested Python version is no longer available through the deadsnakes PPA for this version of Ubuntu.

Could anyone help me resolve this issue? Thank you!

GuiFernandess7 commented 2 weeks ago

For those who had the same problem, I solved it by changing the Dockerfile to:

FROM ubuntu:20.04

RUN apt-get clean && apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y locales
RUN locale-gen en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
ENV TERM dumb
ENV PYTHONIOENCODING=utf-8

RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get upgrade -y
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y git curl software-properties-common unzip
RUN apt-get update && add-apt-repository -y ppa:deadsnakes/ppa && apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y python3.8 python3.8-dev python3-pip
RUN curl -s https://bootstrap.pypa.io/get-pip.py | python3.8

RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y libgtk-3-dev libboost-all-dev build-essential cmake libffi-dev
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y firefox

RUN git clone https://github.com/ThoughtfulDev/EagleEye
WORKDIR EagleEye
RUN pip3 install -r requirements.txt
RUN pip3 install --upgrade beautifulsoup4 html5lib spry
RUN pip3 install lxml[html_clean]
ADD https://github.com/mozilla/geckodriver/releases/download/v0.27.0/geckodriver-v0.27.0-linux64.tar.gz /EagleEye/geckodriver.tar.gz
RUN tar -xvf geckodriver.tar.gz
RUN mv geckodriver /usr/bin/geckodriver
RUN chmod +x /usr/bin/geckodriver
RUN rm -r /EagleEye/known/
ENTRYPOINT bash /entry.sh