I cannot install pytorch by Bad CRC-32 for file 'torch/lib/libtorch_cpu.so'
Labels: module: build, triaged

### 🐛 Describe the bug

I cannot install Pytorch

This is the process to reproduce the error

1. pip3 cache purge
2. pip3 install torch==1.11.0+cu113 torchvision==0.12.0+cu113 --extra-index-url https://download.pytorch.org/whl/cu113 --no-cache-dir

Output

```
Looking in indexes: https://pypi.org/simple, https://download.pytorch.org/whl/cu113
Collecting torch==1.11.0+cu113
  Downloading https://download.pytorch.org/whl/cu113/torch-1.11.0%2Bcu113-cp310-cp310-linux_x86_64.whl (1637.0 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.6/1.6 GB 75.7 MB/s eta 0:00:00
Collecting torchvision==0.12.0+cu113
  Downloading https://download.pytorch.org/whl/cu113/torchvision-0.12.0%2Bcu113-cp310-cp310-linux_x86_64.whl (22.3 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 22.3/22.3 MB 85.2 MB/s eta 0:00:00
Requirement already satisfied: typing-extensions in ./env/lib/python3.10/site-packages (from torch==1.11.0+cu113) (4.3.0)
Requirement already satisfied: pillow!=8.3.*,>=5.3.0 in ./env/lib/python3.10/site-packages (from torchvision==0.12.0+cu113) (9.2.0)
Requirement already satisfied: numpy in ./env/lib/python3.10/site-packages (from torchvision==0.12.0+cu113) (1.23.2)
Collecting requests
  Downloading requests-2.28.1-py3-none-any.whl (62 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 62.8/62.8 kB 4.7 MB/s eta 0:00:00
Requirement already satisfied: urllib3<1.27,>=1.21.1 in ./env/lib/python3.10/site-packages (from requests->torchvision==0.12.0+cu113) (1.26.12)
Requirement already satisfied: certifi>=2017.4.17 in ./env/lib/python3.10/site-packages (from requests->torchvision==0.12.0+cu113) (2022.6.15)
Requirement already satisfied: idna<4,>=2.5 in ./env/lib/python3.10/site-packages (from requests->torchvision==0.12.0+cu113) (3.3)
Requirement already satisfied: charset-normalizer<3,>=2 in ./env/lib/python3.10/site-packages (from requests->torchvision==0.12.0+cu113) (2.1.1)
Installing collected packages: torch, requests, torchvision
ERROR: Exception:
Traceback (most recent call last):
  File "/home/jack3/TKHAD-main/env/lib/python3.10/site-packages/pip/_internal/cli/base_command.py", line 167, in exc_logging_wrapper
    status = run_func(*args)
  File "/home/jack3/TKHAD-main/env/lib/python3.10/site-packages/pip/_internal/cli/req_command.py", line 247, in wrapper
    return func(self, options, args)
  File "/home/jack3/TKHAD-main/env/lib/python3.10/site-packages/pip/_internal/commands/install.py", line 461, in run
    installed = install_given_reqs(
  File "/home/jack3/TKHAD-main/env/lib/python3.10/site-packages/pip/_internal/req/__init__.py", line 73, in install_given_reqs
    requirement.install(
  File "/home/jack3/TKHAD-main/env/lib/python3.10/site-packages/pip/_internal/req/req_install.py", line 790, in install
    install_wheel(
  File "/home/jack3/TKHAD-main/env/lib/python3.10/site-packages/pip/_internal/operations/install/wheel.py", line 727, in install_wheel
    _install_wheel(
  File "/home/jack3/TKHAD-main/env/lib/python3.10/site-packages/pip/_internal/operations/install/wheel.py", line 587, in _install_wheel
    file.save()
  File "/home/jack3/TKHAD-main/env/lib/python3.10/site-packages/pip/_internal/operations/install/wheel.py", line 388, in save
    shutil.copyfileobj(f, dest)
  File "/usr/lib/python3.10/shutil.py", line 195, in copyfileobj
    buf = fsrc_read(length)
  File "/usr/lib/python3.10/zipfile.py", line 925, in read
    data = self._read1(n)
  File "/usr/lib/python3.10/zipfile.py", line 1015, in _read1
    self._update_crc(data)
  File "/usr/lib/python3.10/zipfile.py", line 943, in _update_crc
    raise BadZipFile("Bad CRC-32 for file %r" % self.name)
zipfile.BadZipFile: Bad CRC-32 for file 'torch/lib/libtorch_cpu.so'
```

