Crystal Ubuntu repos - where is 21.10/22.04/../24.10?

Hello!

Here: Install package devel:languages:crystal / crystal

There is 21.04 repo only, but actual version of Ubuntu is 21.10. I don’t know anything about opensuse repositories/build systems, but will 21.10 be there?

Thanks! pf

I’ve just enabled the Ubuntu 21.10 repository. Packages should be available shortly.

Unfortunately, it requires a manual action every time a new repository is added. I don’t think you can opt in to an automatic subscription of new releases.

2 Likes

Thanks!

@straight-shoota Hello again! Can you do something similar for fresh 22.04?

That’s too fresh. We depend on availability on OBS. Dunno how long it takes them.

You could try asdf, I just used it to install 1.4.1

The deb package probably works on Ubuntu 22.04 as well, you just have to tell the installer to use the the 21.10 repo (DISTRO_REPO=xUbuntu_21.10 install.sh).

1 Like

Yes, I am still using xUbuntu_21.10 repo on 22.04.

So far I’ve only found this issue (in the compiled binary):

but it works.

Here’s deb packages (for amd64 and arm64) that works with all debian based distros and versions:

4 Likes

Thanks this helped me figure it out for 19.10

For ubuntu 19.10 run it like
wget https://crystal-lang.org/install.sh
chmod a+x ./install.sh
sudo su
DISTRO_REPO=xUbuntu_18.04 ./install.sh

to avoid
E: The repository ‘http://download.opensuse.org/repositories/devel:languages:crystal/xUbuntu_19.04 Release’ does not have a Release file.

Thanks!

FYI: Ubuntu 19.10 reached EOL in July 2020.

Can be “the manual repository action” repeated for Ubuntu 24.04?

1 Like

The Ubuntu 24.04 repo should be available now.

1 Like

Ding dong… Ubuntu 24.10 is here…

@pfischer A new version manager Crimson was recently released that you could try while you wait. :sweat_smile:

Can you try now? I think I did the right thing.

It’s there, thanks.

hey all,

i stumbled across this post and i’m wondering if there’s a more automated way to handle this process? specifically, could we set up a script to poll for new ubuntu versions and automatically create/update the repos on OBS without manual intervention?

i’m thinking something along the lines of:

  1. monitor ubuntu mirrors or APIs for new releases
  2. use OBS APIs to trigger the repo creation/update as soon as a new release is detected
  3. maybe integrate some CI/CD to run tests on packages before publishing to ensure they work smoothly on the new release

has anyone tried something like this before, or know if it’s feasible?

We’re considering to move away from OBS to lower maintenance effort. So no point in adding more automation at this point.

1 Like