<div dir="ltr"><div><div><div>I was having this problem and I think it's solved now. <br><br></div>I was using the current nvidia driver until my graphics card became obsolete, then I installed the legacy driver and  uninstalled the current driver. It was left in a broken state after that.<br><br></div>I tried to dist-upgrade or remove the nvidia packages but it failed telling me to run "dpkg --configure -a". When I tried to do that the command would hang so I was stuck.. Examining the running processes in another console I could see it was the /usr/lib/nvidia/check-for-mismatching-nvidia-module script that hang.<br></div><div><div><div><br></div><div>I edited said script putting an exit command at the start of the script so I could resume dpkg execution, then I purged all nvidia packages and installed the legacy package succesfully this time.<br></div><div><br>Questions:<br> - what is your Nvidia card (lspci verbose output please)?<br><br>01:00.0 VGA compatible controller: NVIDIA Corporation G92 [GeForce 9800 GT] (rev a2) (prog-if 00 [VGA controller])
        Subsystem: ASUSTeK Computer Inc. G92 [GeForce 9800 GT]
        Flags: bus master, fast devsel, latency 0, IRQ 31
        Memory at f6000000 (32-bit, non-prefetchable) [size=16M]
        Memory at c0000000 (64-bit, prefetchable) [size=256M]
        Memory at f4000000 (64-bit, non-prefetchable) [size=32M]
        I/O ports at e000 [size=128]
        Expansion ROM at f7000000 [disabled] [size=128K]
        Capabilities: <access denied>
        Kernel driver in use: nouveau
        Kernel modules: nvidia
<br><br></div><div>(This is after succesfully removing the nvidia packages, thus the nouveau driver.)<br></div><div><br> - are you on stable, testing or unstable?<br><br>Testing.<br><br> - if I understand correctly you have an amd64 installation. Did you add
i368 via dpkg --add-architecture?<br><br>Yes. Had nvidia i386 packages installed.<br><br> - did you ever have non-legacy-340xx packages installed?<br><br></div><div>Yes. I had them until they become incompatible with my card.<br></div><div><br> - are you installing from a tty or is yours a laptop with an optimus system?<br><br></div><div>It's a desktop system and tried from a gnome terminal and a remote ssh session.<br><br>I hope this helps someone.<br><br></div><div>Thanks for you support.<br><br></div><div>Best regards.<br></div></div></div></div><div dir="ltr">-- <br></div><div dir="ltr">Bernat Arlandis<br></div>