Canonical has published guidance on packaging ROS 2 Lyrical Luth applications as snaps on Ubuntu Core 26, pairing the robotics middleware release with Ubuntu 26.04 LTS as a foundation aimed at long-lived robot fleets — including an expected path to up to 15 years of security maintenance for deployments built on the combination.

A lifecycle story, not a feature story

The guidance, set out in an official Ubuntu blog post, is framed around lifecycle arithmetic rather than headline functionality. Recent ROS 2 releases have followed a yearly cadence, and for teams maintaining hardware in the field that pattern means a repeating cycle of middleware upgrades, regression testing and revalidation. Packaging Lyrical applications as snaps on Ubuntu Core 26 is Canonical's proposed answer: convert that churn into a multi-year upgrade path underpinned by transactional updates.

Canonical frames the security maintenance window as "up to 15 years," a figure that should be read as an upper bound contingent on subscription tier and the specific terms attached to it. Organisations sizing a fleet architecture should confirm the exact support terms for their chosen tier before committing, rather than treating the headline number as a blanket guarantee.

What actually ships in this release

Alongside the lifecycle framing, the post carries a set of concrete tooling updates that matter to anyone doing snap-based robotics builds:

  • Snapcraft 9.1 is the current release line for building these snaps.
  • snap-delta improves the update format so that base snap updates shrink dramatically — Canonical cites a reduction from roughly 16MB to 1.5MB, a meaningful saving on devices with narrow connectivity windows.
  • Chisel trims image size by around 7%, which lands directly on constrained edge hardware.
  • Livepatch is now available on arm64, extending live kernel patching to the ARM boards common in robotics.
  • The Python runtime has been dropped from the base; Snapcraft handles this by staging the interpreter alongside ROS 2 applications that require it, so it is a build-time consideration rather than a manual declaration.
  • rmw_zenoh_cpp is offered as an RMW (middleware implementation) option for Lyrical deployments.

Bundled or content-shared: the decision that shapes the fleet

The heart of Canonical's guidance concerns a choice that is deceptively technical but operationally significant: whether each robot's snap should carry its own bundled ROS 2 runtime, or share a common runtime through content-sharing snaps.

Where teams do get explicit direction from Canonical is on choosing among the content-sharing runtime variants themselves — the advice is simply to "choose the smallest variant that satisfies your dependency tree." Beyond that, the bundled-versus-shared trade-off is left to judgement. Our reading of it:

Bundled runtimes give every application its own copy of the middleware. The benefits are isolation and independent upgrade cadences — one node can move forward without dragging the rest of the fleet along. The costs are concrete: larger images consuming disk space on constrained edge hardware, and repeated security rebuilds whenever the bundled middleware components need patching.

Content-sharing runtimes invert the trade-off. A single shared runtime means security fixes only need to be applied in one place and propagate across every dependent snap, and images stay smaller. The price is version coupling: everything sharing that runtime moves in lockstep, and compatibility testing has to be coordinated across all participating components.

As a general guide, a single robot running many nodes tends to favour content sharing, while a heterogeneous fleet with staggered update cadences has more reason to bundle. The decision is also expensive to unwind once units are deployed in numbers — it shapes the fleet's patching and maintenance posture for the life of the hardware, so it deserves attention at architecture time rather than after rollout.

Why transactional updates carry weight at the edge

In practice, the stakes of Ubuntu Core's transactional update model go further than a bullet point suggests. In a warehouse or factory setting, an update that fails mid-flight is not an inconvenience; it is downtime that ripples through throughput targets and may require expensive on-site service visits. The same economics apply to building-automation controllers and industrial gateways: long-lived hardware, narrow connectivity windows and costly physical servicing all favour an update mechanism that fails safe. Under those conditions, transactional updates stop being a convenience and become an operational requirement.

That broader framing is worth noting. While the guidance targets ROS 2 robotics, snap packaging of long-lived edge workloads is equally relevant to IoT gateways and industrial PCs running on similar hardware-refresh cycles — anywhere the abstraction boundary between application and runtime determines who patches what, and how often. In extending multi-year LTS maintenance into a fast-moving middleware domain, Canonical is effectively testing a pattern that other long-cycle open-source stacks may follow as they land on Core.

Practical caveats

The guidance assumes familiarity with ros2, colcon and snapcraft tooling; teams new to snap-based robotics builds should budget ramp-up time alongside the architectural work. The drop of Python from the base image is the kind of change that will surface at build time rather than design time, so an early smoke test is worthwhile. And because support durations vary by subscription, verifying the precise maintenance commitments attached to a chosen tier remains a prerequisite before any fleet-wide commitment.

Canonical's full packaging walkthrough is available via the Ubuntu blog.


Canonical 已發布指引,說明如何在 Ubuntu Core 26 上將 ROS 2 Lyrical Luth 應用程式封裝為 snap,把這款機械人中介軟件版本與 Ubuntu 26.04 LTS 結合為基礎,目標是支援長遠運作的機械人車隊——包括預計可獲得長達 15 年的安全維護,適用於建基於此組合的部署。

是生命週期的故事,而非功能的故事

