Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學
您现在的位置: Windows教程網 >> Windows教程 >  >> Linux 系統教學 >> Linux 教學

Debian 安裝 Chrome 與 SCIM 中文輸入法完整教學

編輯:Linux 教學

Debian 與 Ubuntu 差異

Debian 安裝較 Ubuntu 複雜,需手動配置軟體源,適合有一定 Linux 基礎的使用者。Ubuntu 開箱即用,適合新手。

步驟 1:配置軟體源

# vi /etc/apt/sources.list
deb https://ftp.cn.debian.org/debian squeeze main
deb-src https://ftp.cn.debian.org/debian squeeze main
deb https://ftp.cn.debian.org/debian squeeze-updates main
deb-src https://ftp.cn.debian.org/debian squeeze-updates main
deb https://mirrors.ustc.edu.cn/debian-security/ squeeze/updates main
deb-src https://mirrors.ustc.edu.cn/debian-security/ squeeze/updates main

# 教育網源 (視網路環境選擇)
apt-get update

步驟 2:安裝 sudo

apt-get install sudo

編輯 /etc/sudoers (使用 visudo) 加入使用者權限。

步驟 3:安裝 SCIM 中文輸入法

apt-get install scim scim-pinyin

重要設定

預設 SCIM 智能匹配體驗不佳,必須切換為拼音模式,否則難以輸入想要的字詞。

步驟 4:安裝 Google Chrome

下載 .deb 套件

wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb

安裝與相依性修復

# 直接安裝會因缺少相依套件失敗
dpkg -i google-chrome-stable_current_amd64.deb

# 修復相依性
apt-get -f install

# 重新安裝
dpkg -i google-chrome-stable_current_amd64.deb

apt-get -f install 會自動下載並安裝缺少的相依套件 (ca-certificates, libcurl3, libssh2-1, xdg-utils 等)。

常見問題與解決

問題解決方案
Chrome 無法啟動檢查 ldd /opt/google/chrome/chrome 確認共享庫、確認沙箱權限
中文輸入法無法切換設定環境變數 GTK_IM_MODULE=scim, QT_IM_MODULE=scim, XMODIFIERS=@im=scim
字型顯示異常安裝 ttf-wqy-zenhei, ttf-wqy-microhei

現代 Debian 版本注意事項

  • Debian 10 (Buster) 以降版本已歸檔,建議使用 Debian 11 (Bullseye) 或 12 (Bookworm)
  • Chrome 官方源現支援直接加入 sources.list.d 管理
  • 輸入法架構已轉向 fcitx5 或 ibus,SCIM 較舊
  • 使用 apt install ./google-chrome-stable_current_amd64.deb 可自動處理相依性

Debian 穩定性極高,適合伺服器與進階使用者,掌握套件管理與源配置是核心技能。

Copyright © Windows教程網 All Rights Reserved