Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Module Clean Up "error: No package owns /usr/lib/modules/5.11.15-arch1-2" #22

Open
CorvetteCole opened this issue Oct 28, 2022 · 1 comment

Comments

@CorvetteCole
Copy link

Realized old modules were junking up my system and that this service was not activated. Tried to start it manually which resulted in the following error. Confused by this since I thought check if a package owned the module was kind of the point of this script?

Oct 28 00:26:31 cole-pc systemd[1]: Starting Clean up modules from old kernels...
Oct 28 00:26:31 cole-pc bash[103383]: + for i in /usr/lib/modules/[0-9]*
Oct 28 00:26:31 cole-pc bash[103383]: + [[ 5.11.15-arch1-2 = \6\.\0\.\2\-\a\r\c\h\1\-\1 ]]
Oct 28 00:26:31 cole-pc bash[103383]: + pacman -Qo /usr/lib/modules/5.11.15-arch1-2
Oct 28 00:26:31 cole-pc bash[103456]: error: No package owns /usr/lib/modules/5.11.15-arch1-2
Oct 28 00:26:31 cole-pc bash[103383]: + rsync -AHXal /usr/lib/modules/5.11.15-arch1-2 /usr/lib/modules/.old/
Oct 28 00:26:31 cole-pc bash[103688]: rsync: [Receiver] ERROR: cannot stat destination "/usr/lib/modules/.old/": Not a directory (20)
Oct 28 00:26:31 cole-pc bash[103688]: rsync error: errors selecting input/output files, dirs (code 3) at main.c(770) [Receiver=3.2.7]
Oct 28 00:26:31 cole-pc systemd[1]: linux-modules-cleanup.service: Main process exited, code=exited, status=3/NOTIMPLEMENTED
Oct 28 00:26:32 cole-pc systemd[1]: linux-modules-cleanup.service: Failed with result 'exit-code'.
Oct 28 00:26:32 cole-pc systemd[1]: Failed to start Clean up modules from old kernels.
@Varun-garg
Copy link

no package owns is expected afaik. from my experience, these files are moved to .old and are deleted on the subsequent reboot.

your error seems to be cannot stat destination "/usr/lib/modules/.old/": Not a directory (20)

expected directory with permissions"

drwxr-xr-x   2 root root 4.0K Mar 17 13:31 .old

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants