[Nvidia]驱动安装报错:An NVIDIA kernel module ‘nvidia-xxx‘ appears to already be loaded in your kernel

[Nvidia]驱动安装报错:An NVIDIA kernel module ‘nvidia-xxx’ appears to already be loaded in your kernel

安装NVIDIA过程中报错

在这里插入图片描述

原因:仍有进程使用nvidia相关的组件,导致nvidia组件未删干净,这里xxx可以表示成uvm、modeset,drm等。

解决方法

1、执行下述命令,查看系统中nvidia相关的模块

lsmod | grep nvidia

在这里插入图片描述

这里可以发现系统中仍有nvidia_uvm模块

2、执行下述命令,查看有哪些进程使用nvidia*

sudo lsof -n -w /dev/nvidia*

在这里插入图片描述

3、执行kill指令杀死进程,直到执行命令②时什么都不显示

sudo kill 211380

4、删除nvidia相关的组件

sudo rmmod nvidia_uvm
sudo rmmod nvidia
  • 8
    点赞
  • 9
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
uCOS-III-ST-STM32-The Real-Time Kernel www.micrium.com Designations used by companies to distinguish their products are often claimed as trademarks. In all instances where Micriμm Press is aware ofa trademark claim, the product name appears in initial capital letters, in all capital letters, orin accordance with the vendor’s capatilization preference. Readers should contact the appropriate companies for more complete information on trademarks and trademark registrations. All trademarks and registerd trademarks in this book are the property of their respective holders. Copyright © 2010 by Micriμm Press except where noted otherwise. Published by Micriμm Press. All rights reserved. Printed in the United States of America. No part of this publication may be reproduced or distributed in any form or by any means, or stored in a database or retrieval system, without the prior written permission of the publisher; with the exception that the program listings may be entered, stored, and executed in a computer system, but they may not be reproduced for publication. The programs and code examples in this bookare presented for instructional value. The programs and examples have been carefully tested, but are not guaranteed to any particular purpose. The publisher does not offer any warranties and does not guarantee the accuracy, adequacy, or completeness of any information herein and is not responsible for any errors and ommissions. The publisher assumes no liability for damages resulting from the use of the information in this book or for any infringement of the intellectual property rights of third parties that would result from the use of this information.
这个错误信息提示说你的计算机上已经加载了一个名为'nvidia'的NVIDIA内核模块。这可能是因为你的计算机上同时装载了多个NVIDIA驱动程序。 对于这个问题,你可以尝试以下几种解决方法: 1. 重启计算机:有时候,重新启动计算机可以解决内核模块冲突的问题。尝试重新启动计算机,看看问题是否得到解决。 2. 检查已加载的内核模块:通过命令行输入"lsmod"命令,可以列出当前已加载的内核模块。检查列表中是否存在名为'nvidia'的模块。如果有,可以尝试通过命令"rmmod nvidia"将其卸载。 3. 确保只安装一个NVIDIA驱动程序:如果你已经安装了多个NVIDIA驱动程序,可能会导致内核模块冲突。确保只安装一个单独的NVIDIA驱动程序,然后重新启动计算机。 4. 更新NVIDIA驱动程序:有时旧版本的NVIDIA驱动程序可能会导致内核模块冲突。尝试更新NVIDIA驱动程序到最新版本,然后重新启动计算机。 5. 检查系统日志:通过查看系统日志,可以获取更多有关内核模块加载冲突的详细信息。根据系统日志的提示,可以进一步解决这个问题。 总之,这个错误提示是在告诉你已经加载了一个名为'nvidia'的NVIDIA内核模块,可能是由于多个驱动程序或其他原因导致的冲突。通过重启计算机、卸载已加载的模块、更新驱动程序等方法,应该可以解决这个问题。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

视觉萌新、

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值