卸载nvidia驱动时出现错误:
$sudo apt purge nvidia-alternative glx-alternative-nvidia
$sudo apt --fix-broken install
dpkg: dependency problems prevent configuration of glx-alternative-nvidia:glx-alternative-nvidia depends on glx-diversions (= 0.8.3); however:Package glx-diversions is not installed.dpkg: error processing package glx-alternative-nvidia (--configure):dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of nvidia-alternative:nvidia-alternative depends on glx-alternative-nvidia (>= 0.8.3~); however:Package glx-alternative-nvidia is not configured yet.dpkg: error processing package nvidia-alternative (--configure):dependency problems - leaving unconfigured
Errors were encountered while processing:glx-alternative-nvidianvidia-alternative
E: Sub-process /usr/bin/dpkg returned an error code (1)
解决方案执行如下命令:
$sudo apt-get install glx-diversions --reinstall
$sudo apt-get remove nvidia-alternative
$sudo apt-get remove glx-alternative-nvidia
原文链接