這份指引載於官方 Ubuntu 部落格文章,框架圍繞生命週期的算術,而非標題式的新功能。近期 ROS 2 版本一直以每年一個版本的節奏發布,對於在現場維護硬件的團隊而言,這種模式意味著不斷重複中介軟件升級、回歸測試及重新驗證的循環。將 Lyrical 應用程式封裝為 Ubuntu Core 26 上的 snap,正是 Canonical 提出的對策:把每年的動盪轉化為以年計的升級路徑,由交易式更新作支撐。

Canonical 將安全維護期定位為「長達 15 年」,這個數字應理解為上限,實際取決於訂閱層級及其附帶的具體條款。規劃車隊架構的機構在作出承諾前,應先確認所選層級的準確支援條款,而不應把這個標題數字視為全面保證。

本版本實際包含什麼

除了生命週期的框架,文章還列出一組具體的工具更新,對任何進行基於 snap 的機械人建置的人都相當重要:

  • Snapcraft 9.1 是目前建置這些 snap 的發布版本。
  • snap-delta 改進了更新格式,令 base snap 的更新大幅縮減——Canonical 引述的數據是由約 16MB 減至 1.5MB,對連接窗口狹窄的設備而言是可觀的節省。
  • Chisel 將映像檔縮小約 7%,直接惠及資源受限的邊緣硬件。
  • Livepatch 現已在 arm64 上提供,將即時核心修補程式延伸至機械人技術中常用的 ARM 板卡。
  • Python runtime 已從 base 中移除;Snapcraft 會自動將直譯器一併 stage(置入)到需要它的 ROS 2 應用程式中,從而處理這一點——因此這只是建置階段的考量,而非需要手動聲明的事項。
  • rmw_zenoh_cpp 作為 RMW(中介軟件實現)選項,供 Lyrical 部署選用。

捆綁還是內容共享:塑造整個車隊的決策

Canonical 指引的核心,涉及一個表面上技術性十足、實際上卻影響營運的選擇:每部機械人的 snap 應各自攜帶捆綁的 ROS 2 runtime,還是透過內容共享(content-sharing)snap 共用同一 runtime。

在內容共享 runtime 的各個變體之間如何取捨,Canonical 給出了明確指示——建議只是「選擇能夠滿足你依賴樹的最小變體」。除此之外,捆綁與共享之間的取捨則留待判斷。我們的解讀如下:

捆綁式 runtime 讓每個應用程式各自擁有一份中介軟件。好處是隔離及獨立的升級節奏——單一節點可以先行升級,而無需拖動整個車隊。代價則很具體:映像檔更大,佔用受限邊緣硬件的磁碟空間;捆綁的中介軟件組件每次需要套用安全修補程式,都要重複進行安全重建。

內容共享式 runtime 則倒轉了這個取捨。單一共用 runtime 意味安全修補程式只需套用於一處,便可傳播至所有依賴的 snap,映像檔也維持較小。代價是版本耦合:所有共用該 runtime 的組件都要同步推進,相容性測試亦須在所有參與組件之間協調進行。

作為一般指引,單部機械人運行多個節點的場合傾向於採用內容共享;而採用錯開更新節奏的異構車隊,則較有理由選擇捆綁。而且一旦大量設備部署後,要推翻這個決定代價不菲——它會決定整個車隊在硬件整個壽命期間的修補及維護方針,因此值得在架構規劃階段就予以關注,而非推出之後才處理。

交易式更新在邊緣端為何舉足輕重

實際上,Ubuntu Core 交易式更新模式所牽涉的風險,遠不止一個重點條目所能概括。在倉庫或工廠環境中,一次中途失敗的更新不只帶來不便,更會造成停機,波及產能目標,還可能需要昂貴的上門維修。同樣的經濟邏輯適用於樓宇自動化控制器及工業閘道器:長壽命硬件、短暫的連接窗口以及高昂的實體維修成本,全都傾向要求一個能安全失敗的更新機制。在這些條件下,交易式更新已不再是便利功能,而是營運上的必要條件。

這個更宏觀的框架值得一提。雖然指引針對的是 ROS 2 機械人技術,但長壽命邊緣工作負載的 snap 封裝同樣適用於 IoT 閘道器及工業電腦——它們運行在相似的硬件更新週期上,凡是應用程式與 runtime 之間的抽象邊界決定了誰負責套用修補程式、以及多久套用一次的地方,同樣相關。Canonical 將多年 LTS 維護延伸至快速迭代的中介軟件領域,實際上正在測試一種模式,其他長週期的開源技術堆疊在登陸 Core 之後,可能會紛紛仿效。

實務注意事項

該指引假設讀者熟悉 ros2、colcon 及 snapcraft 工具;初次接觸基於 snap 的機械人建置的團隊,應在架構工作之外預留學習上手的時間。Python 從 base 映像檔中移除這類變更會在建置階段而非設計階段浮現,因此及早進行一次 smoke test 是值得的。此外,由於支援期限因訂閱而異,在作出任何全車隊承諾之前,核實所選層級附帶的準確維護承諾仍是必要前提。

Canonical 的完整封裝教學可在 Ubuntu 部落格查閱。

新聞來源 / Original News Source