If i google then i find that first you have to install a public key for the wine repository:
wget -O - https://dl.winehq.org/wine-builds/winehq.key | gpg --dearmor | sudo tee /usr/share/keyrings/winehq-archive.key
Then add a repository :
sudo wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/ub...-jammy.sources
If we open winehq-jammy.sources then we see:
Signed-By: /etc/apt/keyrings/winehq-archive.key
Why public key is located in /usr/share/keyrings/ and not in /etc/apt/keyrings and how is it working?