An erro occured while upgrading from 2.0.17 to

I use composer command to upgrade from 2.0.17 to,this command is:
composer require “yiisoft/yii2:~2.0.10” --update-with-dependencies

but prompt error message,as follow:
curl error 28 while downloading
b7b05614a0b94d6e2a038ef3a9ca7a10e30ab11470.json: Operation timed out after 300096 milliseconds with
4763401 out of 7231047 bytes received

how to solve?

Try clean install i.e. by removing vendor folder and running composer update again.

thank u,i first execute this command:composer self-update,
and i not only delete vendor folder, but i delete composer.lock.
so i execute composer success.