Upgrade
由於未配置 zlib1g,Pop!_OS 無法升級軟體包
每當打開流行商店時,它都會凍結並崩潰。通過 aptitude更新軟體包有效,但**升級失敗
dpkg: dependency problems prevent processing triggers for libglib2.0-0:i386: libglib2.0-0:i386 depends on zlib1g (>= 1:1.2.2); however: Package zlib1g:i386 is not configured yet. dpkg: error processing package libglib2.0-0:i386 (--configure): dependency problems - leaving triggers unprocessed
zlib1g 似乎已正確安裝並
sudo apt install
最終觸發相同的錯誤:$ sudo apt install zlib1g:i386 [sudo] password for redhand: Reading package lists... Done Building dependency tree... Done Reading state information... Done zlib1g:i386 is already the newest version (1:1.2.11.dfsg-2ubuntu7.1). zlib1g:i386 set to manually installed. 0 upgraded, 0 newly installed, 0 to remove and 37 not upgraded. 7 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Do you want to continue? [Y/n] y dpkg: dependency problems prevent processing triggers for libglib2.0-0:i386: libglib2.0-0:i386 depends on zlib1g (>= 1:1.2.2); however: Package zlib1g:i386 is not configured yet. dpkg: error processing package libglib2.0-0:i386 (--configure): dependency problems - leaving triggers unprocessed
嘗試修復損壞的依賴項告訴我 zlib1g 肯定已安裝並且是最新的。
$ sudo apt install -f zlib1g Reading package lists... Done Building dependency tree... Done Reading state information... Done zlib1g is already the newest version (1:1.2.11.dfsg-2ubuntu7.1).
我該如何解決?
sudo dpkg --configure -a
解決了這個問題。在某些情況下,可能需要遵循
sudo apt --fix-broken install