[CentOS] centos modprobe ipv6 fatal ipv6.ko Invalid module format

Tue May 22 02:12:17 UTC 2012
Gordon Messmer <yinyang at eburg.com>

On 05/21/2012 04:12 PM, Jesus del Valle wrote:
> modprobe: FATAL: Could not read
> '/lib/modules/2.6.32-220.17.1.el6.x86_64/kernel/net/ipv6/ipv6.ko': Invalid
> module format
> I am not able to find any solution to this. ???

Use "file" to identify the type of data contained in that file, and use 
"rpm -Vf" to verify it.  If either result doesn't look right, reboot and 
fsck your filesystem.

# file /lib/modules/2.6.32-220.17.1.el6.x86_64/kernel/net/ipv6/ipv6.ko
/lib/modules/2.6.32-220.17.1.el6.x86_64/kernel/net/ipv6/ipv6.ko: ELF 
64-bit LSB relocatable, x86-64, version 1 (SYSV), not stripped
# rpm -Vf /lib/modules/2.6.32-220.17.1.el6.x86_64/kernel/net/ipv6/ipv6.ko