It would be idea to disable any third party repositories that you may have added to install additional software. This was one of the most common source of errors while upgrading from Z16 → Z17.
You can read through this post to get a better idea of what I'm referring to: