Skip to content

Run apt-get update#42

Merged
joshcooper merged 1 commit into
puppetlabs:mainfrom
joshcooper:apt-get-update
May 6, 2026
Merged

Run apt-get update#42
joshcooper merged 1 commit into
puppetlabs:mainfrom
joshcooper:apt-get-update

Conversation

@joshcooper
Copy link
Copy Markdown
Contributor

@joshcooper joshcooper commented May 6, 2026

If the apt cache is stale on the GitHub runner, then it may fail to install

Get:1 file:/etc/apt/apt-mirrors.txt Mirrorlist [144 B]
Ign:2 http://azure.archive.ubuntu.com/ubuntu noble-updates/main amd64 libcurl4-openssl-dev amd64 8.5.0-2ubuntu10.8
Ign:2 https://archive.ubuntu.com/ubuntu noble-updates/main amd64 libcurl4-openssl-dev amd64 8.5.0-2ubuntu10.8
Ign:2 https://security.ubuntu.com/ubuntu noble-updates/main amd64 libcurl4-openssl-dev amd64 8.5.0-2ubuntu10.8
Err:2 mirror+file:/etc/apt/apt-mirrors.txt noble-updates/main amd64 libcurl4-openssl-dev amd64 8.5.0-2ubuntu10.8
  404  Not Found [IP: 52.154.174.208 80]
E: Failed to fetch mirror+file:/etc/apt/apt-mirrors.txt/pool/main/c/curl/libcurl4-openssl-dev_8.5.0-2ubuntu10.8_amd64.deb  404  Not Found [IP:52.154.174.208 80]
E: Unable to fetch some archives, maybe run apt-get update or try with
--fix-missing?

Also use apt-get instead of apt as the former is recommending for scripting, while the latter prints:

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

This should resolve https://github.com/puppetlabs/puppetlabs-puppet_agent/actions/runs/25466905679/job/74722129244

If the apt cache is stale on the GitHub runner, then it may fail to install

    Get:1 file:/etc/apt/apt-mirrors.txt Mirrorlist [144 B]
    Ign:2 http://azure.archive.ubuntu.com/ubuntu noble-updates/main amd64 libcurl4-openssl-dev amd64 8.5.0-2ubuntu10.8
    Ign:2 https://archive.ubuntu.com/ubuntu noble-updates/main amd64 libcurl4-openssl-dev amd64 8.5.0-2ubuntu10.8
    Ign:2 https://security.ubuntu.com/ubuntu noble-updates/main amd64 libcurl4-openssl-dev amd64 8.5.0-2ubuntu10.8
    Err:2 mirror+file:/etc/apt/apt-mirrors.txt noble-updates/main amd64 libcurl4-openssl-dev amd64 8.5.0-2ubuntu10.8
      404  Not Found [IP: 52.154.174.208 80]
    E: Failed to fetch mirror+file:/etc/apt/apt-mirrors.txt/pool/main/c/curl/libcurl4-openssl-dev_8.5.0-2ubuntu10.8_amd64.deb  404  Not Found [IP:52.154.174.208 80]
    E: Unable to fetch some archives, maybe run apt-get update or try with
    --fix-missing?

Also use `apt-get` instead of `apt` as the former is recommending for scripting,
while the latter prints:

    WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
@joshcooper joshcooper requested a review from a team as a code owner May 6, 2026 23:46
@joshcooper joshcooper merged commit 9c403d8 into puppetlabs:main May 6, 2026
2 checks passed
@joshcooper joshcooper deleted the apt-get-update branch May 6, 2026 23:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants