I'm pretty sure I've already fixed this. The following code (which precedes the one you edited) should prevent nvidia-detector from processing packages containing the "experimental" string in their name:
for package in apt.Cache():
if (not package.name.startswith('nvidia-')
or 'updates' in package.name
or 'experimental' in package.name): continue
I'm pretty sure I've already fixed this. The following code (which precedes the one you edited) should prevent nvidia-detector from processing packages containing the "experimental" string in their name:
for package in apt.Cache(): name.startswith ('nvidia- ')
continue
if (not package.
or 'updates' in package.name
or 'experimental' in package.name):