# Raspberry Pi OS

**Raspberry Pi OS**（原名 Raspbian）是[树莓派](https://www.edgepedia.org/zh/raspberry-pi)（Raspberry Pi）单板计算机的官方支持操作系统，是一个针对树莓派硬件优化的、基于 Debian 的免费 Linux 发行版。<sup>[1](https://www.raspberrypi.com/software/operating-systems/)</sup> 它支持超过 35,000 个 Debian 软件包，以 64 位和 32 位版本分发，并遵循 Debian 发布周期的错开版本节奏，大约每两年发布一次大版本。<sup>[2](https://www.raspberrypi.com/documentation/usage/raspberry-pi-os/raspberry-pi.html)</sup>

| 关键事实 | 详情 |
|---|---|
| 是什么 | 针对树莓派硬件优化的、基于 Debian 的免费操作系统；所有树莓派计算机的官方支持操作系统<sup>[1](https://www.raspberrypi.com/software/operating-systems/)</sup><sup> • </sup><sup>[2](https://www.raspberrypi.com/documentation/usage/raspberry-pi-os/raspberry-pi.html)</sup> |
| 原名 | Raspbian，由迈克·汤普森（Mike Thompson）和彼得·格林（Peter Green）于 2012 年 3 月启动的 Debian ARMv6 硬浮点移植版；2020 年 5 月更名为 Raspberry Pi OS<sup>[3](https://www.raspberrypi.com/news/happy-birthday-to-us-3/)</sup><sup> • </sup><sup>[4](https://www.raspberrypi.com/news/latest-raspberry-pi-os-update-may-2020/)</sup> |
| 当前基础 | Debian 13（trixie），内核 6.18；镜像发布于 2025 年 10 月 2 日<sup>[1](https://www.raspberrypi.com/software/operating-systems/)</sup> |
| 版本 | 带桌面版、带桌面及推荐软件版（Full）、Lite 版（无桌面）；64 位和 32 位，另有基于 Debian Bookworm 的 Legacy 镜像<sup>[2](https://www.raspberrypi.com/documentation/usage/raspberry-pi-os/raspberry-pi.html)</sup><sup> • </sup><sup>[1](https://www.raspberrypi.com/software/operating-systems/)</sup> |
| 显示栈 | 自 2024 年 10 月发布起，所有型号默认使用 Wayland 搭配 labwc 合成器<sup>[5](https://www.raspberrypi.com/news/a-new-release-of-raspberry-pi-os/)</sup> |
| 镜像大小 | 64 位 Lite：下载 525 MB，存储占用 2,936 MB；64 位 Full：下载 1,969 MB，存储占用 9,504 MB<sup>[1](https://www.raspberrypi.com/software/operating-systems/)</sup> |
| 软件包管理 | 高级软件包工具（APT）；`apt` 更新同时保持 Linux 内核和固件为最新版本<sup>[6](https://www.raspberrypi.com/documentation//usage/terminal/)</sup> |

## 作为 Raspbian 的起源

该操作系统最初是一个独立项目。2012 年 3 月，Raspbian——一个为 ARMv6 架构构建的 Debian 硬浮点移植版，如今作为 Raspberry Pi OS 的基础——由[迈克·汤普森](https://www.edgepedia.org/zh/mike-thompson)和彼得·格林启动。<sup>[3](https://www.raspberrypi.com/news/happy-birthday-to-us-3/)</sup> Raspbian 是 Debian armhf 的非官方移植版，编译设置经过调整以生成优化的“硬浮点”代码，可在树莓派的 ARMv6 处理器上运行，而 Debian 的标准 armhf 移植版（需要 ARMv7）并不支持该处理器。<sup>[7](https://www.raspbian.org/RaspbianAbout)</sup>

Raspberry Pi OS 这一名称随 2020 年 5 月的更新而来，该更新将其描述为“Raspbian 的新名称”。<sup>[4](https://www.raspberrypi.com/news/latest-raspberry-pi-os-update-may-2020/)</sup> 此次更名恰逢 Debian 搭配树莓派桌面的 64 位 ARM 测试版发布，与 8GB [树莓派 4](https://www.edgepedia.org/zh/raspberry-pi-4) 一同推出。<sup>[4](https://www.raspberrypi.com/news/latest-raspberry-pi-os-update-may-2020/)</sup>

## 32 位与 64 位

在其历史的大部分时间里，该操作系统构建于 32 位 Raspbian 平台之上，以最大限度地提高设备间的兼容性。ARMv8-A 架构（包含 64 位 AArch64 状态）首次出现在树莓派产品线中是在 2016 年的[树莓派 3](https://www.edgepedia.org/zh/raspberry-pi-3) 上，但官方版本一直保持 32 位，直到 2022 年 2 月 2 日 64 位版本结束测试。<sup>[8](https://www.raspberrypi.com/news/raspberry-pi-os-64-bit/)</sup>

两条产品线的上游不同。32 位操作系统的上游是 Raspbian，即为 ARM6 重建的、带硬浮点扩展的 Debian；64 位操作系统的上游则是 Debian 本身，上面叠加了树莓派自行添加的功能，如硬件加速。<sup>[8](https://www.raspberrypi.com/news/raspberry-pi-os-64-bit/)</sup> 转向 64 位的原因包括：与仅支持 arm64 的闭源应用的兼容性、A64 指令集的性能优势，以及 32 位指针的 4 GB 地址限制——在 8GB 树莓派 4 上，32 位进程最多只能访问 3 GB，因为虚拟地址空间的顶部 1 GB 保留给内核。<sup>[8](https://www.raspberrypi.com/news/raspberry-pi-os-64-bit/)</sup>

32 位版本仍然可用，并兼容所有树莓派型号，包括最初的 ARMv6 设备。<sup>[1](https://www.raspberrypi.com/software/operating-systems/)</sup> 然而，从内核版本 6.18 起，BCM2711 设备（树莓派 4、400、CM4 和 CM4S）不再支持 32 位内核构建，转而使用 64 位的 `kernel8` 构建。<sup>[9](https://www.raspberrypi.com/documentation/computers/linux_kernel.html)</sup>

## Debian 发行版与 Wayland 过渡

由于 Raspberry Pi OS 衍生自 Debian，每个大版本都对应一个以《[玩具总动员](https://www.edgepedia.org/zh/toy-story)》角色命名的 Debian 发行版：Buster（2019 年）、Bullseye（2021 年 11 月）、Bookworm（2023 年 10 月）和 Trixie（2025 年 10 月）。<sup>[10](https://www.raspberrypi.com/news/raspberry-pi-os-debian-bullseye/)</sup><sup> • </sup><sup>[11](https://www.raspberrypi.com/news/trixie-the-new-version-of-raspberry-pi-os/?pubDate=20251008)</sup>

2023 年 10 月的 Bookworm 时代版本与[树莓派 5](https://www.edgepedia.org/zh/raspberry-pi-5) 一同发布，将树莓派 4 和 5 从 X11 迁移到 Wayfire Wayland 合成器，而性能较低的型号继续运行 X。<sup>[12](https://www.raspberrypi.com/news/introducing-raspberry-pi-5/)</sup> 2024 年 10 月，桌面切换到 labwc——一个构建于 wlroots 库之上的 Wayland 合成器，树莓派发现它比 Wayfire 更适合其图形硬件；自该版本起，树莓派桌面在所有型号上默认运行 Wayland，Wayfire 不再获得更新支持。<sup>[5](https://www.raspberrypi.com/news/a-new-release-of-raspberry-pi-os/)</sup> labwc 包含 Xwayland——一个虚拟 X 实现，供不兼容 Wayland 的应用程序使用。<sup>[5](https://www.raspberrypi.com/news/a-new-release-of-raspberry-pi-os/)</sup>

## Trixie 版本

Raspberry Pi OS 的 Trixie 版本于 2025 年 10 月 2 日发布，基于 Debian 13。<sup>[11](https://www.raspberrypi.com/news/trixie-the-new-version-of-raspberry-pi-os/?pubDate=20251008)</sup> 最大的变化来自 Debian 本身：系统时间值从 32 位存储改为 64 位存储。自 1970 年 1 月 1 日起的 32 位秒计数将在 2038 年 1 月 19 日溢出；使用 64 位后，日历直到约 292,277,026,596 年才会溢出，Trixie 的很大一部分被重建以使用新的时间格式。<sup>[11](https://www.raspberrypi.com/news/trixie-the-new-version-of-raspberry-pi-os/?pubDate=20251008)</sup>

树莓派自身的改动包括：焕新的桌面主题，配以一套新图标、新壁纸，以及用 Nunito Sans Light 字体替换使用了约十年的 Piboto；默认壁纸展示的是莱索托（Lesotho）[德拉肯斯堡](https://www.edgepedia.org/zh/drakensberg)山脉（Drakensberg）上的日出。<sup>[11](https://www.raspberrypi.com/news/trixie-the-new-version-of-raspberry-pi-os/?pubDate=20251008)</sup> 五个独立的偏好设置应用（树莓派配置、外观设置、鼠标和键盘设置、屏幕配置和打印机）被整合为一个控制中心应用，它采用轻量级核心，在运行时从插件库加载功能，因此第三方可以添加自己的设置页面。<sup>[11](https://www.raspberrypi.com/news/trixie-the-new-version-of-raspberry-pi-os/?pubDate=20251008)</sup>

Trixie 还将桌面重新组织为元包：rpd-theme 提供图标、字体和 GTK 主题；rpd-preferences 安装控制中心；rpd-applications 添加 Geany 编辑器、[Thonny](https://www.edgepedia.org/zh/thonny) Python 环境和 Firefox、[Chromium](https://www.edgepedia.org/zh/chromium-web-browser) 浏览器；rpd-utilities 安装 Raspberry Pi Connect、SD 卡复制器、书架及其他工具；rpd-developer、rpd-graphics、rpd-wayland-extras 和 rpd-x-extras 则添加开发者库、FFmpeg 和 GStreamer 等命令行图形工具，以及 Wayland 或 X 专用工具。用 `sudo apt autoremove` 移除某个元包会一并卸载相应软件，这使得自定义镜像更易于管理。<sup>[11](https://www.raspberrypi.com/news/trixie-the-new-version-of-raspberry-pi-os/?pubDate=20251008)</sup>

发布时，树莓派 AI HAT+ 和 AI Kit、TV HAT 以及 [Wolfram Mathematica](https://www.edgepedia.org/zh/wolfram-mathematica) 的软件包尚未提供 Trixie 版本；AI HAT+ 和 AI Kit 的 Hailo 支持于 2025 年 12 月跟进。<sup>[11](https://www.raspberrypi.com/news/trixie-the-new-version-of-raspberry-pi-os/?pubDate=20251008)</sup><sup> • </sup><sup>[13](https://www.raspberrypi.com/news/software-updates-for-raspberry-pi-ai-products/)</sup>

## 安全

Raspberry Pi OS 6.2 版于 2026 年 4 月 14 日发布，作为 Trixie 的第二次更新，在新镜像上默认禁用了免密码 `sudo`。自该版本起，`sudo` 命令会提示输入当前用户的密码，成功输入后有五分钟的宽限期；可通过控制中心的管理员密码开关恢复免密码模式。此更改不影响现有安装的更新，除非用户主动禁用，否则免密码 `sudo` 仍然启用。<sup>[14](https://www.raspberrypi.com/news/a-security-update-for-raspberry-pi-os/)</sup>

## 版本、安装与升级

Raspberry Pi OS 以三种版本、64 位和 32 位两种形式提供：带桌面版（树莓派 Imager 中的默认选项，包含 Chromium、Firefox、VLC 和 Thonny）、带桌面及推荐软件版（Full，额外添加 [LibreOffice](https://www.edgepedia.org/zh/libreoffice)、KiCad、Scratch 等）和 Lite 版（无图形桌面，推荐用于无头服务器以及树莓派 1、2 和 Zero 计算机）。<sup>[2](https://www.raspberrypi.com/documentation/usage/raspberry-pi-os/raspberry-pi.html)</sup> 还为需要旧平台的用户提供基于 Debian Bookworm 并带安全更新的 Legacy 镜像。<sup>[1](https://www.raspberrypi.com/software/operating-systems/)</sup>

推荐的安装工具是树莓派 Imager，它下载镜像并写入 microSD 卡或其他存储设备，可在首次启动前预配置主机名、区域设置、用户名和密码、Wi-Fi 凭据以及远程访问；如果跳过自定义，首次启动时会运行配置向导。<sup>[15](https://www.raspberrypi.com/documentation/installation/installing-images/raspberry-pi.html)</sup> 现有安装通过 `sudo apt update` 和 `sudo apt full-upgrade` 进行更新。<sup>[16](https://www.raspberrypi.com/news/a-new-raspberry-pi-os-release/)</sup>

大版本升级则是另一回事。树莓派不建议也不支持将运行中的 Bookworm 镜像就地升级到 Trixie；推荐方法是刷写新镜像的干净副本。在通过以太网连接的树莓派 5、500 或 500+ 上，也可以通过引导加载程序中嵌入的树莓派 Imager 版本刷写 Trixie 镜像，方法是在重新接通电源时按住 shift 键。<sup>[11](https://www.raspberrypi.com/news/trixie-the-new-version-of-raspberry-pi-os/?pubDate=20251008)</sup>

## 适用于 PC 和 Mac 的树莓派桌面

同一桌面也面向普通 x86 计算机分发。适用于 PC 和 Mac 的树莓派桌面于 2026 年 10 月 6 日发布，是一个可免安装运行的 Debian Trixie 镜像，可从 USB 闪存盘启动、以持久化方式运行，或通过 Calamares 安装程序安装到硬盘或固态硬盘；它包含 Raspberry Pi Connect 客户端，因此 PC 或 Mac 可以与树莓派一起从 Connect 网站进行控制。<sup>[17](https://www.raspberrypi.com/news/raspberry-pi-desktop-now-available-for-pc-and-mac/)</sup> 该桌面本身始于十多年前，最初是标准 LXDE 桌面的轻度定制版本，此后已演进为基于 Wayland 和 labwc 的底层架构。<sup>[18](https://www.raspberrypi.com/news/an-updated-look-for-the-raspberry-pi-desktop/)</sup>

## 旧版发行

2021 年 12 月，树莓派在九年只支持单一发行版之后，推出了 Raspberry Pi OS（Legacy），由此首次增设了一条并行的发行维护分支。最初的 Legacy 版本基于 Debian Buster 旧稳定版，[Linux 内核](https://www.edgepedia.org/zh/linux-kernel)分支固定在 5.10.y 仅接收安全补丁，固件分支仅接收安全和硬件支持补丁，硬件加速的 Chromium 被采用软件渲染的上游浏览器取代。它面向需要稳定、不变系统的教育和工业用户。<sup>[19](https://www.raspberrypi.com/news/new-old-functionality-with-raspberry-pi-os-legacy/)</sup> 目前提供的 Legacy 镜像基于 Debian Bookworm，内核为 6.12。<sup>[1](https://www.raspberrypi.com/software/operating-systems/)</sup>

## References

1. [Raspberry Pi OS downloads, Raspberry Pi](https://www.raspberrypi.com/software/operating-systems/)
2. [Raspberry Pi OS, Raspberry Pi Documentation](https://www.raspberrypi.com/documentation/usage/raspberry-pi-os/raspberry-pi.html)
3. [Happy Birthday to us, Raspberry Pi](https://www.raspberrypi.com/news/happy-birthday-to-us-3/)
4. [Latest Raspberry Pi OS update – May 2020, Raspberry Pi](https://www.raspberrypi.com/news/latest-raspberry-pi-os-update-may-2020/)
5. [A new release of Raspberry Pi OS, Raspberry Pi](https://www.raspberrypi.com/news/a-new-release-of-raspberry-pi-os/)
6. [Raspberry Pi OS (terminal usage), Raspberry Pi Documentation](https://www.raspberrypi.com/documentation//usage/terminal/)
7. [RaspbianAbout, raspbian.org](https://www.raspbian.org/RaspbianAbout)
8. [Raspberry Pi OS (64-bit), Raspberry Pi](https://www.raspberrypi.com/news/raspberry-pi-os-64-bit/)
9. [The Linux kernel, Raspberry Pi Documentation](https://www.raspberrypi.com/documentation/computers/linux_kernel.html)
10. [Bullseye – the new version of Raspberry Pi OS, Raspberry Pi](https://www.raspberrypi.com/news/raspberry-pi-os-debian-bullseye/)
11. [Trixie — the new version of Raspberry Pi OS, Raspberry Pi](https://www.raspberrypi.com/news/trixie-the-new-version-of-raspberry-pi-os/?pubDate=20251008)
12. [Introducing: Raspberry Pi 5!, Raspberry Pi](https://www.raspberrypi.com/news/introducing-raspberry-pi-5/)
13. [Software updates for Raspberry Pi AI products, Raspberry Pi](https://www.raspberrypi.com/news/software-updates-for-raspberry-pi-ai-products/)
14. [A security update for Raspberry Pi OS, Raspberry Pi](https://www.raspberrypi.com/news/a-security-update-for-raspberry-pi-os/)
15. [Install an operating system, Raspberry Pi Documentation](https://www.raspberrypi.com/documentation/installation/installing-images/raspberry-pi.html)
16. [A new Raspberry Pi OS release, Raspberry Pi](https://www.raspberrypi.com/news/a-new-raspberry-pi-os-release/)
17. [Raspberry Pi Desktop now available for PC and Mac, Raspberry Pi](https://www.raspberrypi.com/news/raspberry-pi-desktop-now-available-for-pc-and-mac/)
18. [An updated look for the Raspberry Pi Desktop, Raspberry Pi](https://www.raspberrypi.com/news/an-updated-look-for-the-raspberry-pi-desktop/)
19. ["New" old functionality with Raspberry Pi OS (Legacy), Raspberry Pi](https://www.raspberrypi.com/news/new-old-functionality-with-raspberry-pi-os-legacy/)

---
*Initially written Sep 17, 2026 · Reviewed: Sep 30, 2026; Oct 15, 2026 · Edited: Sep 30, 2026; Oct 15, 2026 · Last review: Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 计算机硬件 › Embedded & soft processors › Embedded systems › Embedded operating systems and software platforms

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/raspberry-pi-os

English original: https://www.edgepedia.org/raspberry-pi-os
