Děje se mi taková zvláštnost, při aktualizaci několika stejných Ubuntu 22.04 jsou některé balíčky "kept back". Na různých strojích jsou to různé balíčky. Nechápu, proč jako jsou "kept back" a proč pokaždé jiné.
No vynutím jejich aktualizaci pak apt install --reinstall, ale je to krok navíc.
Normálně aktualizuji apt update; apt dist-upgrade. Debian toto myslím nedělá, ale mám jich míň.
Například:
5 packages can be upgraded. Run 'apt list --upgradable' to see them.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
#
# News about significant security updates, features and services will
# appear here to raise awareness and perhaps tease /r/Linux ;)
# Use 'pro config set apt_news=false' to hide this and future APT news.
#
The following packages have been kept back:
python3-software-properties software-properties-common
The following packages will be upgraded:
openssh-client openssh-server openssh-sftp-server
3 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
Need to get 1,317 kB of archives.
After this operation, 4,096 B disk space will be freed.
Do you want to continue?
5 packages can be upgraded. Run 'apt list --upgradable' to see them.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
#
# News about significant security updates, features and services will
# appear here to raise awareness and perhaps tease /r/Linux ;)
# Use 'pro config set apt_news=false' to hide this and future APT news.
#
The following packages have been kept back:
openssh-client openssh-server openssh-sftp-server python3-software-properties software-properties-common
0 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.
Tak na těch strojích jsou nainstalované stejné balíčky, takže závislostmi to asi nebude.
No a dist-upgrade právě dělám vždy, i tak mám stále kept-back a na různých strojích různě.
Když dám pak ručně apt install --reinstall těch balíčků, co jsou kept-back, tak se mi nezdá, že by instaloval, nebo měnil něco navíc. Prostě nainstaluje ty balíčky, co dist-upgrade nechtěl instalovat. Akorát tam vidím navíc nějaké Suggested a Recommended, že by to bylo kvůli tomu?
Například:
$ sudo apt install --reinstall openssh-client openssh-server openssh-sftp-server python3-software-properties software-properties-common
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Suggested packages:
libpam-ssh monkeysphere ssh-askpass molly-guard ufw
Recommended packages:
xauth ssh-import-id unattended-upgrades
The following packages will be upgraded:
openssh-client openssh-server openssh-sftp-server python3-software-properties software-properties-common
5 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.