Hi,
I realise this thread is a bit old, but I had exactly the same thing using the Duplicator plugin when installing onto my local xampp setup, with a fresh install. BUT I think if I’d fixed a couple of other things first it might have worked, namely:
re-saved permalinks (though I did try this too)
checked the media upload settings and changed it to wp-content/uploads as it had the full path instead
Hope this helps anyone else…