Disclaimer: This article is a blogger original article, follow the CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
Execute the following command prompt error rmmod xxx:
rmmod: can't change directory to '/lib/modules': No such file or directory
Solution: New Folder mkdir / lib / modules
Executed again rmmod xxx.ko, suggest the following errors:
rmmod: can't change directory to '4.1.15': No such file or directory
Solution: New Folder 4.1.15
mkdir /lib/modules/4.1.15
Then execute again rmmod xxx