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

Ubuntu latest - apt-get upgrade causes failure - grub #7204

Closed
2 of 10 tasks
userdocs opened this issue Feb 27, 2023 · 3 comments
Closed
2 of 10 tasks

Ubuntu latest - apt-get upgrade causes failure - grub #7204

userdocs opened this issue Feb 27, 2023 · 3 comments

Comments

@userdocs
Copy link

userdocs commented Feb 27, 2023

Description

Updating the runner fails for some grub reason

name: ubuntu latest

on:
  workflow_dispatch:

jobs:
  ubuntu_latest:
    runs-on: ubuntu-latest
    steps:
      - name: Host - update
        run: sudo apt-get update

      - name: Host - upgrade
        run: sudo apt-get -y upgrade
Setting up grub-efi-amd64-bin (2.06-2ubuntu14.1) ...
Setting up grub-efi-amd64-signed (1.187.3~22.04.1+2.06-2ubuntu14.1) ...
mount: /var/lib/grub/esp: special device /dev/disk/by-id/scsi-14d534654202020200690df035523a242afc173af9e57f2a4-part15 does not exist.
dpkg: error processing package grub-efi-amd64-signed (--configure):
 installed grub-efi-amd64-signed package post-installation script subprocess returned error exit status 32
Processing triggers for man-db (2.10.2-1) ...
Processing triggers for mailcap (3.70+nmu1ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for libc-bin (2.35-0ubuntu3.1) ...
Errors were encountered while processing:
 grub-efi-amd64-signed
needrestart is being skipped since dpkg has failed
E: Sub-process /usr/bin/dpkg returned an error code (1)
Error: Process completed with exit code 100.

Platforms affected

  • Azure DevOps
  • GitHub Actions - Standard Runners
  • GitHub Actions - Larger Runners

Runner images affected

  • Ubuntu 18.04
  • Ubuntu 20.04
  • Ubuntu 22.04
  • macOS 11
  • macOS 12
  • Windows Server 2019
  • Windows Server 2022

Image version and build link

Current runner version: '2.301.1'
Operating System
Ubuntu
22.04.2
LTS
Runner Image
Image: ubuntu-22.04
Version: 20230219.1
Included Software: https://github.com/actions/runner-images/blob/ubuntu22/20230219.1/images/linux/Ubuntu2204-Readme.md
Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu22%2F20230219.1
Runner Image Provisioner
2.0.117.1

Is it regression?

don't know

Expected behavior

not fail on apt-get upgrade

Actual behavior

It's failing due to some grub related issue.

Repro steps

name: ubuntu latest

on:
  workflow_dispatch:

jobs:
  ubuntu_latest:
    runs-on: ubuntu-latest
    steps:
      - name: Host - update
        run: sudo apt-get update

      - name: Host - upgrade
        run: sudo apt-get -y upgrade
@userdocs
Copy link
Author

userdocs commented Feb 27, 2023

@mikhailkoliada
Copy link
Contributor

Duplicate of #7192

@mikhailkoliada mikhailkoliada marked this as a duplicate of #7192 Feb 28, 2023
@userdocs
Copy link
Author

I looked at open issues instead of searched.

This worked, from your reply in the first issue, so thanks.

name: ubuntu latest

on:
  workflow_dispatch:

jobs:
  ubuntu_latest:
    runs-on: ubuntu-latest
    steps:
      - name: Host - fix
        run: echo 'APT::Get::Always-Include-Phased-Updates "false";' | sudo tee /etc/apt/apt.conf.d/99-phased-updates

      - name: Host - update
        run: sudo apt-get update

      - name: Host - upgrade
        run: sudo apt-get -y upgrade

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants