升級到 Ubuntu 24 之後,Vim 顯示中文亂碼。原因通常是「終端機編碼 / Vim 編碼設定不一致」,Ubuntu 22 → 24 預設 locale 可能被重置成 C 或 POSIX,不是 UTF-8。 🔍 排查步驟 1. 看系統 locale 如果看到類似: 那就不是 UTF-8。 Ubuntu 24 預設應該是: 或至少是 en_US.UTF-8。 2. 修正 locale 如果缺中文 locale,先裝: 設定環境: 登出再登入,或直接測:
Category: Linux
About Linux Tech
Troubleshooting PPPoE Issues After Upgrading to Ubuntu 24
After upgrading from Ubuntu 22 to Ubuntu 24, many users have found that PPPoE tools—such as pppoeconf, pppoe-discovery, or pppd-pppoe—no longer work properly.This is mainly due to changes in pppd behavior and kernel module handling introduced in newer Ubuntu releases. 🔍 Why PPPoE Fails on Ubuntu 24 1. pppoeconf Has Been Removed Starting from Ubuntu…
PPPoE 問題處理
在 Ubuntu 22 升級到 Ubuntu 24 之後,pppoe(通常指 pppoeconf / pppoe-discovery / pppd-pppoe 等工具)會遇到無法正常運作的情況。這主要和 pppd 與內核模組的變化 有關。 為什麼 Ubuntu 24 之後 PPPoE 會失效? 檢查與排錯步驟 解決方案 方法一:繼續用傳統 pppd 方法二:改用 NetworkManager 如果是桌面或伺服器有啟用 NetworkManager,可以直接用: nm-connection-editor 方法三:使用 systemd service 自動化 建立一個 systemd unit [Unit]Description=PPPoE connectionAfter=network.target [Service]ExecStart=/usr/bin/pon dsl-providerExecStop=/usr/bin/poff dsl-providerRemainAfterExit=yes [Install]WantedBy=multi-user.target 儲存為 /etc/systemd/system/pppoe.service,然後啟用: 先檢查 pppoe 模組是否有載入(lsmod | grep ppp),這通常是 Ubuntu 24 升級後最常見的問題。