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

Wine no longer installs on Ubuntu 22.04 #7589

Closed
2 of 10 tasks
red031000 opened this issue May 14, 2023 · 9 comments
Closed
2 of 10 tasks

Wine no longer installs on Ubuntu 22.04 #7589

red031000 opened this issue May 14, 2023 · 9 comments

Comments

@red031000
Copy link

Description

As of yesterday, winehq-stable no longer installs on 22.04, saying that it has unmet dependencies. I am using the procedure mentioned in #743 and it worked perfectly until yesterday, but now it will no longer install

Platforms affected

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

Runner images affected

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

Image version and build link

20230507.1
https://github.com/pret/pokediamond/actions/runs/4970111235/jobs/8894606112

Is it regression?

unknown, last successful build was on the same version - https://github.com/pret/pokediamond/actions/runs/4965021720/jobs/8885566169

Expected behavior

Wine installs without issue

Actual behavior

Wine fails to install, citing unmet dependencies and having requested an impossible situation

Repro steps

  1. try to install wine based on Update/Add Wine #743 on ubuntu 22.04
  2. fail
    I have attempted both apt and aptitude to install this, neither works
@red031000
Copy link
Author

potentially related to #4589 which apparently is a major issue again

@shamil-mubarakshin shamil-mubarakshin self-assigned this May 15, 2023
@shamil-mubarakshin
Copy link
Contributor

Hello @red031000.
Since both successful and unsuccessful execution were on same image version, its unlikely that they are triggered by image changes.
We will investigate for possible workarounds

@mboudreau
Copy link

I'm having the exact same issue. Old build passed 4 days ago with:

Current runner version: '2.304.0'
Operating System
  Ubuntu
  22.04.2
  LTS
Runner Image
  Image: ubuntu-22.04
  Version: 20230507.1
  Included Software: https://github.com/actions/runner-images/blob/ubuntu22/20230507.1/images/linux/Ubuntu2204-Readme.md
  Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu22%2F20230507.1
Runner Image Provisioner
  2.0.171.1
GITHUB_TOKEN Permissions
  Actions: write
  Checks: write
  Contents: write
  Deployments: write
  Discussions: write
  Issues: write
  Metadata: read
  Packages: write
  Pages: write
  PullRequests: write
  RepositoryProjects: write
  SecurityEvents: write
  Statuses: write
Secret source: Actions
Prepare workflow directory
Prepare all required actions
Getting action download info
Download action repository 'actions/checkout@v3' (SHA:8e5e7e5ab8b370d6c329ec480221332ada57f0ab)
Download action repository 'volta-cli/action@v4' (SHA:25888009cd70dbe17a140f1c56d93f8c09f7bcef)
Download action repository 'actions/cache@v3' (SHA:88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8)
Download action repository 'actions/upload-artifact@v3' (SHA:0b7f8abb1508181956e8e162db84b466c27e18ce)
Complete job name: build

Then I just re-ran the same build just now and that failed:

Current runner version: '2.304.0'
Operating System
  Ubuntu
  22.04.2
  LTS
Runner Image
  Image: ubuntu-22.04
  Version: 20230507.1
  Included Software: https://github.com/actions/runner-images/blob/ubuntu22/20230507.1/images/linux/Ubuntu2204-Readme.md
  Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu22%2F20230507.1
Runner Image Provisioner
  2.0.171.1
GITHUB_TOKEN Permissions
  Actions: write
  Checks: write
  Contents: write
  Deployments: write
  Discussions: write
  Issues: write
  Metadata: read
  Packages: write
  Pages: write
  PullRequests: write
  RepositoryProjects: write
  SecurityEvents: write
  Statuses: write
Secret source: Actions
Prepare workflow directory
Prepare all required actions
Getting action download info
Download action repository 'actions/checkout@v3' (SHA:8e5e7e5ab8b370d6c329ec480221332ada57f0ab)
Download action repository 'volta-cli/action@v4' (SHA:25888009cd70dbe17a140f1c56d93f8c09f7bcef)
Download action repository 'actions/cache@v3' (SHA:88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8)
Download action repository 'actions/upload-artifact@v3' (SHA:0b7f8abb1508181956e8e162db84b466c27e18ce)
Complete job name: build

They are exactly the same, and yet I have a whole history of builds working fine, but if I restart them, they fail to install winehq-stable:

Run sudo apt install --install-recommends winehq-stable

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

