# 情境: 因為想安裝 https://www.warp.dev/?windows_waitlist=true 但是沒有 Windows 版本 所以用 WSL2 來安裝試用 # 參考資料 參考: https://phoenixnap.com/kb/install-rpm-packages-on-ubuntu # 操作指令說明 - alien 可以把 .rpm 轉成 .deb 檔案 ```shell= # 安裝 alien sudo apt install alien -y # 轉換檔案格式 .rpm 轉成 .deb 檔案 sudo alien [package_name].rpm # 安裝 .rpm 檔案 sudo alien -i [package_name].rpm ``` - 安裝 .deb 檔案 ```shell= sudo dpkg -i [package_name].deb ``` - 我下載了 warp-terminal_0.2024.04.09.08.01.stable.01_amd64.deb 進行安裝 - 遇到了一些錯誤,如下: ```shell= dpkg: error processing package warp-terminal (--install): dependency problems - leaving unconfigured Errors were encountered while processing: warp-terminal ``` - 進行修正 ```shell= sudo apt-get update sudo apt-get install fontconfig libegl1 libwayland-client0 libwayland-egl1 libxcursor1 libxi6 libxkbcommon-x11-0 ``` - 再次發生錯誤 ```shell= You might want to run 'apt --fix-broken install' to correct these. The following packages have unmet dependencies: libegl1 : Depends: libglvnd0 (= 1.4.0-1) but it is not going to be installed Depends: libegl-mesa0 but it is not going to be installed libxcursor1 : Depends: libxfixes3 but it is not going to be installed Depends: libxrender1 but it is not going to be installed libxkbcommon-x11-0 : Depends: libxkbcommon0 (= 1.4.0-1) but it is not going to be installed Depends: libxcb-xkb1 but it is not going to be installed E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution). ``` - 嘗試修正 ```shell= sudo apt --fix-broken install ``` - 再次執行依賴安裝 ```shell= sudo apt-get install fontconfig libegl1 libwayland-client0 libwayland-egl1 libxcursor1 libxi6 libxkbcommon-x11-0 ``` - 已修復問題,並再次安裝 .deb 檔案 ```shell= sudo dpkg -i warp-terminal_0.2024.04.09.08.01.stable.01_amd64.deb ``` - 安裝成功了 * 還是不能執行,一堆相依信問題,log 被洗掉了😥 ![AI終端機](https://hackmd.io/_uploads/r1of9Q8gC.png)