熱門: 資料更新於2026年11月29日

軟體分類

網路軟體1,433
通訊社群331
影音軟體944
繪圖與影像571
辦公軟體1,195
開發工具3,311
AI工具620
安全與隱私415
系統工具3,231
遊戲548
教育與科學243
網路與IT297

Ubuntu靜默安裝與解除安裝參數

Install a complete Ubuntu terminal environment in minutes with Windows Subsystem for Linux (WSL). Develop cross-platform applications, improve your data science or web development workflows and manage IT infrastructure without leaving Windows.

免互動安裝Ubuntu、解除安裝,以及在部署工具中偵測安裝狀態所用的指令。只列出確定可用的指令:來自資訊清單,或是安裝程式技術的官方預設參數。

相關教學: 靜默安裝參數總整理:MSI、NSIS、Inno Setup · 用登錄檔或PowerShell解除安裝程式

使用winget

PowerShell
winget install --id Canonical.Ubuntu -e --silent --accept-package-agreements --accept-source-agreements
winget upgrade --id Canonical.Ubuntu -e --silent
winget uninstall --id Canonical.Ubuntu -e --silent

依安裝檔

64位元 · APPX

靜默安裝Add-AppxPackage -Path Ubuntu2204-220117.appx
解除安裝Get-AppxPackage -Name CanonicalGroupLimited.Ubuntu | Remove-AppxPackage

ARM64 · APPX

靜默安裝Add-AppxPackage -Path Ubuntu2204-220117_ARM64.appx
解除安裝Get-AppxPackage -Name CanonicalGroupLimited.Ubuntu | Remove-AppxPackage

PowerShell:下載、驗證、安裝

下載官方檔案,驗證SHA256後靜默安裝。

install-ubuntu.ps1
$url = 'https://publicwsldistros.blob.core.windows.net/wsldistrostorage/Ubuntu2204-220117.appx'
$sha256 = '5A09BC002F2F5281D97C5FDC8F02D241FBCDAA5B39590D9474F5297BB14D5EE3'
$file = Join-Path $env:TEMP 'Ubuntu2204-220117.appx'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Add-AppxPackage -Path $file

虛擬機器熱門排行

查看全部
  1. Vagrant虛擬機器 · HashiCorp
  2. Sandboxie虛擬機器 · sandboxie-plus.com
  3. Oracle VirtualBox虛擬機器 · Oracle and/or its affiliates
  4. HashiCorp Packer虛擬機器 · HashiCorp
  5. Sandboxie-Plus虛擬機器
  6. QEMU通用開源的模擬器和虛擬機
  7. Multipass虛擬機器 · Canonical, Ltd
  8. QEMU guest agent虛擬機器 · RedHat
  9. BlueStacks虛擬機器 · now.gg, Inc.
  10. usbipd-win虛擬機器 · Frans van Dorsselaer

Canonical Group Limited的其他軟體

查看全部

標籤

分享