There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

How to manually remove nvidia package that won't go?

(Linux Mint) Switched to an AMD graphics card recently and ran “sudo apt remove --purge” on all ^nvidia* and ^libnvidia* packages. Unfortunately, one package (libnvidia-compute-470) seems to not get the message and won’t remove itself. Quick search around the internet on solutions have not resolved the issue yet. Wondering if anyone had any ideas how to manually remove this package? Cheers!

bigredgiraffe ,

If you are attempting to use regex match on the package name I am pretty sure you need to use .* not just * as . represents any character except newline and * is 0 or more matches of the previous character in a regex. so your expression was looking for libnvidi with 0 or more a character which I don’t think is what you wanted and that might be why it didn’t work as expected. Cheers!

Fluid OP ,
@Fluid@aussie.zone avatar

Thank you! The more you know. Much appreciated

nanook ,

Does it provide an error message? Might try lower level, dpkg -r libnvidia-compute-470.

vipaal ,

Get a list of packages that depend on it, as explained in unix.stackexchange.com/…/how-to-find-the-packages…

You may have to remove all the dependants along with NVIDIA package, or maybe remove the dependants before removing the NVIDIA package.

Fluid OP ,
@Fluid@aussie.zone avatar

Thanks. Checking dependencies, a few were listed, but none were installed. I managed to get it to purge finally by using it’s full package name “libnvidia-compute-470:ix86”. Strange why it wouldn’t remove using the ^libnvidia* command though, as it contains those words. Thank you.

Molecular0079 ,

I think its because just specifying libnividia-compute-470 indicates the 64 bit version, but the package that’s installed is the 32-bit version. That’s why specifying the full package name with the architecture suffix works.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • [email protected]
  • lifeLocal
  • goranko
  • All magazines