53 个开发者工具,始终保持最新 — 上游每次发布后数小时内即可通过 apt 获取。 加入 Discord

📅 自 起,使用本 apt 镜像将需要订阅。 查看价格 · 🆓 有一个永久免费的镜像

🦕 在 Ubuntu 上安装最新的 Deno

最新版本:2.9.6 · 更新于 2026-08-27
来源版本
deb.griffo.io2.9.6 ✅
官方 Ubuntu🚫 未收录

安全的 JavaScript/TypeScript 运行时,内置 TypeScript 支持和 Web 标准 API

← 返回首页

什么是 Deno?

Deno is a secure JavaScript and TypeScript runtime built on V8 and Rust, created by Ryan Dahl (the original creator of Node.js). It runs TypeScript natively without a compilation step, has secure-by-default sandboxing, and implements modern web standard APIs. Deno 2 brings full Node.js and npm compatibility.

🚀 Why Latest Versions Matter: Deno is actively developed with major improvements in each release, including enhanced Node.js/npm compatibility, performance improvements, and new web platform API implementations. Latest versions include critical security patches and improved TypeScript support.

🔥 Key Features of Deno

⚡ Blazing Fast

Built on V8 engine with Rust, offering excellent performance for JavaScript and TypeScript workloads.

🔒 Secure by Default

No file, network, or environment access unless explicitly granted. Fine-grained permission system.

📝 TypeScript Native

Run TypeScript files directly without any compilation step or configuration required.

🌐 Web Standard APIs

Implements browser-compatible APIs like fetch, WebSockets, and Streams out of the box.

🔄 Node.js Compatible

Deno 2 supports Node.js APIs and npm packages for seamless migration.

📦 Built-in Toolchain

Includes formatter, linter, test runner, bundler, and documentation generator.

📦 从 deb.griffo.io 安装

运行命令

步骤 1:添加仓库

sudo install -d -m 0755 /etc/apt/keyrings
curl -fsSL https://deb.griffo.io/EA0F721D231FDD3A0A17B9AC7808B4DD62C41256.asc | sudo gpg --dearmor --yes -o /etc/apt/keyrings/deb.griffo.io.gpg
echo "deb [signed-by=/etc/apt/keyrings/deb.griffo.io.gpg] https://deb.griffo.io/apt $(lsb_release -sc 2>/dev/null) main" | sudo tee /etc/apt/sources.list.d/deb.griffo.io.list > /dev/null
sudo apt update
install -d -m 0755 /etc/apt/keyrings
curl -fsSL https://deb.griffo.io/EA0F721D231FDD3A0A17B9AC7808B4DD62C41256.asc | gpg --dearmor --yes -o /etc/apt/keyrings/deb.griffo.io.gpg
echo "deb [signed-by=/etc/apt/keyrings/deb.griffo.io.gpg] https://deb.griffo.io/apt $(lsb_release -sc 2>/dev/null) main" | tee /etc/apt/sources.list.d/deb.griffo.io.list > /dev/null
apt update

🆓 有一个永久免费的镜像。 deb-free.griffo.io 永久免费提供软件包 — 无需账号、无需订阅,最多落后上游 2 个月,安全修复立即发布。目前收录 cliamp、Ghostty、lazydocker、Oh My Posh 和 Zed;Deno 不在其中,因此今天只能通过上面的仓库安装 — 提出请求即可将其加入。

免费镜像的工作方式 →

📋 可用的 Deno 软件包

deb.griffo.io provides two different Deno packages to suit different needs:

🦕 deno (Recommended)

Full Deno runtime with all developer tooling including the REPL, LSP, formatter, linter, test runner, and bundler. This is the recommended choice for most developers.

sudo apt install deno
apt install deno
⚡ denort

Lightweight Deno runtime without the developer tooling. Ideal for production deployments where you only need to run compiled Deno programs with minimal overhead and a smaller binary footprint.

sudo apt install denort
apt install denort

🔄 Managing Both Packages

You can install both deno and denort simultaneously:

Install both:

sudo apt install deno denort
apt install deno denort

Check deno version:

deno --version

Check denort:

denort --version

步骤 2:安装 Deno

sudo apt install deno
apt install deno

步骤 3:验证安装

deno --version
deno --help

🚀 Quick Start Examples

Run TypeScript directly:

echo 'console.log("Hello from Deno!")' > app.ts
deno run app.ts

Run with permissions:

deno run --allow-net --allow-read app.ts

Create a new project:

deno init my-deno-app
cd my-deno-app
deno run main.ts

Run with npm packages:

import { express } from "npm:express@4";
deno run --allow-net server.ts

Run tests:

deno test

Format and lint:

deno fmt
deno lint

📦 Package Build Repository

Debian 软件包在此 GitHub 仓库中自动构建和维护:

🔗 Related Packages

Enhance your development workflow with these complementary tools from deb.griffo.io:

📚 Additional Resources

📦 本仓库最近发布

❓ 常见问题

Deno 在官方 Ubuntu 软件源中吗?

不在, 官方 Ubuntu 源没有打包 Deno。本仓库目前是唯一的 apt 来源,提供 Deno 2.9.6。

如何在 Ubuntu 上安装最新版 Deno?

按上方说明一次性添加 deb.griffo.io 仓库,然后运行:sudo apt install deno。之后通过常规的 sudo apt upgrade 获取新版本。

软件包是否有签名?如何构建?

每个软件包都使用仓库的 GPG 密钥(EA0F721D231FDD3A0A17B9AC7808B4DD62C41256)签名,并基于上游发布在公开的 GitHub 仓库中构建,任何人都可以审查。

支持哪些 Ubuntu 版本?

Ubuntu 22.04 Jammy、24.04 Noble、25.10 Questing 和 26.04 Resolute。