Hi sammanadh, and welcome to LQ.
The official Wine installation instructions are here (follow the ones for Ubuntu Bionic if you're using Mint 19.x):
https://wiki.winehq.org/Ubuntu
It's always better to follow instructions on the developer's site than "using some codes I found online".
The page lists the stage where you download and add the repository key, which I think is the step you are missing:
Code:
wget -nc https://dl.winehq.org/wine-builds/winehq.key
sudo apt-key add winehq.key