I recently installed Wine in a UM18.04 VirtualBox with 3 GB of RAM using: Getting Wine from the Official Builds PPA
wget https://dl.winehq.org/wine-builds/Release.key
sudo apt-key add Release.key
sudo apt-add-repository 'https://dl.winehq.org/wine-builds/ubuntu/'
rm Release.key
sudo apt install winehq-stable
Worked fine.