update Mautic from 2.5.1 to 2.6 Error

I tried to update to Mautic 2.6 from 2.5.1 and got the following error:

Code:
[SymfonyComponentDebugExceptionFatalThrowableError] Type error: Argument 1 passed to MauticCoreBundleHelperCacheHelper::__construct() must be an instance of AppKernel, instance of MauticCoreBundleFactoryMauticFactory given, called in var/www/html/mautic/app/cache/prod/appProdProjectContainer.php on line 9035

I tried to update manually with the following commands in the console:
php app/console cache:clear
php app/console mautic:update:find
php app/console mautic:update:apply

I tried to update to Mautic 2.6 from 2.5.1 and got the following error:

[SymfonyComponentDebugExceptionFatalThrowableError] Type error: Argument 1 passed to MauticCoreBundleHelperCacheHelper::__construct() must be an instance of AppKernel, instance of MauticCoreBundleFactoryMauticFactory given, called in var/www/html/mautic/app/cache/prod/appProdProjectContainer.php on line 9035

I tried to update manually with the following commands in the console:
php app/console cache:clear
php app/console mautic:update:find
php app/console mautic:update:apply

Revert back to 2.5.1 for the time being. Wait for the more stable release.

Ran into the same trouble. How do you revert back to 2.5.1?
from the command line?