<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>nvidia归档 - Liao&#039;s blog</title>
	<atom:link href="https://www.laobaiblog.top/tag/nvidia/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.laobaiblog.top/tag/nvidia/</link>
	<description>路漫漫其修远兮，吾将上下而求索</description>
	<lastBuildDate>Tue, 01 Apr 2025 04:11:18 +0000</lastBuildDate>
	<language>zh-Hans</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://www.laobaiblog.top/wp-content/uploads/2022/01/cropped-tyuu-32x32.png</url>
	<title>nvidia归档 - Liao&#039;s blog</title>
	<link>https://www.laobaiblog.top/tag/nvidia/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Ubuntu24.04 TLS桌面版安装Nvidia显卡驱动</title>
		<link>https://www.laobaiblog.top/2025/03/31/ubuntu24-04-tls%e6%a1%8c%e9%9d%a2%e7%89%88%e5%ae%89%e8%a3%85nvidia%e6%98%be%e5%8d%a1%e9%a9%b1%e5%8a%a8/</link>
		
		<dc:creator><![CDATA[大白]]></dc:creator>
		<pubDate>Mon, 31 Mar 2025 09:58:58 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[分享]]></category>
		<category><![CDATA[ai]]></category>
		<category><![CDATA[deepseek]]></category>
		<category><![CDATA[gcc]]></category>
		<category><![CDATA[nvidia]]></category>
		<category><![CDATA[ubuntu]]></category>
		<guid isPermaLink="false">https://www.laobaiblog.top/?p=525</guid>

					<description><![CDATA[<p>在经历无数次重装系统以及网上教程参差不齐的踩坑之路之后，终于找到了行之有效的方法。 一、硬件环境 硬 &#8230;</p>
<p><a href="https://www.laobaiblog.top/2025/03/31/ubuntu24-04-tls%e6%a1%8c%e9%9d%a2%e7%89%88%e5%ae%89%e8%a3%85nvidia%e6%98%be%e5%8d%a1%e9%a9%b1%e5%8a%a8/">Ubuntu24.04 TLS桌面版安装Nvidia显卡驱动</a>最先出现在<a href="https://www.laobaiblog.top">Liao&#039;s blog</a>。</p>
]]></description>
										<content:encoded><![CDATA[<blockquote><p>
  在经历无数次重装系统以及网上教程参差不齐的踩坑之路之后，终于找到了行之有效的方法。
</p></blockquote>
<p><a class="wp-editor-md-post-content-link" href="https://www.laobaiblog.top/wp-content/uploads/2025/03/wp_editor_md_5a6cc48511a7c1850a7735fdc8e6ba96.jpg"><img decoding="async" src="https://www.laobaiblog.top/wp-content/uploads/2025/03/wp_editor_md_5a6cc48511a7c1850a7735fdc8e6ba96.jpg" alt="" /></a></p>
<h3>一、硬件环境</h3>
<table>
<thead>
<tr>
<th>硬件</th>
<th>型号</th>
</tr>
</thead>
<tbody>
<tr>
<td>CPU</td>
<td>i7-14700K</td>
</tr>
<tr>
<td>显卡</td>
<td>七彩虹5090D ADOC 32G</td>
</tr>
<tr>
<td>内存</td>
<td>金士顿 128G</td>
</tr>
</tbody>
</table>
<h3>二、软件环境</h3>
<table>
<thead>
<tr>
<th>规格</th>
<th>版本</th>
</tr>
</thead>
<tbody>
<tr>
<td>系统</td>
<td><a class="wp-editor-md-post-content-link" href="https://cn.ubuntu.com/download">Ubuntu24.04 TLS 桌面版</a></td>
</tr>
<tr>
<td><strong>内核版本</strong></td>
<td><strong>6.13.8-061308-generic</strong></td>
</tr>
<tr>
<td><strong>gcc版本</strong></td>
<td><strong>gcc 14.2.0</strong> (Ubuntu 14.2.0-4ubuntu2~24.04)</td>
</tr>
</tbody>
</table>
<h3>2.1内核升级</h3>
<h4>2.1.1  在进行内核升级之前，建议更新系统中的所有软件包，以确保兼容性：</h4>
<pre><code class="language-shell line-numbers">sudo apt update
sudo apt upgrade -y
</code></pre>
<h4>2.1.2 下载内核包 原装6.11内核版本必须升级到6.13版本以上，gcc版本升级到14</h4>
<ul>
<li><strong>下载地址</strong>：</li>
<li><a class="wp-editor-md-post-content-link" href="https://kernel.ubuntu.com/mainline/v6.13.8/amd64/">kernel.ubuntu.com</a>，<strong>需要科学上网</strong>。</p>
</li>
<li>
<p><a class="wp-editor-md-post-content-link" href="https://pan.quark.cn/s/e79b0f21c268">夸克网盘：<strong>rmuW</strong></a></p>
</li>
</ul>
<pre><code class="language-shell line-numbers">1. linux-headers-6.13.8-061308_6.13.8-061308.202503222044_all.deb
2. linux-headers-6.13.8-061308-generic_6.13.8-061308.202503222044_amd64.deb
3. linux-image-unsigned-6.13.8-061308-generic_6.13.8-061308.202503222044_amd64.deb
4. linux-modules-6.13.8-061308-generic_6.13.8-061308.202503222044_amd64.deb
</code></pre>
<h4>2.1.3 安装内核包</h4>
<pre><code class="language-shell line-numbers">sudo dpkg -i linux-headers-6.13.8-061308_6.13.8-061308.202503222044_all.deb
sudo dpkg -i linux-headers-6.13.8-061308-generic_6.13.8-061308.202503222044_amd64.deb
sudo dpkg -i linux-modules-6.13.8-061308-generic_6.13.8-061308.202503222044_amd64.deb
sudo dpkg -i linux-image-unsigned-6.13.8-061308-generic_6.13.8-061308.202503222044_amd64.deb


#安装过程中，如果遇到依赖问题，可以运行以下命令进行修复
sudo apt --fix-broken install

#更新Grub并重启系统,安装内核后，需要更新Grub引导配置，以确保新内核能够被引导。执行以下命令
sudo update-grub
#完成Grub更新后，重启系统以加载新内核
sudo reboot

#验证内核升级
uname -r
#6.13.8-061308-generic
</code></pre>
<h3>2.2 gcc升级14.2</h3>
<h4>2.2.1 检查当前GCC版本</h4>
<pre><code class="language-shell line-numbers">gcc --version
</code></pre>
<h4>2.2.2 使用APT工具自动安装</h4>
<p>Ubuntu的APT包管理工具可以方便地安装GCC，但默认安装的可能是最新版本。要安装特定版本，可以使用以下命令：</p>
<pre><code class="language-shell line-numbers">sudo apt update
sudo apt install gcc-&lt;version&gt; g++-&lt;version&gt;

#例如，要安装GCC 14.2.0版本，可以输入：
sudo apt install gcc-14 g++-14
</code></pre>
<h3>三、安装NVIDIA驱动</h3>
<table>
<thead>
<tr>
<th>Distribution</th>
<th>$distro</th>
<th>$arch</th>
<th>$arch_ext</th>
</tr>
</thead>
<tbody>
<tr>
<td>Ubuntu 24.04 LTS</td>
<td>ubuntu2404</td>
<td>x86_64</td>
<td>amd64</td>
</tr>
</tbody>
</table>
<p>执行安装前准备工作。当前正在运行的内核的内核头文件和开发包可以通过以下方式安装：</p>
<pre><code class="language-shell line-numbers">apt install linux-headers-$(uname -r)
</code></pre>
<h4>3.1 下载 NVIDIA 驱动程序：</h4>
<pre><code class="language-shell line-numbers">wget https://developer.download.nvidia.com/compute/nvidia-driver/<span class="katex math inline">version/local_installers/nvidia-driver-local-repo-</span>distro-<span class="katex math inline">version_</span>arch_ext.deb
#根据系统版本及驱动版，替换相应参数，即真实地址：
https://developer.download.nvidia.com/compute/nvidia-driver/570.124.06/local_installers/nvidia-driver-local-repo-ubuntu2404-570.124.06_1.0-1_amd64.deb
#NVIDIA 驱动程序版本 $version
</code></pre>
<h4>3.2 安装Nvidia驱动：</h4>
<pre><code class="language-shell line-numbers">dpkg -i nvidia-driver-local-repo-ubuntu2404-570.124.06_1.0-1_amd64.deb
apt update
注册临时公有 GPG 密钥：
cp /var/nvidia-driver-local-repo-ubuntu2404-570.124.06/nvidia-driver-*-keyring.gpg /usr/share/keyrings/
</code></pre>
<h4>3.3 Network Repository 安装</h4>
<p>安装新的 cuda-keyring 软件包：</p>
<pre><code class="language-shell line-numbers">wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2404/x86_64/cuda-keyring_1.1-1_all.deb
dpkg -i cuda-keyring_1.1-1_all.deb
apt update
</code></pre>
<h4>3.4 启动驱动程序安装</h4>
<pre><code class="language-shell line-numbers"># Open Kernel Modules
apt install nvidia-open
# Proprietary Kernel Modules
apt install cuda-drivers
# 重启系统
reboot
</code></pre>
<h3>四、验证效果</h3>
<pre><code class="language-shell line-numbers">nvidia-smi
</code></pre>
<p><a class="wp-editor-md-post-content-link" href="https://www.laobaiblog.top/wp-content/uploads/2025/03/wp_editor_md_a7a70e297505c94abc9093406fc8d7a4.jpg"><img decoding="async" src="https://www.laobaiblog.top/wp-content/uploads/2025/03/wp_editor_md_a7a70e297505c94abc9093406fc8d7a4.jpg" alt="" /></a></p>
<p><a class="wp-editor-md-post-content-link" href="https://docs.nvidia.com/datacenter/tesla/driver-installation-guide/index.html">官网参考地址</a>：https://docs.nvidia.com/datacenter/tesla/driver-installation-guide/index.html</p>
<p><a href="https://www.laobaiblog.top/2025/03/31/ubuntu24-04-tls%e6%a1%8c%e9%9d%a2%e7%89%88%e5%ae%89%e8%a3%85nvidia%e6%98%be%e5%8d%a1%e9%a9%b1%e5%8a%a8/">Ubuntu24.04 TLS桌面版安装Nvidia显卡驱动</a>最先出现在<a href="https://www.laobaiblog.top">Liao&#039;s blog</a>。</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
