
我的 dpkg 有問題。當我嘗試安裝軟體時出現錯誤代碼
E: Sub-process /usr/bin/dpkg returned an error code (100)
輸出ls -la /usr/bin/dpkg
:
ls: cannot access /usr/bin/dpkg: No such file or directory
答案1
您刪除了 dpkg,需要重新安裝它。
從 liveCD 取得 dpkg 或者這裡。
確保為您的發行版選擇正確的版本。
由於您不再安裝 dpkg,因此您無法使用它來安裝 .deb 檔案。
您必須使用它ar
來解壓縮 .deb 檔案。 (man ar
用於詳細資訊)。
然後將 dpkg 複製到 中/usr/bin/
,並使用chmod 750 /usr/bin/dpkg
為執行檔設定正確的權限。