From 572cdc33ed5719c400b1f6b8868b0de605c32efd Mon Sep 17 00:00:00 2001 From: Jacksaur <58850292+Jacksaur@users.noreply.github.com> Date: Sun, 7 Aug 2022 21:44:06 +0100 Subject: [PATCH] Remove old Wine PPA if present Delete any existing Wine PPAs in sources.list before adding the latest one, to avoid conflicts. --- gameready.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gameready.sh b/gameready.sh index ed023fe..a691430 100755 --- a/gameready.sh +++ b/gameready.sh @@ -11,6 +11,8 @@ fi echo "Installing WINE" sudo dpkg --add-architecture i386 sudo wget -nc -O /usr/share/keyrings/winehq-archive.key https://dl.winehq.org/wine-builds/winehq.key +# REMOVE PREVIOUS WINE PPA IF PRESENT +sudo rm /etc/apt/sources.list.d/winehq* # GET UBUNTU VERSION ubuntuVersion=$(lsb_release -sc) sudo wget -nc -P /etc/apt/sources.list.d/ "https://dl.winehq.org/wine-builds/ubuntu/dists/${ubuntuVersion}/winehq-${ubuntuVersion}.sources"