The console is looking for a previous version of the system update. Follow these steps:
Find a USB flash drive with at least 90 MB of free space.
Plug the USB flash drive into a USB port on your computer.
Note The USB flash drive must use the FAT32 file system (Microsoft Windows).
Download the system update for error code xxxx-3151-xxxx-xxxx-xxxx-xxxx.
Click Save to save the console update .zip file on your computer.
Unzip the file. If you are using Windows XP, Windows Vista or Windows 7, double-click the .zip file to unzip it.
Copy the contents of the .zip file to the root directory of your USB flash drive.
Unplug the USB flash drive from your computer.
If there is a disc in the console, remove it.
Turn off the console.
Remove all console storage devices, including any USB flash drives, external hard drives or the internal hard drive on the Xbox 360 S console. Learn how to remove the hard drive.
Plug the USB flash drive with the update into a USB port on console.
Turn on the console. When the console starts, the software update should automatically start.