Skip to content

Commit 4002b5e

Browse files
committed
Fix Wine install steps from WineHQ.
1 parent ba030a6 commit 4002b5e

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

docker/wine.sh

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,18 @@ main() {
1414
# add repository for latest wine version and install from source
1515
# hardcode version, since we might want to avoid a version later.
1616
wget -nc https://dl.winehq.org/wine-builds/winehq.key
17-
mv winehq.key /usr/share/keyrings/winehq-archive.key
17+
18+
# workaround for wine server synchronization, see #1035
19+
# we need to ensure the keys are now stored in `/etc/apt/keyrings`,
20+
# which were previously stored in `/usr/share/keyrings`, and ensure
21+
# our sources list searches for the right location.
22+
mkdir -p /etc/apt/keyrings
23+
mv winehq.key /etc/apt/keyrings/winehq-archive.key
24+
1825
wget -nc https://dl.winehq.org/wine-builds/ubuntu/dists/focal/winehq-focal.sources
1926
mv winehq-focal.sources /etc/apt/sources.list.d/
27+
sed -i s@/usr/share/keyrings/@/etc/apt/keyrings/@ /etc/apt/sources.list.d/winehq-focal.sources || true
28+
2029
apt-get update
2130
apt install --no-install-recommends --assume-yes \
2231
"winehq-stable=7.0.0.0~focal-1"

0 commit comments

Comments
 (0)