Linux-Mint
0 升級,0 新安裝,0 刪除,1 未升級。我怎樣才能升級那個 1 包,或者至少知道哪個是?
我已經嘗試了圍繞這個網站和其他網站找到的許多不同的解決方案,例如
sudo apt update && sudo apt upgrade sudo apt list --upgradeable sudo apt full-upgrade sudo apt dist-upgrade
並且不顯示包的資訊或更新。我也試過
aptitude update
並檢查了日誌,沒有顯示有關包的資訊。
關於如何辨識這個包的任何想法?
我在這一點上的猜測是,它可能與
sources.list
文件有關。對此有何評論?我有最新發行版 Ulyana / Focal 的 Linux Mint。
非常感謝!
apt upgrade
會告訴你它想做什麼,包括包升級;這將包括一個不會升級的軟體包列表:$ sudo apt upgrade -o APT::Get::Show-Upgraded=true The following packages were automatically installed and are no longer required: [any packages which could be auto-removed] Use 'sudo apt autoremove' to remove them. The following NEW packages will be installed: [any packages which will be installed] The following packages have been kept back: [any packages which are upgradeable but won’t be upgraded] The following packages will be upgraded: [any packages which will be upgraded] NN upgraded, NN newly installed, NN to remove and NN not upgraded. Need to get ... of archives. After this operation, ... of additional disk space will be used. Do you want to continue? [Y/n]
(替換
NN
為反映上面列出的包的四個不同值)。如果這仍然沒有為您顯示任何內容,則可能是本地安裝了未升級的軟體包(但是,
apt
大概不想升級它……)。調查此問題的一個好工具是apt-show-versions
:sudo apt install apt-show-versions
然後執行
apt-show-versions | grep "No available version in archive"
查看配置的儲存庫中不可用的包,以及
apt-show-versions | grep upgradeable
查看哪些軟體包是可升級的(無論是否
apt
升級它們)。您通常可以通過使用包名稱執行來了解有關為什麼沒有升級包的更多資訊。
apt install
如果它的升級會導致另一個包被刪除,upgrade
會跳過它,但full-upgrade
會升級它。還有一種可能是升級候選被阻止;特別是在 Linux Mint 上,這可能發生
snapd
在配置文件預設禁用的情況下。/etc/apt/preferences.d/nosnap.pref