Ubuntu 22.04 LTS 我想升级所有软件包

Ubuntu 22.04 LTS 我想升级所有软件包

sudo apt upgrade 和 sudo apt full-upgrade 不起作用,以下 8 个软件包将不会升级:

gnome-initial-setup/jammy-updates 42.0.1-1ubuntu2.2 amd64 [upgradable from: 42.0.1-1ubuntu2]
gnome-remote-desktop/jammy-updates 42.7-0ubuntu1 amd64 [upgradable from: 42.3-0ubuntu1]
python3-software-properties/jammy-updates,jammy-updates 0.99.22.5 all [upgradable from: 0.99.22.2]
software-properties-common/jammy-updates,jammy-updates 0.99.22.5 all [upgradable from: 0.99.22.2]
software-properties-gtk/jammy-updates,jammy-updates 0.99.22.5 all [upgradable from: 0.99.22.2]
ubuntu-advantage-tools/jammy-updates 27.13.3~22.04.1 amd64 [upgradable from: 27.9~22.04.1]
update-notifier-common/jammy-updates,jammy-updates 3.192.54.5 all [upgradable from: 3.192.54]
update-notifier/jammy-updates 3.192.54.5 amd64 [upgradable from: 3.192.54]

答案1

这表明这些更新被阻止是有原因的,要么是由于您的 apt 设置,要么是它们可能与其他软件包冲突。要修复它,只需运行apt install <package name>

如果您想通过一个命令运行安装所有这些:

apt full-upgrade | awk -F / ' {system("apt install "$1)}'

如果你不在 root shell 中,则需要在两个命令中添加 sudo

sudo apt full-upgrade | awk -F / ' {system("sudo apt install "$1)}'

*** 假设在 root shell 中运行 sudo 或 apt

相关内容