Reading package lists...
Building dependency tree...
Reading state information...
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 winehq-stable : Depends: wine-stable (= [8](https://github.com/GameGlass/hub/actions/runs/4954757472/jobs/8935855759#step:6:9).0.1~jammy-1)
E: Unable to correct problems, you have held broken packages.
Error: Process completed with exit code [10](https://github.com/GameGlass/hub/actions/runs/4954757472/jobs/8935855759#step:6:11)0.

My guess is that there's an issue with APT dependencies somewhere.

@shamil-mubarakshin
Copy link
Contributor

@mboudreau, @red031000,
Could you please try workaround mentioned in #4589 (comment)?

sudo eatmydata apt-get install ppa-purge
sudo eatmydata ppa-purge -y ppa:ubuntu-toolchain-r/test

sudo dpkg --add-architecture i386
sudo apt update
sudo DEBIAN_FRONTEND=noninteractive eatmydata apt install -y --no-install-recommends wine-stable wine32

@mboudreau
Copy link

mboudreau commented May 17, 2023

Yeah, that didn't work for me, but this did:

- run: sudo apt-get install ppa-purge && sudo ppa-purge -y ppa:ubuntu-toolchain-r/test
# Install Wine
- run: sudo dpkg --add-architecture i386
- run: sudo mkdir -pm755 /etc/apt/keyrings && sudo wget -O /etc/apt/keyrings/winehq-archive.key https://dl.winehq.org/wine-builds/winehq.key
- run: sudo wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/ubuntu/dists/jammy/winehq-jammy.sources
- run: sudo apt-get update
- run: sudo apt install --install-recommends winehq-stable
# Install mono
- run: sudo mkdir -p /opt/wine/mono && sudo wget "https://dl.winehq.org/wine/wine-mono/8.0.0/wine-mono-8.0.0-x86.tar.xz" -P /opt/wine/mono && sudo tar -xf /opt/wine/mono/wine-mono-8.0.0-x86.tar.xz -C /opt/wine/mono && sudo rm /opt/wine/mono/wine-mono-8.0.0-x86.tar.xz

So essentially, there's an extra ppa in there that's causing dependency issues, which didn't seem to be there before or something updated in the PPA which didn't work with wine.

@shamil-mubarakshin
Copy link
Contributor

Thanks @mboudreau, image versions didn't change so I suspect latter

@red031000
Copy link
Author

purging the ppa seems to work for me, however, this is of course less than ideal, as it means the packages in that ppa is no longer available for use. I assume this is an issue that the ppa maintainers need to address though

@shamil-mubarakshin
Copy link
Contributor

It is hard to predict when external dependencies will misbehave next.
Thank you for you contribution. I will close issue for now. Feel free to reopen in case of

@stefantalpalaru
Copy link

stefantalpalaru commented May 23, 2023

I'm hitting this problem with different i386 packages: https://github.com/stefantalpalaru/transmission-og/actions/runs/5060672646/jobs/9083856526?pr=8

  sudo -E dpkg --add-architecture i386
  sudo -E apt-get update -qq
  sudo -E eatmydata apt-get install --no-install-recommends --allow-downgrades -yq \
    gcc-multilib g++-multilib \
    libcurl4-openssl-dev:i386 gettext:i386 \
    libevent-dev:i386 libglib2.0-dev:i386 libgtk-3-dev:i386 \
    libnotify-dev:i386 libssl-dev:i386 libsystemd-dev:i386 \
    qttools5-dev:i386 zlib1g-dev:i386 intltool:i386

Relevant output:

The following packages have unmet dependencies:
 gettext:i386 : Depends: libgomp1:i386 (>= 6) but it is not going to be installed
 libc6:i386 : Depends: libgcc-s1:i386 but it is not going to be installed

later edit: fixed by explicitly installing libc6:i386 libgcc-s1:i386 libstdc++6:i386 libgomp1:i386 libatomic1:i386

vszakats added a commit to vszakats/libssh2 that referenced this issue May 30, 2023
vszakats added a commit to vszakats/libssh2 that referenced this issue May 30, 2023
vszakats added a commit to vszakats/libssh2 that referenced this issue May 30, 2023
vszakats added a commit to vszakats/libssh2 that referenced this issue May 30, 2023
vszakats added a commit to vszakats/libssh2 that referenced this issue May 30, 2023
vszakats added a commit to vszakats/libssh2 that referenced this issue May 30, 2023
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

4 participants