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

Package 'phantomjs' has no installation candidate #37

Open
zavorra opened this issue Jun 6, 2024 · 3 comments
Open

Package 'phantomjs' has no installation candidate #37

zavorra opened this issue Jun 6, 2024 · 3 comments

Comments

@zavorra
Copy link

zavorra commented Jun 6, 2024

I am trying to run mod-sdk both natively (fedora 40) and on docker, but I always get dependency issues

giorgio@Ulmo:~/mod-sdk$ docker build -t modsdk .
[+] Building 32.3s (6/10)                                                                                                                                                                         docker:default
 => [internal] load build definition from Dockerfile                                                                                                                                                        0.0s
 => => transferring dockerfile: 479B                                                                                                                                                                        0.0s
 => [internal] load metadata for docker.io/library/debian:stable                                                                                                                                            2.1s
 => [internal] load .dockerignore                                                                                                                                                                           0.0s
 => => transferring context: 2B                                                                                                                                                                             0.0s
 => [1/6] FROM docker.io/library/debian:stable@sha256:82f8da149d6d567c74564cccd6f355fb5ade42a958e4cde10a1100eaeb24d42e                                                                                     24.0s
 => => resolve docker.io/library/debian:stable@sha256:82f8da149d6d567c74564cccd6f355fb5ade42a958e4cde10a1100eaeb24d42e                                                                                      0.0s
 => => sha256:82f8da149d6d567c74564cccd6f355fb5ade42a958e4cde10a1100eaeb24d42e 1.85kB / 1.85kB                                                                                                              0.0s
 => => sha256:901c590afaefc0a6be156c6eb5dd8fb0a01f52613b9fb06da338e506241e0fa3 529B / 529B                                                                                                                  0.0s
 => => sha256:8f036bb1f2ce3a6670a979ab27a2dffc9bc7f8340155805051f2b8f6dd9667d2 1.46kB / 1.46kB                                                                                                              0.0s
 => => sha256:f37cd38c722b1e1d9c2cb61ad8337e6bede774b7680a90cc4f6c1741b6f53dc9 49.58MB / 49.58MB                                                                                                           22.7s
 => => extracting sha256:f37cd38c722b1e1d9c2cb61ad8337e6bede774b7680a90cc4f6c1741b6f53dc9                                                                                                                   1.1s
 => [internal] load build context                                                                                                                                                                           1.3s
 => => transferring context: 293.19MB                                                                                                                                                                       1.2s
 => ERROR [2/6] RUN apt-get update -qq &&     apt-get install -y build-essential liblilv-dev phantomjs &&     apt-get install -y python3-pil python3-pystache python3-tornado python3-pyinotify python3-se  6.2s
------                                                                                                                                                                                                           
 > [2/6] RUN apt-get update -qq &&     apt-get install -y build-essential liblilv-dev phantomjs &&     apt-get install -y python3-pil python3-pystache python3-tornado python3-pyinotify python3-setuptools:     
5.471 Reading package lists...                                                                                                                                                                                   
5.961 Building dependency tree...
6.071 Reading state information...
6.074 Package phantomjs is not available, but is referred to by another package.
6.074 This may mean that the package is missing, has been obsoleted, or
6.074 is only available from another source
6.074 
6.076 E: Package 'phantomjs' has no installation candidate
------
Dockerfile:3
--------------------
   2 |     
   3 | >>> RUN apt-get update -qq && \
   4 | >>>     apt-get install -y build-essential liblilv-dev phantomjs && \
   5 | >>>     apt-get install -y python3-pil python3-pystache python3-tornado python3-pyinotify python3-setuptools
   6 |     
--------------------
ERROR: failed to solve: process "/bin/sh -c apt-get update -qq &&     apt-get install -y build-essential liblilv-dev phantomjs &&     apt-get install -y python3-pil python3-pystache python3-tornado python3-pyinotify python3-setuptools" did not complete successfully: exit code: 100

@dromer
Copy link

dromer commented Jun 6, 2024

Hmm, this is likely because of FROM debian:stable.

We are now on a different version of debian which no longer ships with this package.

You could try and replace stable with 11 and use the previous stable version instead.

@zavorra
Copy link
Author

zavorra commented Jun 6, 2024

No luck also with debian:11


iorgio@Ulmo:~/mod-sdk$ docker build -t modsdk .
[+] Building 8.9s (6/10)                                                                                                                                                                          docker:default
 => [internal] load build definition from Dockerfile                                                                                                                                                        0.0s
 => => transferring dockerfile: 475B                                                                                                                                                                        0.0s
 => [internal] load metadata for docker.io/library/debian:11                                                                                                                                                0.6s
 => [internal] load .dockerignore                                                                                                                                                                           0.0s
 => => transferring context: 2B                                                                                                                                                                             0.0s
 => CACHED [1/6] FROM docker.io/library/debian:11@sha256:2c7a92a41cb814c00e7d455b2bc0c90ccdb9a4ced2ffdc10e562c7a84a186032                                                                                   0.0s
 => [internal] load build context                                                                                                                                                                           6.1s
 => => transferring context: 293.19MB                                                                                                                                                                       6.1s
 => ERROR [2/6] RUN apt-get update -qq &&     apt-get install -y build-essential liblilv-dev phantomjs &&     apt-get install -y python3-pil python3-pystache python3-tornado python3-pyinotify python3-se  8.2s
------                                                                                                                                                                                                           
 > [2/6] RUN apt-get update -qq &&     apt-get install -y build-essential liblilv-dev phantomjs &&     apt-get install -y python3-pil python3-pystache python3-tornado python3-pyinotify python3-setuptools:     
7.217 Reading package lists...                                                                                                                                                                                   
7.654 Building dependency tree...                                                                                                                                                                                
7.756 Reading state information...                                                                                                                                                                               
7.776 Package phantomjs is not available, but is referred to by another package.                                                                                                                                 
7.776 This may mean that the package is missing, has been obsoleted, or
7.776 is only available from another source
7.776 
7.854 E: Package 'phantomjs' has no installation candidate
------
Dockerfile:3
--------------------
   2 |     
   3 | >>> RUN apt-get update -qq && \
   4 | >>>     apt-get install -y build-essential liblilv-dev phantomjs && \
   5 | >>>     apt-get install -y python3-pil python3-pystache python3-tornado python3-pyinotify python3-setuptools
   6 |     
--------------------
ERROR: failed to solve: process "/bin/sh -c apt-get update -qq &&     apt-get install -y build-essential liblilv-dev phantomjs &&     apt-get install -y python3-pil python3-pystache python3-tornado python3-pyinotify python3-setuptools" did not complete successfully: exit code: 100
giorgio@Ulmo:~/mod-sdk$ 

@dromer
Copy link

dromer commented Jun 6, 2024

Oops, phantomjs was in debian buster, which is 10!

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

2 participants