You have installed php5 packages that are not part of the core distribution, so first of all you are posting in the wrong forum. Moving to SME 7.x contribs forum.
To get the problem resolved you should try and find a version of php5-cgi-odbc that corresponds to the new version of php5-cgi that is part of the upgrade or remove the package and retry updates.
It could very well be that the required package is in smetest, be sure that no core packages are dragged in when temporarily enabling it as the smetest repository is for untested packages, for which stability and quality has not been verified.