> ## Documentation Index
> Fetch the complete documentation index at: https://dragonwingdocs.qualcomm.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 升级 Ubuntu 镜像

本指南引导您通过一个精简的流程，使用预构建软件包更新系统，同时保留现有环境。更新从运行 Ubuntu、Windows® 或 macOS® 的主机计算机上执行，以确保您的设备获得性能、安全性和兼容性方面的最新改进。

<img src="https://mintcdn.com/qualcomm-prod/kAKe9NmJg3DGZBpB/Ubuntu/images/update-software/upgrade-ubuntu.png?fit=max&auto=format&n=kAKe9NmJg3DGZBpB&q=85&s=1cc85c0619f8e8e2b5ee91ba2dc92969" alt="" width="479" height="250" data-path="Ubuntu/images/update-software/upgrade-ubuntu.png" />

**前提条件：** 开始之前 - 完成[**🔗 设置设备**](../set-up-the-device)中的说明。

## 登录与 Wi-Fi 连接

**a.** 使用键盘和鼠标在连接的显示器上登录并修改密码（如果尚未修改），或者如果通过串口连接，则通过 UART 控制台操作。

* 使用 **ubuntu** 作为用户名和密码登录 Dragonwing IQ-8275 EVK Ubuntu UART 控制台。然后，您可以在命令终端中重置密码。
* 成功登录后，您将看到以下串口控制台提示。

<img src="https://mintcdn.com/qualcomm-prod/kAKe9NmJg3DGZBpB/Ubuntu/images/update-software/iq9075-serial-console-prompt.png?fit=max&auto=format&n=kAKe9NmJg3DGZBpB&q=85&s=54649c2f4e77336d6dee2e4d7e8b9661" alt="" width="649" height="390" data-path="Ubuntu/images/update-software/iq9075-serial-console-prompt.png" />

**b.** 按照以下步骤设置 Wi-Fi 连接：[🔗 **Wi-Fi 设置指南**](../set-up-the-device#wi-fi)

## SSH 连接

SSH 在主机计算机和 Dragonwing IQ-8275 设备之间提供跨网络的安全终端访问。

在连接 SSH 之前，请确保您的设备已通过 Ethernet 或 Wi-Fi 建立网络连接。

<Note>
  **注意：** 确保远程主机计算机与设备连接到同一个 Wi-Fi 接入点。
</Note>

**a.** 要连接 SSH，请先根据网络连接类型在主机计算机的 UART 控制台上运行相应命令，查找 Dragonwing IQ-8275 的 IP 地址：

对于 Ethernet：

```shell theme={null}
ip addr show end0
```

对于 Wi-Fi：

```shell theme={null}
ip addr show wlp1s0
```

该命令显示 Dragonwing IQ-8275 设备的 IP 地址。

**b.** 在主机计算机上运行以下命令建立到设备的 SSH 连接：

```shell theme={null}
ssh ubuntu@ip-address
```

**参数详情**\
ip-address 是 eth0 或 wlan0 接口的 IP 地址。

**示例**\
要连接到 IP 地址为 192.168.0.222 的设备，运行以下命令：

```shell theme={null}
ssh ubuntu@192.168.0.222
```

**c.** 输入 *ubuntu* 用户的密码进行登录。

## 验证软件版本

在设备 shell 中运行以下命令验证操作系统版本：

```shell theme={null}
cat /etc/os-release 
```

**输出：**

```json theme={null}
PRETTY_NAME="Ubuntu 24.04.4 LTS"
NAME="Ubuntu"
VERSION_ID="24.04"
VERSION="24.04.4 LTS (Noble Numbat)"
VERSION_CODENAME=noble
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=noble
LOGO=ubuntu-logo
```

运行以下命令检查 Linux 内核版本：

```shell theme={null}
uname -a
```

**输出：**

```json theme={null}
Linux ubuntu 6.8.0-1064-qcom #65-Ubuntu SMP PREEMPT_DYNAMIC Mon Feb  9 09:59:39 UTC 2026 aarch64 aarch64 aarch64 GNU/Linux  
```

## 升级预构建软件包

以下命令会将设备上的预构建软件包升级到最新版本。

```shell theme={null}
sudo apt update
sudo apt upgrade -y
```

<Note>
  **注意：**\
  如果您当前的软件版本不是 Ubuntu（例如运行 Qualcomm Linux 的设备），请先按照[**🔗使用 Launcher 烧写镜像**](./flash-using-qualcomm-launcher)指南烧写 Ubuntu。
</Note>

<Warning>
  **重要：** 附加驱动和软件包
</Warning>

**下一步：** 如果尚未安装所需的软件包，请参阅[**🔗安装所需的软件包**](../Install_required_software_packages)部分，并运行提供的 Install PPA Packages 脚本。
