错误信息如下
~$ sudo apt-get purge docker-engine
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
bazel : Depends: google-jdk but it is not installable or
java8-jdk but it is not installable or
java8-sdk or
oracle-java8-installer but it is not installable
nvidia-docker : Depends: docker-engine (>= 1.9.0) but it is not going to be installed or
docker-ce but it is not installable or
docker-ee but it is not installable
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
解决
#删除提示的bazel和nvidia-docker两个未完全安装的软件。
$sudo dpkg --purge bazel
$sudo dpkg --purge nvidia-docker
类似的,错误信息
you might want to run 'apt-get -f install' to correct these
解决
$ sudo apt-get --fix-broken install