In case you are trying to upgrade to WordPress 3.8, but you get the above message…
All you have to do is find file.php under /wp-admin/includes/ folder, go around line 465 and change the
function download_url( $url, $timeout = 300 ) {
to
function download_url( $url, $timeout = 500 ) {
and you’re done!
Happy upgrading!