# GitHub action for Ubuntu GETting 404 fetching dependencies

**URL:** <https://forum.crystal-lang.org/t/github-action-for-ubuntu-getting-404-fetching-dependencies/9178>\
**Category:** Help & Support\
**Created:** [September 30, 2026, 2:14pm UTC](https://forum.crystal-lang.org/t/github-action-for-ubuntu-getting-404-fetching-dependencies/9178 "2026-09-30T14:14:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nogginly](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.crystal-lang.org/nogginly/32/1795_2.png) [@nogginly](https://forum.crystal-lang.org/u/nogginly)\
**Post date:** [September 30, 2026, 2:14pm UTC](https://forum.crystal-lang.org/t/github-action-for-ubuntu-getting-404-fetching-dependencies/9178/1 "2026-09-30T14:14:40Z")

</div>

> UPDATE: I have a workaround! See end of topic.

Is anyone else seeing this? I tried searching the web but my _search fu_ isn’t strong apparently.

```auto
          - { os: ubuntu-latest, crystal: "1.20" }
          - { os: ubuntu-24.04-arm, crystal: latest }
          - { os: macos-latest, crystal: "1.21" }

```

As of last night I started noticing that macOS runner is working but Linux ones are failing. The “annotation” on the actions says:

```auto

Error: Command failed: sudo -n apt-get install -qy --no-install-recommends --no-upgrade -- libevent-dev libgmp-dev libpcre3-dev libssl-dev libxml2-dev libyaml-dev libpcre2-dev
E: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/pool/main/libe/libevent/libevent-2.1-7t64_2.1.12-stable-9ubuntu2.1_arm64.deb 404 Not Found [IP: 91.189.91.102 80]
E: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/pool/main/libe/libevent/libevent-extra-2.1-7t64_2.1.12-stable-9ubuntu2.1_arm64.deb 404 Not Found [IP: 91.189.91.102 80]
E: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/pool/main/libe/libevent/libevent-openssl-2.1-7t64_2.1.12-stable-9ubuntu2.1_arm64.deb 404 Not Found [IP: 91.189.91.102 80]
E: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/pool/main/libe/libevent/libevent-dev_2.1.12-stable-9ubuntu2.1_arm64.deb 404 Not Found [IP: 91.189.91.102 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

```

This CI workflow has worked as-is for weeks. If I should post this somewhere else, or if there is an active issue somewhere, please let me know. 🙏

### Workaround 😅

```auto
    steps:
      - name: Force apt update (Linux only)
        if: ${{ runner.os == 'Linux' }}
        run: sudo -n apt-get update

      - name: Checkout code
        uses: actions/checkout@v6

      - name: Install Crystal
        uses: crystal-lang/install-crystal@v1
        with:
          crystal: ${{matrix.crystal}}

```

I added a Linux-specific forced `apt-get update` before installing the Crystal install action and the workflows are succeeding again.

---

<div class="post-metadata">

**Author:** ![Sija](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.crystal-lang.org/sija/32/737_2.png) [@Sija](https://forum.crystal-lang.org/u/Sija)\
**Post date:** [September 30, 2026, 2:47pm UTC](https://forum.crystal-lang.org/t/github-action-for-ubuntu-getting-404-fetching-dependencies/9178/2 "2026-09-30T14:47:39Z")

</div>

yup, we’re seeing the same in the ameba repo.
