
我在 Ubuntu 20.04 運行器上使用 GitHub actions,從上週六開始,Github actions 日誌中開始出現錯誤。我沒有更改 yml 配置。
錯誤:
Get:79 http://azure.archive.ubuntu.com/ubuntu focal/universe amd64 proj-bin amd64 6.3.1-1 [88.8 kB]
Fetched 55.7 MB in 1s (61.8 MB/s)
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/c/curl/libcurl4-gnutls-dev_7.68.0-1ubuntu2.5_amd64.deb 404 Not Found [IP: 52.250.76.244 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
Error: Process completed with exit code 100.
我檢查了回購協議並且有一個有點不同的版本可用:
trying to fetch: libcurl4-gnutls-dev_7.68.0-1ubuntu2.5_amd64.deb
available: libcurl4-gnutls-dev_7.68.0-1ubuntu2.6_amd64.deb
(ubuntu2.6_amd64
對比ubuntu2.5_amd64
)
我應該如何讓安裝程式找到這個版本?
yml 配置的一部分(完整的文件):
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.6, 3.7, 3.8, 3.9]
services:
postgres:
# postgres stuff
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
# some python packages
答案1
該錯誤建議了解決方案:
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
事實上,檢查 YAML 發現它apt-get update
沒有運行。這應該在安裝軟體之前運行。