우분투 22.04 github 작업에서 Wine32 설치 오류

우분투 22.04 github 작업에서 Wine32 설치 오류

ubuntu 22.04(github actions)에 wine32를 설치하려고 하는데 다음 오류가 발생합니다.

 apt : Depends: libapt-pkg6.0 (>= 2.4.5) but it is not going to be installed
       Depends: libsystemd0 but it is not installable
 bsdutils : PreDepends: libsystemd0 but it is not installable
 init : PreDepends: systemd-sysv
 shim-signed : Depends: grub-efi-amd64-signed but it is not going to be installed or
                        grub-efi-arm64-signed but it is not installable
               Depends: grub2-common (>= 2.04-1ubuntu24)
 util-linux : PreDepends: libsystemd0 but it is not installable
              PreDepends: libudev1 (>= 183) but it is not installable
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

작업 과정:

name: Release Build

on:
  push:
    tags:
      - 'v*'

jobs:
  # This workflow contains a single job called "build"
  build:
    # The type of runner that the job will run on
    runs-on: ubuntu-22.04

    steps:
      - uses: actions/checkout@v2
      - uses: actions/setup-node@v2
        with:
          node-version: '14'
          cache: 'yarn'

      - name: Get yarn cache directory path
        id: yarn-cache-dir-path
        run: echo "::set-output name=dir::$(yarn cache dir)"
      - uses: actions/cache@v2
        id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
        with:
          path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
          key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
          restore-keys: |
            ${{ runner.os }}-yarn-

      - name: Install build dependencies
        run: |
          sudo dpkg --add-architecture i386
          sudo apt update
          sudo apt install software-properties-common apt-transport-https wget -y
          wget -nc https://dl.winehq.org/wine-builds/ubuntu/dists/jammy/winehq-jammy.sources
          sudo mv winehq-jammy.sources /etc/apt/sources.list.d/
          wget -nc https://dl.winehq.org/wine-builds/winehq.key
          sudo mv winehq.key /usr/share/keyrings/winehq-archive.key
          echo "APT::Get::Always-Include-Phased-Updates \"1\";" > sudo tee /etc/apt/apt.conf.d/99phased-updates
          sudo apt update
          sudo apt install --install-recommends wine-stable wine32
          sudo apt install gnupg ca-certificates
          sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
          echo "deb https://download.mono-project.com/repo/ubuntu stable-focal main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list
          sudo apt update
          sudo apt install mono-devel
          sudo apt install --no-install-recommends -y libopenjp2-tools
          sudo apt install --no-install-recommends -y rpm
          sudo apt install --no-install-recommends -y libarchive-tools

      - name: Build & release
        env:
          GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        shell: pwsh
        run: |
          $sha = (git rev-parse --short HEAD)
          yarn --silent
          $env:SHORT_SHA=$sha; yarn release

      - name: Move artifacts
        id: vars
        shell: pwsh
        run: |
          $sha = (git rev-parse --short HEAD)
          md -p ./dist/artifacts
          Copy-Item ./dist/*.exe -Destination ./dist/artifacts/
          Copy-Item ./dist/*.deb -Destination ./dist/artifacts/
          Copy-Item ./dist/*.tar.gz -Destination ./dist/artifacts/
          $file = Get-ChildItem -Path ./dist/artifacts/ -Filter "*.tar.gz" | select-object -first 1
          $newName = "$($file.BaseName).$($sha)$($file.Extension)"
          Rename-Item -Path $file.FullName -NewName $newName
          $file = Get-ChildItem -Path ./dist/artifacts/ -Filter "*.exe" | select-object -first 1
          $newName = "$($file.BaseName).$($sha)$($file.Extension)"
          Rename-Item -Path $file.FullName -NewName $newName
          $file = Get-ChildItem -Path ./dist/artifacts/ -Filter "*.deb" | select-object -first 1
          $newName = "$($file.BaseName).$($sha)$($file.Extension)"
          Rename-Item -Path $file.FullName -NewName $newName

      - name: Upload artifacts
        uses: actions/[email protected]
        with:
          name: ChampR
          path: "./dist/artifacts"

#    - name: Create Release
#      id: create_release
#      uses: actions/create-release@v1
#      env:
#        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
#      with:
#        tag_name: ${{ github.ref }}
#        release_name: ${{ github.ref }}
#        draft: false
#        prerelease: false

#    - name: Upload Release Assets
#      id: upload_release_assets
#      uses: actions/upload-release-asset@v1
#      env:
#        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
#      with:
#        upload_url: ${{ steps.create_release.outputs.upload_url }}
#        asset_path: ./dist/artifacts/${{ steps.vars.outputs.fileName }}
#        asset_name: ${{ steps.vars.outputs.fileName }}
#        asset_content_type: application/vnd.microsoft.portable-executable

이 문제를 해결하는 방법을 아는 사람이 있나요?

관련 정보