Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Disable phase updates on ubuntu (workaround) #288

Merged
merged 2 commits into from
Mar 5, 2023
Merged

Conversation

m1yam0t0
Copy link
Owner

@m1yam0t0 m1yam0t0 commented Mar 5, 2023

なぜ

apt upgrade を実行すると、grub-efi-amd64-signed のインストールに必ず失敗する。
これにより、PR Job が必ず失敗してしまう状態になっている。
https://github.com/m1yam0t0/dotfiles/actions/runs/4314445175/jobs/7527486930

phase update を有効にすることで、新しいパッケージが配布されてしまった結果、インストールに失敗しているかもしれないとのこと。
ワークアラウンドとして、phase update を無効化することで回避できるらしいので対処する。
actions/runner-images#7192 (comment)

以下を apt 実行前に追記することで phase update を無効化することができる。

echo 'APT::Get::Always-Include-Phased-Updates "false";' | sudo tee /etc/apt/apt.conf.d/99-phased-updates

変更点

  • Ubuntu でのパッケージインストール時に phase update を無効化するように修正(暫定)

@m1yam0t0 m1yam0t0 merged commit 9afbf2a into main Mar 5, 2023
@m1yam0t0 m1yam0t0 deleted the fix-apt-issue branch March 5, 2023 14:50
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.

None yet

1 participant