0

I ran apt-get upgrade and found a kept back package.

bitnami@ip-xxxxx-xx-xxx:/etc/apt/sources.list.d$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
  mongodb-org-tools
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.

Following this link and after some basic understanding of what "--with-new-pkgs-upgrade" does, I ran the following:

bitnami@ip-xxxxx-xx-xxx:/etc/apt/sources.list.d$ sudo apt-get --with-new-pkgs upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

However, when I rerun the regular "apt-get upgrade" again, I still see the kept back packages listed.

bitnami@ip-xxxxx-xx-xxx:/etc/apt/sources.list.d$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
  mongodb-org-tools
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.

The link I'm referring to also provides a troubleshooting step in one of the comments:

I ran the step to just find it doesn't do anything and reports 0 not upgraded:

sudo apt-get install mongodb-org-tools
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  mongodb-org-tools
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

I still see the kept back packages. Is there any benefit of "--with-new-pkgs"? How do solve the issue with kept-back packages in this case?

0 Answers0