How do you remove the winehq repository and install from the ubuntu repository?

I ran and enjoyed Linux mint 18.3 as my first foray into Linux. I have upgraded computers and installed linux mint 19. When trying to install wine I received the following - “The following packages have unmet dependencies: winehq-stable : Depends: wine-stable (= 3.0.3~cosmic) E: Unable to correct problems, you have held broken packages.”
I found a post with the following fix - “Btw, wine should be provided by the ubuntu repository. I would recommend removing the winehq repository altogether and check whether wine installs then. Try the winehq repo later when you are sure, that you need a more recent version.”
How do I accomplish this?

The GUI way is to open synaptic package manager, go to settings then to software sources. Then look in the PPA and Additional Repositories tabs for any from winehq. You can then disable or remove it.


The terminal way is to open /etc/apt/sources.list and then any files in the directory /etc/apt/sources.list.d and then comment out any winehq repositories by adding a # at the start of the line.

You will need root privileges to write these files.


Then you can apt update and try installing again.