WSL:Sub-process /usr/bin/dpkg returned an error code (1)
在WSL中安裝圖形化介面sudo apt-get install xfce4
時遇到 Sub-process /usr/bin/dpkg returned an error code (1) 錯誤
系統提示sudo apt --fix-broken install
網上許多方法都不好用,還會報相同的錯。
最後發現是libpng12-0這個庫下載不下來,加入相應源
sudo add-apt-repository ppa:linuxuprising/libpng12
sudo apt update
然後再執行sudo apt --fix-broken install
問題解決
相關文章
- Sub-process /usr/bin/dpkg returned an error codeError
- iOS開發除錯之報錯:Command /usr/bin/codesign failed with exit code 1iOS除錯AI
- /usr/bin/python與/usr/bin/env python的區別Python
- code EACCESnpm ERR! syscall renamenpm ERR! path /usr/local/bin/webpack errno -13NPMWeb
- python中#!/usr/bin/python與#!/usr/bin/env python的區別Python
- /bin、/sbin、/usr/bin、/usr/sbin、/usr/local/sbin放置可執行檔案的區別
- /usr/lib/wsl/lib/libcuda.so.1 is not a symbolic linkSymbol
- /usr/bin/ld: cannot find -lopenblas
- returned a non-zero code: 139
- -bash: /usr/local/bin/pod: /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby: b...Framework
- 【jenkins】/usr/bin/env: php: No such file or directoryJenkinsPHP
- /usr/bin/expect的簡單使用
- Php cli模式下執行報錯/usr/bin/php: /usr/local/lib/libxml2.so.2: no version information available (required by /usr/bin/php)PHP模式XMLORMAIUI
- Authentication is required to run /usr/bin/x-terminal-emulator as rootUI
- You don't have write permissions for the /usr/bin directory.
- git error: RPC failed; HTTP 500 curl 22 The requested URL returned error: 500GitErrorRPCAIHTTP
- frepplectl解決報錯:bash: /usr/bin/frepplectl: Permission denied
- 一分鐘看懂頭部 shell #!/usr/bin 命令
- mac下/usr/local/bin No such file or directory問題解決Mac
- 關於/usr/bin/ld: cannot find -lXX的問題
- MySQL error log和bin logMySqlError
- MongoDB server returned error on SASL authentication step: BSON field 'saslCoMongoDBServerError
- 【ERROR】OPatch failed with error code 73ErrorAI
- React redux toolkit: Uncaught Error:[Immer] An immer producer returned a new...ReactReduxError
- Error: Expected ref to be a function, a string, an object returned by React.createRef(), or null.ErrorFunctionObjectReactNull
- idea 報錯maven [ERROR] Maven execution terminated abnormally (exit code 1)IdeaMavenErrorORM
- OPatch failed with error code 73AIError
- Error Domain=kAFAssistantErrorDomain Code=7ErrorAI
- (轉載)關於usr/bin/ld: cannot find -lxxx問題總結
- 記一次危險的操作——誤刪/usr/bin目錄
- python升級帶來的yum異常:File "/usr/bin/yum", line 30Python
- [Code Composer Studio] fatal error #6001Error
- ant打包出現null returned: 1報錯Null
- Anaiable執行出現[WARNING]: Platform linux on hostis using the discovered Python interpreter at /usr/bin/pythonAIPlatformLinuxPython
- 解決Make時,“/usr/bin/ld: 找不到 -lXXX”問題的三種方法
- linux輸入yum後提示: -bash: /usr/bin/yum: No such file or directory的解決方案Linux
- /bin/sh: 1: pahole: not found
- VS Code + WSL 搭建 RaspberryPi Pico 開發環境開發環境