Ok, I’ll admit I’m new to docker. I’m on Windows 10 Pro running ubuntu via (Windows Subsystem for Linux – WSL) and I installed Docker for Windows several days ago.
Here’s my basic docker installation info:
docker version command displays
client and server are both on 18.0.x-ce
I made some mess this afternoon, I mistakenly downgraded docker for ubuntu to 17.x-ce, so, when
i switched it to bash and then run “docker version” indicates the client is of version 17.x-ce but I need the client to be 18.0.x-ce as well. So, I attempted to purge current version and upgrade it back to a newer version but ran into problem.
dpkg: error processing package docker-ce (–remove):
package is in a very bad inconsistent state, you should
reinstall it before attempting a removal
Error were encountered while processing:
E: sub-process /usr/bin/dpkg returned an error code (1)
So, how can we clean up this mess?