Alpine Linux: package is gone?!
β’ 168 words β’ 1 min β’ updated
Upon upgrading one of our Dockerfiles from Alpine Linux 3.21 to 3.22, we noticed
that the ruby-json package no longer exists:
% docker build -t myproject -f Dockerfile .
[...]
> [ 2/10] RUN apk add --update --no-cache ruby-json=~"3.4" [...]
[...]
2.371 ERROR: unable to select packages:
2.371 ruby-json (no such package):
2.371 required by: world[ruby-json~3.4]Why??
First, look into Alpine Linux Packages: query. Ensure to set branch to v3.22 and architecture to All. And it’s indeed not there anymore:
No matching packages found…
Next, do a bit of digging in the
aports repository on the Alpine
Linux GitLab:
query.
Search for ruby-json in “All” Merge requests.
That leads to
!80599:
community/ruby-json: remove
ruby-jsonis already bundled withmain/ruby. Thecommunity/ruby-jsoncould never be installed due to conflicts.
Aha, then there’s nothing to do here. Installing the base ruby package should
be enough from now on.
I think it’s safe to say community/ruby-json does literally nothing, has never been installed, and does not work.
Oh well.