Skip to content

Commit

Permalink
Unbreak binutils-dev install in GitHub Actions
Browse files Browse the repository at this point in the history
Without apt-get update, it's failing as follows.

    Reading package lists...
    Building dependency tree...
    Reading state information...
    The following packages will be REMOVED:
      libc++-14-dev libc++-dev libunwind-14-dev
    The following NEW packages will be installed:
      binutils-dev libunwind-dev
    0 upgraded, 2 newly installed, 3 to remove and 19 not upgraded.
    Need to get 6258 kB of archives.
    After this operation, 26.6 MB of additional disk space will be used.
    Get:1 file:/etc/apt/apt-mirrors.txt Mirrorlist [142 B]
    Get:2 http://azure.archive.ubuntu.com/ubuntu jammy-updates/main amd64 libunwind-dev amd64 1.3.2-2build2.1 [1883 kB]
    Ign:3 http://azure.archive.ubuntu.com/ubuntu jammy-updates/main amd64 binutils-dev amd64 2.38-4ubuntu2.3
    Ign:3 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 binutils-dev amd64 2.38-4ubuntu2.3
    Ign:3 http://security.ubuntu.com/ubuntu jammy-updates/main amd64 binutils-dev amd64 2.38-4ubuntu2.3
    Err:3 mirror+file:/etc/apt/apt-mirrors.txt jammy-updates/main amd64 binutils-dev amd64 2.38-4ubuntu2.3
      404  Not Found [IP: 52.252.75.106 80]
    E: Failed to fetch mirror+file:/etc/apt/apt-mirrors.txt/pool/main/b/binutils/binutils-dev_2.38-4ubuntu2.3_amd64.deb  404  Not Found [IP: 52.252.75.106 80]
    E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
  • Loading branch information
dtolnay committed Dec 13, 2023
1 parent f7576d1 commit 0b963a2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ jobs:
- run: cargo check --no-default-features --features afl
working-directory: fuzz
- uses: dtolnay/install@honggfuzz
- run: sudo apt-get update # https://github.com/actions/runner-images/issues/8953
- run: sudo apt-get install binutils-dev libunwind-dev
- run: cargo hfuzz build --no-default-features --features honggfuzz
working-directory: fuzz
Expand Down

0 comments on commit 0b963a2

Please sign in to comment.