I have the same USB wireless card. Running 18.04. No success with the above, but I had no trouble getting the card to work using the official D-Link linux driver. You can find the driver here:
Be sure you confirm that you have the right product and hardware release code.
After downloading the .zip file from D-link, I simply ran the install.sh script that D-link included, restarted and everything is up and running.
To run the script, extract the files from D-link, and find the intall.sh script. Then in terminal navigate to the folder containing the script, then:
sudo chmod +x install.sh
This is also helpful if the machine doesn't have a current internet connection (not unlikely since you've just bought a usb wifi card) since you can load the D-link files on a usb stick or whatever.
Hope that helps!