2018-08-11 Packages have been kept back

The dread of weird messages: run sudo apt update and sudo apt upgrade and find yourself staring at the cryptic message.

The following packages have been kept back:
  bind9-host dnsutils libbind9-160 libirs160 libisc169 libisccc160 libisccfg160 liblwres160
0 upgraded, 0 newly installed, 0 to remove and 8 not upgraded.

I don’t know how I ended up in this situation. I found something related on Ask Ubuntu.

sudo apt install bind9-host dnsutils libbind9-160 libirs160 libisc169 libisccc160 libisccfg160 liblwres160
sudo apt-mark auto bind9-host dnsutils libbind9-160 libirs160 libisc169 libisccc160 libisccfg160 liblwres160

The first one forces Debian to install the newest versions and resolves dependencies, but it also marks the packages as manually installed. You typically only want this for the tools you use yourself. That’s why the second command marks all the packages I just installed as installed “automatically”. If no other package needs them, they can be auto-removed.

Tags:

Comments


Please make sure you contribute only your own work, or work licensed under the GNU Free Documentation License. Note: in order to facilitate peer review and fight vandalism, we will store your IP number for a number of days. See Privacy Policy for more information. See Info for text formatting rules. You can edit the comment page if you need to fix typos. You can subscribe to new comments by email without leaving a comment.

To save this page you must answer this question:

Please say HELLO.