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

Failure to install on Ubuntu 22.04 #122

Open
rpsene opened this issue Jul 24, 2023 · 5 comments
Open

Failure to install on Ubuntu 22.04 #122

rpsene opened this issue Jul 24, 2023 · 5 comments

Comments

@rpsene
Copy link

rpsene commented Jul 24, 2023

When trying to install on a ubuntu 22.04 container image I'm getting

gem update --system; gem install asciidoctor-mathematical          1054.8s
 => => # installed?'
 => => # from /usr/lib/ruby/vendor_ruby/rubygems/request_set.rb:173:in `block (2 levels)
 => => #  in install'
 => => # ERROR:  While executing gem ... (Gem::RemoteFetcher::FetchError)
 => => #     bad response Forbidden 403 (https://index.rubygems.org/quick/Marshal.4.8/ma
 => => # thematical-1.6.16.gemspec.rz)

When we look at https://index.rubygems.org/gems/asciidoctor-mathematical there is no version 1.6.16.

Is this a known issue as I started to see this behavior only last week?

@rpsene
Copy link
Author

rpsene commented Jul 24, 2023

Setting a hard-code dependency works! In this case mathematical:1.6.14

@bwklein
Copy link

bwklein commented Jul 25, 2023

Setting a hard-code dependency works! In this case mathematical:1.6.14

@rpsene how did you do this from the install side?

Currently, I am installing gems in a Docker container like this...

RUN gem install --no-document \
  "asciidoctor:${ASCIIDOCTOR_VERSION}" \
  asciidoctor-bibtex \
  asciidoctor-confluence \
  asciidoctor-diagram \
  asciidoctor-mathematical \
  asciimath \
  "asciidoctor-pdf:${ASCIIDOCTOR_PDF_VERSION}" \
  asciidoctor-revealjs \
  asciidoctor-html5s \
  coderay \
  haml \
  pygments.rb \
  prawn-gmagick \
  rake \
  rghost \
  rouge \
  slim \
  thread_safe \
  tilt

Is there a way from this command to tell asciidoctor-mathematical to install 1.6.14 of the mathematical gem it depends on and not the latest release that was 'yanked'? https://rubygems.org/gems/mathematical/versions/1.6.16

I still don't understand how a 'yanked' gem would still try to install as a dependency, but I know very little about gems and how it all works under the hood.

@rpsene
Copy link
Author

rpsene commented Jul 25, 2023

@bwklein yes, take a look here https://github.com/riscv/riscv-docs-base-container-image/blob/main/Dockerfiles/ubuntu2204#L42.

@bwklein
Copy link

bwklein commented Jul 25, 2023

@rpsene That did the trick! Thank you! 🎉

@4e554c4c
Copy link

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

3 participants