streda 16. januára 2013

FATAL: Could not load /lib/modules/*-openvz-*/modules.dep: No such file or directory

Hi all, if you have problems with openvz and iptables fatal message, there is solution:

run command

depmod


it will return something like this


WARNING: Couldn't open directory /lib/modules/2.6.32-5-openvz-amd64: No such file or directory
FATAL: Could not open /lib/modules/2.6.32-5-openvz-amd64/modules.dep.temp for writing: No such file or directory


so create directory

mkdir /lib/modules/2.6.32-5-openvz-amd64


and run command again

depmod




ls -la /lib/modules/2.6.32-5-openvz-amd64/
total 36
drwxr-xr-x 2 root root 4096 Jan 16 14:48 .
drwxr-xr-x 3 root root 4096 Jan 16 14:48 ..
-rw-r--r-- 1 root root   45 Jan 16 14:48 modules.alias
-rw-r--r-- 1 root root   12 Jan 16 14:48 modules.alias.bin
-rw-r--r-- 1 root root    0 Jan 16 14:48 modules.dep
-rw-r--r-- 1 root root   12 Jan 16 14:48 modules.dep.bin
-rw-r--r-- 1 root root   52 Jan 16 14:48 modules.devname
-rw-r--r-- 1 root root  131 Jan 16 14:48 modules.softdep
-rw-r--r-- 1 root root   49 Jan 16 14:48 modules.symbols
-rw-r--r-- 1 root root   12 Jan 16 14:48 modules.symbols.bin




thats all :)

Žiadne komentáre: