首页 > 其他分享 >nvidia存档

nvidia存档

时间:2024-10-31 23:20:36浏览次数:4  
标签:11 存档 drivers cuda nvidia 515 dpkg

解决火狐不能打开网页问题

方法一

输入sudo gedit /etc/resolv.conf
将nameserver x.x.x.x部分改成nameserver 8.8.8.8保存

原文件

# This is /run/systemd/resolve/stub-resolv.conf managed by man:systemd-resolved(8).
# Do not edit.
#
# This file might be symlinked as /etc/resolv.conf. If you're looking at
# /etc/resolv.conf and seeing this text, you have followed the symlink.
#
# This is a dynamic resolv.conf file for connecting local clients to the
# internal DNS stub resolver of systemd-resolved. This file lists all
# configured search domains.
#
# Run "resolvectl status" to see details about the uplink DNS servers
# currently in use.
#
# Third party programs should typically not access this file directly, but only
# through the symlink at /etc/resolv.conf. To manage man:resolv.conf(5) in a
# different way, replace this symlink by a static file or a different symlink.
#
# See man:systemd-resolved.service(8) for details about the supported modes of
# operation for /etc/resolv.conf.

nameserver 127.0.0.53
options edns0 trust-ad
search .

已修改

未解决

方法二

sudo apt-get install firefox

报了很多错,跟之前安装cucnn一样

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
firefox is already the newest version (1:1snap1-0ubuntu2).
firefox set to manually installed.
The following packages were automatically installed and are no longer required:
  libaccinj64-11.5 libcub-dev libcublas11 libcublaslt11
  libcudart11.0 libcufft10 libcufftw10 libcupti-dev
  libcupti-doc libcupti11.5 libcurand10 libcusolver11
  libcusolvermg11 libcusparse11 libnppc11 libnppial11
  libnppicc11 libnppidei11 libnppif11 libnppig11 libnppim11
  libnppist11 libnppisu11 libnppitc11 libnpps11 libnvblas11
  libnvidia-egl-wayland1 libnvidia-egl-wayland1:i386
  libnvjpeg11 libnvrtc-builtins11.5 libnvrtc11.2
  libnvtoolsext1 libnvvm4 libthrust-dev libvdpau-dev
  linux-headers-6.8.0-45-generic
  linux-hwe-6.8-headers-6.8.0-45 linux-hwe-6.8-tools-6.8.0-45
  linux-image-6.8.0-45-generic linux-modules-6.8.0-45-generic
  linux-modules-extra-6.8.0-45-generic
  linux-tools-6.8.0-45-generic node-html5shiv nsight-compute
  nsight-compute-target nvidia-cuda-gdb
  nvidia-cuda-toolkit-doc nvidia-firmware-550-550.120
  nvidia-opencl-dev ocl-icd-opencl-dev opencl-c-headers
  opencl-clhpp-headers
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 10 not upgraded.
8 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up nvidia-dkms-515 (515.43.04-0ubuntu1) ...
update-initramfs: deferring update (trigger activated)

A modprobe blacklist file has been created at /etc/modprobe.d to prevent Nouveau
from loading. This can be reverted by deleting the following file:
/etc/modprobe.d/nvidia-graphics-drivers.conf

A new initrd image has also been created. To revert, please regenerate your
initrd by running the following command after deleting the modprobe.d file:
`/usr/sbin/initramfs -u`

*****************************************************************************
*** Reboot your computer and verify that the NVIDIA graphics driver can   ***
*** be loaded.                                                            ***
*****************************************************************************

INFO:Enable nvidia
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/dell_latitude
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/put_your_quirks_here
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/lenovo_thinkpad
Removing old nvidia-515.43.04 DKMS files...
Deleting module nvidia-515.43.04 completely from the DKMS tree.
Loading new nvidia-515.43.04 DKMS files...
Building for 6.8.0-48-generic
Building for architecture x86_64
Building initial module for 6.8.0-48-generic
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/nvidia-kernel-source-515.0.crash'
Error! Bad return status for module build on kernel: 6.8.0-48-generic (x86_64)
Consult /var/lib/dkms/nvidia/515.43.04/build/make.log for more information.
dpkg: error processing package nvidia-dkms-515 (--configure):
 installed nvidia-dkms-515 package post-installation script subprocess returned error exit status 10
dpkg: dependency problems prevent configuration of cuda-drivers-515:
 cuda-drivers-515 depends on nvidia-dkms-515 (>= 515.43.04); however:
  Package nvidia-dkms-515 is not configured yet.

dpkg: error processing package cuda-drivers-515 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of cuda-drivers:
 cuda-drivers depends on cuda-drivers-515 (= 515.43.04-1); however:
  Package cuda-drivers-515 is not configured yet.

dpkg: error processing package cuda-drivers (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of nvidia-driver-515:
 nvidia-driver-515 depends on nvidia-dkms-515 (= 515.43.04-0ubuntu1); however:
  Package nvidia-dkms-515 is not configured yet.

dpkg: error processing package nvidia-driver-515 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of cuda-runtime-11-7:
 cuda-runtime-11-7 depends on cuda-drivers (>No apport report written because the error message indicates its a followup error from a previous failure.
                       No apport report written because the error message indicates its a followup error from a previous failure.
 No apport report written because MaxReports is reached already
                                                               No apport report written because MaxReports is reached already
                                                             No apport report written because MaxReports is reached already
                                                           No apport report written because MaxReports is reached already
                                                         No apport report written because MaxReports is reached already
                                                       = 515.43.04); however:
  Package cuda-drivers is not configured yet.

dpkg: error processing package cuda-runtime-11-7 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of cuda-demo-suite-11-7:
 cuda-demo-suite-11-7 depends on cuda-runtime-11-7; however:
  Package cuda-runtime-11-7 is not configured yet.

dpkg: error processing package cuda-demo-suite-11-7 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of cuda-11-7:
 cuda-11-7 depends on cuda-runtime-11-7 (>= 11.7.0); however:
  Package cuda-runtime-11-7 is not configured yet.
 cuda-11-7 depends on cuda-demo-suite-11-7 (>= 11.7.50); however:
  Package cuda-demo-suite-11-7 is not configured yet.

dpkg: error processing package cuda-11-7 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of cuda:
 cuda depends on cuda-11-7 (>= 11.7.0); however:
  Package cuda-11-7 is not configured yet.

dpkg: error processing package cuda (--configure):
 dependency problems - leaving unconfigured
Processing triggers for initramfs-tools (0.140ubuntu13.5) ...
update-initramfs: Generating /boot/initrd.img-6.8.0-48-generic
I: The initramfs will attempt to resume from /dev/nvme0n1p8
I: (UUID=eeb86b14-3bb0-4b33-93ab-ea9d396c228c)
I: Set the RESUME variable to override this.
Errors were encountered while processing:
 nvidia-dkms-515
 cuda-drivers-515
 cuda-drivers
 nvidia-driver-515
 cuda-runtime-11-7
 cuda-demo-suite-11-7
 cuda-11-7
 cuda
E: Sub-process /usr/bin/dpkg returned an error code (1)

您遇到的错误表明在安装或配置NVIDIA驱动和CUDA相关包时出现了问题。nvidia-dkms-515包的配置脚本失败,并返回了错误状态10,这导致了后续依赖它的包(如cuda-drivers-515、cuda-drivers、nvidia-driver-515等)都无法正确配置。
这里有几个可能的解决步骤:

查看日志:
查看/var/log/dpkg.log或/var/log/syslog中的相关错误信息,可能会提供更多关于为什么nvidia-dkms-515配置失败的线索。

清理和修复:
使用dpkg的--configure -a选项尝试修复所有未配置的包:
bash复制代码sudo dpkg --configure -a
如果这不起作用,尝试使用apt的--fix-broken选项:
bash复制代码sudo apt install --fix-broken

重新安装NVIDIA驱动:
如果上述步骤仍然无法解决问题,您可能需要完全卸载NVIDIA驱动和CUDA相关包,然后重新安装它们。这可以通过以下命令完成:
bash复制代码sudo apt remove --purge '^nvidia-' '^cuda-' sudo apt autoremove sudo apt install nvidia-driver-515
注意:在卸载之前,请确保您有适当的备份,并了解如何在没有图形界面的情况下恢复系统(例如,通过SSH连接或使用恢复模式)。

检查内核版本:
确保您的内核版本与NVIDIA驱动兼容。有时,新内核的发布可能尚未被NVIDIA驱动支持。

查看NVIDIA官方文档:
NVIDIA官方可能提供了关于特定驱动版本和Linux发行版兼容性的信息。

禁用Nouveau驱动:
确保Nouveau驱动(开源NVIDIA驱动)已被禁用。这通常通过在引导加载器(如GRUB)中添加nouveau.modeset=0参数来完成。

使用DKMS:
nvidia-dkms包使用DKMS(动态内核模块支持)来构建和安装与当前运行的内核匹配的驱动模块。如果DKMS配置失败,可能是因为缺少构建环境或内核头文件。

查看硬件兼容性:
确保您的GPU与尝试安装的驱动版本兼容。

如果问题仍然存在,您可能需要考虑在NVIDIA的官方论坛或Linux发行版的社区论坛上寻求帮助,那里可能有其他用户遇到了类似的问题并找到了解决方案。

要重新装驱动咯

标签:11,存档,drivers,cuda,nvidia,515,dpkg
From: https://www.cnblogs.com/1969955843twq/p/18519142

相关文章

  • 【存档】老弟一号与BY诉讼二审(终审)胜诉动态
    老弟一号的动态以下是动态原文和评论原文:BY事件:支付宝解冻!各位滑稽果大家好,历时一年半的拉扯,之前与某水冷厂商的名誉侵权案件终!于!胜!诉!啦!法院二审判决驳回对方所有诉求,包括索赔500W道歉恢复名誉等由于另外还有两起隐私权案件没有完结(其中一个在二审流程,另一个一审,他二审还......
  • Nvidia超越苹果,成为全球市值最高的公司
    Nvidia(辉达/英伟达)在周五的交易中成功超越苹果,成为全球市值最高的公司。这一成就主要得益于市场对其专门为人工智能(AI)设计的芯片的强劲需求,推动了Nvidia股价创下新高。 市值之争根据LSEG的数据,Nvidia的市值一度达到了3.53万亿美元,略微高于苹果的3.52万亿美元。虽然Nvidia当......
  • Windows 10上编译FFmpeg以支持NVIDIA GPU加速
    目录一、引言二、使用NVDIA加速的准备工作三、编译FFmpeg四、使用FFmpeg五、常见问题及解决方案六、总结一、引言        FFmpeg是一个强大的多媒体处理工具,它支持音频、视频和流媒体的录制、转换和流式传输。NVIDIAGPU提供了强大的计算能力,通过CUDA和NVENC......
  • NVIDIA 发布适用于网络安全的 NIM Blueprint
    德勤使用适用于容器安全的NVIDIANIMAgentBlueprint帮助企业利用开源软件构建安全的AI。文章目录......
  • Ubuntu20.04 更新Nvidia驱动 + 安装CUDA12.1 + cudnn8.9.7
    一、概述    最近客户给了几台GPU服务器,长期放置落灰那种,然后想利用起来,所以上去看看了配置,系统是Ubuntu20.04,相关的驱动版本稍嫌老一些,所以需要更新Nvidia驱动,同时在安装CUDA和CUDNN,查看了显卡型号之后,打算使用onnxruntime进行推理,对比了版本,最后选择了CUDA12.1+CU......
  • centos7离线安装nvidia-docker2(附安装包)
    说实话全网没有找到一个安装包,如果你刚好从我这里找到,给我留言我就能看到发给你。或者你按照我的教程使用yum离线下载也可以在自己的docker中拉取一个centos:7镜像,创建一个容器在容器中安装docker-ce#设置docker镜像源yum-config-manager\--add-repo\https://mirro......
  • 开源一款功能很完善的合同管理系统,支持合同签署,存档,执行,跟踪,变更,续签或终止,报告和分析
    大家好,我是一颗甜苞谷,今天分享一款一个功能很完善的合同管理系统,支持合同签署,存档,执行,跟踪,变更,续签或终止,报告和分析等功能前言在现代企业管理中,合同管理是一项至关重要的任务。传统的手动管理合同不仅耗时耗力,而且容易出现错误和遗漏,导致合同执行效率低下,甚至面临法律风险。......
  • docker以及nvidia-docker的安装、移植以及使用案例
    详细描述docker、nvidia-docker的安装步骤,通过案例描述docker的基本使用命令,包含docker创建、移植、加载等。文档真实案例编写,亲测可用,傻瓜式教程,直接复制即可成功安装。默认已经安装显卡驱动。一、docker的安装#由于apt官方库里的docker版本可能比较旧,所以先卸载可能......
  • CUTLASS: NVIDIA的高性能CUDA线性代数库
    CUTLASS简介CUTLASS(CUDATemplatesforLinearAlgebraSubroutines)是NVIDIA开发的一个开源CUDAC++模板库,用于实现高性能的矩阵乘法(GEMM)和相关计算。它采用了类似cuBLAS和cuDNN的分层分解和数据移动策略,将这些"移动部件"分解为可重用的模块化软件组件,通过C++模板类进行......
  • VMware Private AI Foundation with NVIDIA - 生成式人工智能解决方案
    VMwarePrivateAIFoundationwithNVIDIA-生成式人工智能解决方案通过NVIDIA的加速计算以及VMwareCloudFoundation的虚拟基础架构管理和云管理来运行生成式AI工作负载请访问原文链接:https://sysin.org/blog/vmware-private-ai-foundation-nvidia/查看最新版。原创......