Quantcast
Channel: "The following packages have been kept back:" Why and how do I solve it? - Ask Ubuntu
Viewing all articles
Browse latest Browse all 30

Answer by John McGehee for "The following packages have been kept back:" Why and how do I solve it?

$
0
0

For me and several commenters on Pablo's answer,

sudo apt-get --with-new-pkgs upgrade  # No effect

had no effect. I do not care to have my package marked as manually installed, so I did the following, using kept back package docker-ce as an example:

sudo apt install docker-ce  # Answer no, do not install

Abort the installation by answering n. Observe the new package(s) that would have been installed, and install them:

sudo apt install docker-ce-rootless-extras

Now apt upgrade will upgrade the previously kept back package:

sudo apt upgrade  # Upgrades docker-ce

Viewing all articles
Browse latest Browse all 30

Trending Articles