How to fix error cannot instantiate interface Magento\Theme\Model\Theme\StoreThemesResolverInterface#0 <magento root>/vendor/magento/framework/ObjectMa nager/ObjectManager.php(70)?

You have error in ssh when trying to run bin/magento setup:upgrade or any other reuest and on your server redis connected to magento 2 then just run in ssh console:

redis-cli FLUSHALL

and after this you will need to upgrade all of your 3-rd party extensions for magento 2 ( installed )

This is full error message:

Cannot instantiate interface Magento\Theme\Model\Theme\StoreThemesResolverInterface#0 /vendor/magento/framework/ObjectMa nager/ObjectManager.php(70): Magento\Framework\ObjectManager\Factory\Dynamic\Developer->create()