Wine is in the Ubuntu software center(You may have to install it on some versions of Ubuntu. sudo apt-get install software-center
or sudo apt install software-center
in some versions of Ubuntu.), Ubuntu update center will install a version for your version of Ubuntu, then if need be you can upgrade wine. It should save you a lot of trouble.
Otherwise you can also use "Synaptic package manager"(Also in Ubuntu software center.). I heard about Synaptic here in a reply to a different question.) to do the install(Find wine using Synaptics search, right click mark for install, then click the apply button.) it can do all the dependency stuff for you. Synaptic also has a "fix broken packages" which has saved me lots of time and effort.
By the way you mite like "wincfg" helps setup wine, and "wine tricks" and "Qtforwine" these help setup applications in wine, all are in Ubuntu software center or can be found threw Synaptic.
Anyway I hope this helps. By the way I'm using an older version of Ubuntu 14.04 but I did "look up the info" to make sure it still works.