I have had this problem very often under Linux. After several attempts it turned out to be a problem with memory addressing. If there is not enough free memory available, it gets stuck. I had to delete the cache in memory. Then it worked again.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.6 LTS
Release: 16.04
Codename: xenial
Distributor ID: Ubuntu
Description: Ubuntu 16.04.6 LTS
Release: 16.04
Codename: xenial