I reckon this error happens when corresponding linux-image package has been removed before linux-ubuntu-modules is purged. linux-ubuntu-modules .postrm shouldn't be doing depmod or update-initramfs anymore in this case. You can probably workaround this issue by manually creating /lib/modules/2.6.22-12-generic directory and then trying to purge linux- ubuntu-modules.
** Changed in: linux-ubuntu-modules-2.6.22 (Ubuntu) Importance: Undecided => Medium Status: New => Confirmed -- cannot purge config files for linux-ubuntu-modules-2.6.22-12-generic https://bugs.launchpad.net/bugs/149836 You received this bug notification because you are a member of Ubuntu Bugs, which is the bug contact for Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs