installing wine on Q4OS

Questions about Wine on Linux
Post Reply
theboomer
Newbie
Newbie
Posts: 1
Joined: Tue Jul 01, 2025 8:55 am

installing wine on Q4OS

Post by theboomer »

Hello everyone, as someone who is dipping his toes to linux waters I have a big wine problem, I installed q4os (which is based on debian) to a fairly old laptop my problem is when I try to install wine following the debian wiki I encountered several problems

Code: Select all

root@ahmet-satelliteu400:~# sudo dpkg --add-architecture i386
root@ahmet-satelliteu400:~# cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
NAME="Debian GNU/Linux"
VERSION_ID="12"
VERSION="12 (bookworm)"
VERSION_CODENAME=bookworm
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
root@ahmet-satelliteu400:~# sudo mkdir -pm755 /etc/apt/keyrings wget -O - https://dl.winehq.org/wine-builds/winehq.key | sudo gpg --dearmor -o /etc/apt/keyrings/winehq-archive.key -
mkdir: invalid option -- 'O'
Try 'mkdir --help' for more information.
File '/etc/apt/keyrings/winehq-archive.key' exists. Overwrite? (y/N) y
gpg: no valid OpenPGP data found.
this was my first problem, I tried again seemed like everything was working.

Code: Select all

root@ahmet-satelliteu400:~# sudo mkdir -pm755 /etc/apt/keyrings
wget -O - https://dl.winehq.org/wine-builds/winehq.key | sudo gpg --dearmor -o /etc/apt/keyrings/winehq-archive.key -
root@ahmet-satelliteu400:~# sudo wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/debian/dists/bookworm/winehq-bookworm.sources
--2025-07-01 17:09:06--  https://dl.winehq.org/wine-builds/debian/dists/bookworm/winehq-bookworm.sources
Resolving dl.winehq.org (dl.winehq.org)... 146.75.2.217, 2a04:4e42:70::729
Connecting to dl.winehq.org (dl.winehq.org)|146.75.2.217|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 166 [binary/octet-stream]
Saving to: ‘/etc/apt/sources.list.d/winehq-bookworm.sources’

winehq-bookworm.sou 100%[===================>]     166  --.-KB/s    in 0s

2025-07-01 17:09:07 (996 KB/s) - ‘/etc/apt/sources.list.d/winehq-bookworm.sources’ saved [166/166]

root@ahmet-satelliteu400:~# sudo apt update
Hit:1 http://deb.debian.org/debian bookworm InRelease
Hit:2 http://security.debian.org bookworm-security InRelease
Get:3 http://deb.debian.org/debian bookworm-updates InRelease [55,4 kB]
Get:4 https://dl.winehq.org/wine-builds/debian bookworm InRelease [12,1 kB]
Hit:5 https://xpq4.sourceforge.io/debrepo aquarius-cn InRelease
Get:9 https://packages.mozilla.org/apt mozilla InRelease [1.524 B]
Get:10 http://deb.debian.org/debian bookworm/main i386 Packages [8.685 kB]
Get:11 http://security.debian.org bookworm-security/main i386 Packages [263 kB]
Hit:6 https://q4os.org/q4repo q4os-5-0-cn InRelease
Hit:7 https://q4os.org/qtderepo bookworm InRelease
Hit:8 https://q4os.org/qextrepo bookworm-firefox-cn InRelease
Err:4 https://dl.winehq.org/wine-builds/debian bookworm InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 76F1A20FF987672F
but then I encountered this problem. It continued to install but finished with this error.

Code: Select all

Get:12 http://security.debian.org bookworm-security/contrib i386 Packages [508 B]
Get:13 http://security.debian.org bookworm-security/non-free-firmware i386 Packages [692 B]
Get:14 https://xpq4.sourceforge.io/debrepo aquarius-cn/main i386 Packages [2.894 B]
Get:15 https://q4os.org/q4repo q4os-5-0-cn/main i386 Packages [14,2 kB]
Get:16 https://q4os.org/qtderepo bookworm/main i386 Packages [227 kB]
Get:17 https://packages.mozilla.org/apt mozilla/main amd64 Packages [104 kB]
Get:18 https://q4os.org/qextrepo bookworm-firefox-cn/main i386 Packages [14,6 kB]
Get:19 https://packages.mozilla.org/apt mozilla/main i386 Packages [98,5 kB]
Get:20 https://packages.mozilla.org/apt mozilla/main all Packages [5.525 kB]
Get:21 http://deb.debian.org/debian bookworm/contrib i386 Packages [46,0 kB]
Get:22 http://deb.debian.org/debian bookworm/non-free i386 Packages [73,5 kB]
Get:23 http://deb.debian.org/debian bookworm/non-free-firmware i386 Packages [5.908 B]
Get:24 http://deb.debian.org/debian bookworm-updates/main i386 Packages [756 B]
Reading package lists... Done
W: GPG error: https://dl.winehq.org/wine-builds/debian bookworm InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 76F1A20FF987672F
E: The repository 'https://dl.winehq.org/wine-builds/debian bookworm InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details. 
It seems like I have a problem with the repository key, but I do not understand the problem or how to find a solution to the problem as well.

thank you in advance for all your help.
User avatar
KenSharp
Level 4
Level 4
Posts: 170
Joined: Mon Jul 13, 2009 8:52 pm

Re: installing wine on Q4OS

Post by KenSharp »

Try deleting winehq-archive.key and adding it again.
Post Reply