How do I update packages that have been held back?

Linode Staff

When I run apt-get update and apt-get upgrade it does not upgrade. Here is what I see

Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
  tshark ubuntu-minimal wireshark wireshark-common
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.

What's going on?

1 Reply

The message that you are seeing indicates that one or more dependencies of the installed packages listed in the message have changed. APT assumes that you would rather review the changes before applying them, and so the affected packages are listed as "held back". To proceed with updating the packages, you can try updating with the following command:

sudo apt-get --with-new-pkgs upgrade

If that does not work, then you can try installing the updated packages manually:

sudo apt-get install tshark ubuntu-minimal wireshark wireshark-common

I also found this post, which indicates that using apt instead of apt-get should allow the packages to update, despite the change in dependencies.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct