First post what error message is being displayed on the screen by Ubuntu.
Also I need your System configuration information. You can leave say 10 GB of
space ( unpartitioned). And choose the option 'Auto-allocate from the Space Available'. (last option)
Ubuntu will automatically allocate space for Root ('/') and Swap and format them.
Choose this option.