From ef7a85eb10a2d34b6acfc464feede919279aecd5 Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Sun, 10 Jul 2022 18:37:51 +0200 Subject: [PATCH] Update the Ubuntu Wine downgrading snippet They now use a different format for the sources, and the suffix was incorrect. --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 6188e9de..c664c24a 100644 --- a/README.md +++ b/README.md @@ -211,10 +211,10 @@ earlier version of Wine. This can be done as follows: you want to install, and then run these commands under Bash: ```shell - version=6.14 + version=7.8 variant=staging - codename=$(shopt -s nullglob; awk '/^deb https:\/\/dl\.winehq\.org/ { print $3; exit }' /etc/apt/sources.list /etc/apt/sources.list.d/*.list) - suffix=$(dpkg --compare-versions "$version" ge 6.1 && ((dpkg --compare-versions "$version" ge 6.17 && echo "-2") || echo "-1")) + codename=$(shopt -s nullglob; awk '/^deb https:\/\/dl\.winehq\.org/ { print $3; exit 0 } END { exit 1 }' /etc/apt/sources.list /etc/apt/sources.list.d/*.list || awk '/^Suites:/ { print $2; exit }' /etc/apt/sources.list /etc/apt/sources.list.d/wine*.sources) + suffix=$(dpkg --compare-versions "$version" ge 6.1 && ((dpkg --compare-versions "$version" eq 6.17 && echo "-2") || echo "-1")) sudo apt install --install-recommends {"winehq-$variant","wine-$variant","wine-$variant-amd64","wine-$variant-i386"}="$version~$codename$suffix" ```