I am trying to uninstall sgx driver because I want to get the latest update but when I run uninstall script file located under opt/intel/sgxdriver it give me the following error:
Uninstall failed because the kernel module is in use
I have also stopped aesmd service and I still got the above error.
I have uninstalled Intel SGX SDK and have disablet Intel SGX technology at my BIOS.
Am I missing something?
Blacklist intel_sgx, so it does not get loaded, then uninstall.
- edit /etc/modprobe.d/blacklist.conf
- add line: blacklist intel_sgx
- Now intel_sgx will not be loaded. Test with lsmod | grep intel_sgx.
- sudo opt/intel/sgxdriver/uninstall.sh