Comment 3 for bug 1882942

Revision history for this message
Some Guy On The Net (lockszmith) wrote :

Copying over my workaround from https://github.com/ubuntu/zsys/issues/170#issuecomment-826359558 :

Just to chime in, I've been having the same issue myself.
Following @ddnexus's [analysis of the issue](https://github.com/ubuntu/zsys/issues/170#issuecomment-715901655_), the workaround is rather simple:
```
sudo mkdir /var/lib/docker.migrating
echo 'dummy' | sudo tee /var/lib/docker.migrating/workaround.txt
```
this will allow the `stat '/var/lib/docker.migrating/*'` to not fail with an error.

After the successful `apt update docker.io` run, you can remove the workaround dummy file:
```
sudo rm /var/lib/docker/workaround.txt
```

Hope others find this useful.