First, take a look at this question
It has a highly upvoted answer supposing to do what you want. I'd not consider it a duplicate (it is about not updating), but nevertheless you should check out that answer.
Did you uninstall etc beforehand? These commands will probably not remove a current installation. Did you check if it is removed after uninstalling (some leftover files could make it look like your package is still there)?
After that, be sure to run those commands with
dpkg solution should work.
If that doens't work, there are some other methods as well. For instance from this question on superuser
put the following into your /etc/apt/preferences:
Pin: version *
the Pin-Priority: -1 says that the matched versions of the matched packages should never be installed, while the rest matches every version of the package i-am-a-package-containing-junk, effectively preventing its installation.
Finally, you might take a look on this page: it shows you the file
/etc/apt/apt.conf.d/01autoremove, and how to use it.