> For the complete documentation index, see [llms.txt](https://book.bsdcn.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://book.bsdcn.org/zfs/an-zhuang-zhi-yin/ubuntu/index.md).

# 在 Ubuntu 中启用 ZFS 支持

## 安装

> **注意**
>
> 如果你想将 ZFS 用作根文件系统，请参阅下文。

在 Ubuntu 上，在默认的 Linux 内核包中已经内置了对 ZFS 的支持。要安装 ZFS 工具，请首先确保在 `/etc/apt/sources.list` 中启用了 `universe`：

```ini
deb http://archive.ubuntu.com/ubuntu <Ubuntu 版本代号> main universe
```

然后安装 `zfsutils-linux`：

```sh
apt update
apt install zfsutils-linux
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://book.bsdcn.org/zfs/an-zhuang-zhi-yin/ubuntu/index.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
