I had the same issue. Fixed it by downgrading to ubuntu 22.04 instead of using ubuntu-latest, which has been recently upgraded to 24.04 as per this. Try changing runs-on: ubuntu-latest to runs-on: ubuntu-22.04 in ci.yml
runs-on: ubuntu-latest
runs-on: ubuntu-22.04