I'm using the docker images, (kali-last-snapshot), and attempting to install ruby 2.7, but end up with ruby 3.0:

Is there something simple I'm missing here?



Code:
┌──(root㉿c9856cfa714b)-[/]
└─# apt install ruby2.7 ruby2.7-dev
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  ca-certificates fonts-lato javascript-common libbsd0 libedit2 libgdbm-compat4 libgdbm6 libgmp-dev libgmpxx4ldbl libjs-jquery libmd0
  libruby2.7 libruby3.0 libyaml-0-2 openssl rake ruby ruby-net-telnet ruby-rubygems ruby-xmlrpc ruby2.7-doc ruby3.0 rubygems-integration
  unzip zip
Suggested packages:
  apache2 | lighttpd | httpd gdbm-l10n gmp-doc libgmp10-doc libmpfr-dev ri ruby-dev bundler
The following NEW packages will be installed:
  ca-certificates fonts-lato javascript-common libbsd0 libedit2 libgdbm-compat4 libgdbm6 libgmp-dev libgmpxx4ldbl libjs-jquery libmd0
  libruby2.7 libruby3.0 libyaml-0-2 openssl rake ruby ruby-net-telnet ruby-rubygems ruby-xmlrpc ruby2.7 ruby2.7-dev ruby2.7-doc ruby3.0
  rubygems-integration unzip zip
0 upgraded, 27 newly installed, 0 to remove and 0 not upgraded.
Need to get 20.9 MB of archives.
After this operation, 89.8 MB of additional disk space will be used.
Do you want to continue? [Y/n] y

[snip]

┌──(root㉿c9856cfa714b)-[/]
└─# ruby -v
ruby 3.0.3p157 (2021-11-24 revision 3fb7d2cadc) [x86_64-linux-gnu]
I very specifically do not want ruby 3.0.