apt-get -V -y -f install Reading package lists... Done Building dependency tree Reading state information... Done Correcting dependencies... Done The following extra packages will be installed: libgl1-mesa-dev (7.0.3-7) mesa-common-dev (7.0.3-7) The following packages will be REMOVED: nvidia-glx (185.18.14-2) The following NEW packages will be installed: libgl1-mesa-dev (7.0.3-7) mesa-common-dev (7.0.3-7) 0 upgraded, 2 newly installed, 1 to remove and 11 not upgraded. 1 not fully installed or removed. Need to get 0B/205kB of archives. After this operation, 25.3MB disk space will be freed. Reading package fields... Done Reading package status... Done Retrieving bug reports... Done Parsing Found/Fixed information... Done (Reading database ... 496448 files and directories currently installed.) Removing nvidia-glx ... rm: cannot remove `/usr/lib/libGL.so': No such file or directory dpkg-divert: mismatch on package when removing `diversion of /usr/lib/libGL.so.1 to /usr/lib/nvidia/libGL.so.1.xlibmesa by nvidia-glx' found `diversion of /usr/lib/libGL.so.1 to /usr/lib/nvidia/libGL.so.1.xlibmesa by nvidia-glx-180' dpkg: error processing nvidia-glx (--remove): subprocess installed post-removal script returned error exit status 2 Errors were encountered while processing: nvidia-glx E: Sub-process /usr/bin/dpkg returned an error code (1)
apt-get -V -y -f install Reading package lists... Done Building dependency tree Reading state information... Done Correcting dependencies... Done The following extra packages will be installed: libgl1-mesa-dev (7.0.3-7) mesa-common-dev (7.0.3-7) The following packages will be REMOVED: nvidia-glx (185.18.14-2) The following NEW packages will be installed: libgl1-mesa-dev (7.0.3-7) mesa-common-dev (7.0.3-7) 0 upgraded, 2 newly installed, 1 to remove and 11 not upgraded. 1 not fully installed or removed. Need to get 0B/205kB of archives. After this operation, 25.3MB disk space will be freed. Reading package fields... Done Reading package status... Done Retrieving bug reports... Done Parsing Found/Fixed information... Done (Reading database ... 496448 files and directories currently installed.) Removing nvidia-glx ... rm: cannot remove `/usr/lib/libGL.so': No such file or directory dpkg-divert: mismatch on package when removing `diversion of /usr/lib/libGL.so.1 to /usr/lib/nvidia/libGL.so.1.xlibmesa by nvidia-glx' found `diversion of /usr/lib/libGL.so.1 to /usr/lib/nvidia/libGL.so.1.xlibmesa by nvidia-glx-180' dpkg: error processing nvidia-glx (--remove): subprocess installed post-removal script returned error exit status 2 Errors were encountered while processing: nvidia-glx E: Sub-process /usr/bin/dpkg returned an error code (1)