WSUS post-installation task fails after Inplace-Upgrade

After In-place upgrading from Windows 2008 R2 to 2012 R2 (not a good idea in production environment) and activating the new Windows Server Updates Services Role, I´ve encountered several errors.