Remove python-software-properties from the php5 package dependencies.
Remove apt class dependency from apache and php modules and move to the  to the root update command.