I'm using Ubuntu 20.04.1 LTS. Docker version 19.03.12, build 48a66213fe.
I was trying to pull mongo image with docker pull mongo when I got this error:
failed to register layer: Error processing tar file(exit status 1): open /var/lib/dpkg/info/gcc-8-base:amd64.list: invalid argument
I've already uninstalled docker and installed again.
I have gcc version 9 and 8 installed. I tried to uninstall gcc 9 and leave only 8 on the system, but I keep getting error.
I thought the problem was because the file he mentions in the error was missing, but I went to its folder and the file is there.
My terminal:
theneverchosen@TheNeverChosen:~$ docker pull mongo
Using default tag: latest
latest: Pulling from library/mongo
f08d8e2a3ba1: Extracting 26.7MB/26.7MB
3baa9cb2483b: Download complete
94e5ff4c0b15: Download complete
1860925334f9: Download complete
9d42806c06e6: Download complete
31a9fd218257: Download complete
5bd6e3f73ab9: Download complete
f6ae7a64936b: Download complete
80fde2cb25c5: Download complete
1bec62fe62fc: Download complete
2cf4970a1653: Download complete
39fac3226e16: Download complete
86bca9c64faf: Download complete
failed to register layer: Error processing tar file(exit status 1): open /var/lib/dpkg/info/gcc-8-base:amd64.list: invalid argument
theneverchosen@TheNeverChosen:~$ docker --version
Docker version 19.03.12, build 48a66213fe
theneverchosen@TheNeverChosen:~$ gcc --version
gcc (Ubuntu 9.3.0-10ubuntu2) 9.3.0
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
theneverchosen@TheNeverChosen:~$ gcc-8 --version
gcc-8 (Ubuntu 8.4.0-3ubuntu2) 8.4.0
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.