I also tried the next

pip install torch

Output:
```
Using cached torch-1.12.1-cp310-cp310-manylinux1_x86_64.whl (776.3 MB)
ERROR: THESE PACKAGES DO NOT MATCH THE HASHES FROM THE REQUIREMENTS FILE. If you have updated the package versions, please update the hashes. Otherwise, examine the package contents carefully; someone may have tampered with them.
    torch from https://files.pythonhosted.org/packages/ca/74/7342c7f21449557a8263c925071a55081edd7e9b641404cfe31d6fb71d3b/torch-1.12.1-cp310-cp310-manylinux1_x86_64.whl:
        Expected sha256 9c038662db894a23e49e385df13d47b2a777ffd56d9bcd5b832593fab0a7e286
             Got        aee43dd7ff45ca5a8b6d770e152396c09d4ed072fa49079a29f3f70cb21d8571
```

pip install torch --no-cache-dir

Output:

```
Downloading torch-1.12.1-cp310-cp310-manylinux1_x86_64.whl (776.3 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 776.3/776.3 MB 75.6 MB/s eta 0:00:00
ERROR: THESE PACKAGES DO NOT MATCH THE HASHES FROM THE REQUIREMENTS FILE. If you have updated the package versions, please update the hashes. Otherwise, examine the package contents carefully; someone may have tampered with them.
    torch from https://files.pythonhosted.org/packages/ca/74/7342c7f21449557a8263c925071a55081edd7e9b641404cfe31d6fb71d3b/torch-1.12.1-cp310-cp310-manylinux1_x86_64.whl:
        Expected sha256 9c038662db894a23e49e385df13d47b2a777ffd56d9bcd5b832593fab0a7e286
             Got        02b75d6a16e74c50313a6519acf2d495c4bde0df0f0ed9528b6a29f6dcd09646
```
I am getting the same results with `--no-cache` flag

### Versions

PyTorch version: N/A
Is debug build: N/A
CUDA used to build PyTorch: N/A
ROCM used to build PyTorch: N/A

OS: Ubuntu 22.04.1 LTS (x86_64)
GCC version: (Ubuntu 11.2.0-19ubuntu1) 11.2.0
Clang version: Could not collect
CMake version: Could not collect
Libc version: glibc-2.35

Python version: 3.10.4 (main, Jun 29 2022, 12:14:53) [GCC 11.2.0] (64-bit runtime)
Python platform: Linux-5.15.0-46-generic-x86_64-with-glibc2.35
Is CUDA available: N/A
CUDA runtime version: 11.7.64
GPU models and configuration: GPU 0: NVIDIA GeForce RTX 3090
Nvidia driver version: 515.43.04
cuDNN version: Probably one of the following:
/usr/local/cuda-11.7/targets/x86_64-linux/lib/libcudnn.so.8.4.1
/usr/local/cuda-11.7/targets/x86_64-linux/lib/libcudnn_adv_infer.so.8.4.1
/usr/local/cuda-11.7/targets/x86_64-linux/lib/libcudnn_adv_train.so.8.4.1
/usr/local/cuda-11.7/targets/x86_64-linux/lib/libcudnn_cnn_infer.so.8.4.1
/usr/local/cuda-11.7/targets/x86_64-linux/lib/libcudnn_cnn_train.so.8.4.1
/usr/local/cuda-11.7/targets/x86_64-linux/lib/libcudnn_ops_infer.so.8.4.1
/usr/local/cuda-11.7/targets/x86_64-linux/lib/libcudnn_ops_train.so.8.4.1
HIP runtime version: N/A
MIOpen runtime version: N/A
Is XNNPACK available: N/A

Versions of relevant libraries:
[pip3] numpy==1.23.2
[conda] No relevant packages


cc @malfet @seemethere