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

Answer by QT-1 for "The following packages have been kept back:" Why and how...

This one line solves the issue automatically for me:sudo apt-get install --only-upgrade `sudo apt-get upgrade | awk 'BEGIN{flag=0} /The following packages have been kept back:/ { flag=1} /^ /{if (flag)...

View Article



Answer by mirekphd for "The following packages have been kept back:" Why and...

Some recently installed packages may require a reboot before new can be installed (and the latter are held back), e.g.:$ sudo apt list --upgradableListing......

View Article

Answer by Joe for "The following packages have been kept back:" Why and how...

This has been happening more since I upgraded to Ubuntu 22.04 jammy.The reason is usually phased updates. (Thanks to @louis-waweru for the link.)The solution is to ignore those "have been kept back"...

View Article

Answer by ross minet for "The following packages have been kept back:" Why...

Update/Upgrade not working[last answer]The kept-back packages (...) are currently in Phased Updates.Phased Updates is one precaution to prevent everybody from receiving a buggy package via upgrade:...

View Article

Answer by Vincent Gerris for "The following packages have been kept back:"...

I always run dist-upgrade on my dev laptop because I like latest and greatest, it is not do-release-upgrade which actually upgrades to a newer version,On ubuntu 22.04 I had this issue with both...

View Article


Answer by hlovdal for "The following packages have been kept back:" Why and...

While other answers have cautioned that apt dist-upgrade might remove programs, notice that you can just run the command and then answer "no" to the "Do you want to continue?" question in order to...

View Article

Answer by Ken Sharp for "The following packages have been kept back:" Why and...

Following a do-release-upgrade, your third-party or private repositories (such as PPAs) may be disabled. This can stop a package being updated because it can no longer find the dependencies it needs,...

View Article

Answer by bernie for "The following packages have been kept back:" Why and...

I'm adding this answer because I'm not satisfied with how other answers handle the why part of the question to understand what's going on and choose the appropriate course of action.Hopefully this will...

View Article


Answer by John McGehee for "The following packages have been kept back:" Why...

For me and several commenters on Pablo's answer,sudo apt-get --with-new-pkgs upgrade # No effecthad no effect. I do not care to have my package marked as manually installed, so I did the following,...

View Article


Answer by Ronald Johnson for "The following packages have been kept back:"...

The following packages have been kept back: clang-9 cpp g++ gcc gcc-10-base kali-linux-default lib32gcc-s1 lib32stdc++6 libatomic1 libcc1-0 libclang-common-9-dev libclang-cpp9 libgcc-s1 libgfortran5...

View Article

Answer by m00am for "The following packages have been kept back:" Why and how...

For the very specific flavour of this problem where the proprietary nvidia drivers are halfway updated to a new version, I reinstalled them using the driver manager. To give some context: I was stuck...

View Article

Answer by marc-medley for "The following packages have been kept back:" Why...

Ubuntu 18.04 LTS Bionic and newer Ubuntu versions … provide a streamlined syntax via apt full-upgrade which functions like apt-get dist-upgrade.sudo apt full-upgradesudo apt upgrade is used to install...

View Article

Image may be NSFW.
Clik here to view.

Answer by Vasyl Lyashkevych for "The following packages have been kept back:"...

I have read all the posts and found that there are many interesting explanations. I was trying all of them but have not any results completely.I have a problem with mysql-utilities which I couldn't...

View Article


Answer by Pablo Bianchi for "The following packages have been kept back:" Why...

I answered a similar question here, explaining a bit more about the reasons behind this issue.Try this Unix SE answer:sudo apt-get --with-new-pkgs upgradeThis allows new packages to be installed. It...

View Article

Answer by Stephan Henningsen for "The following packages have been kept...

This looks like the correct way to reinstall kept back package:apt-get install --reinstall libjpeg-progsAt least this worked for me when libjpeg-progs was stuck after upgrading from Ubuntu 14.04 to...

View Article


Answer by Elliptical view for "The following packages have been kept back:"...

I ran into this problem using synaptic because it appeared to hang, and to try and fix this I re-booted and tried again.SOLUTION: Then I discovered an informative message as part of the package with...

View Article

Answer by crysman for "The following packages have been kept back:" Why and...

In my case packages held back were those related to linux-headers and kernel. I came to this by trying to solve an issue with having a red exclamation mark in the notification area and not being able...

View Article


Answer by Afilu for "The following packages have been kept back:" Why and how...

You can also try aptitude. First install it:sudo apt-get install aptitude -ythen:sudo aptitude safe-upgradeIt's safer than full-upgrade (originally named dist-upgrade) because "packages will not be...

View Article

Answer by Singh for "The following packages have been kept back:" Why and how...

This worked for mesudo aptitude full-upgrade

View Article

Answer by John Lawrence Aspden for "The following packages have been kept...

This is usually because the package has added a dependency, and upgrade doesn't want to add it for you without permission.If you run:sudo apt-get install gimp gimp-data libgegl-0.0-0 libgimp2.0Then the...

View Article

Answer by user88285 for "The following packages have been kept back:" Why and...

Whenever you receive from the command apt-get upgrade the messageThe following packages have been kept back:then to upgrade one or all of the kept-back packages, without doing a distribution upgrade...

View Article


Answer by Alexander Torstling for "The following packages have been kept...

I have found that aptitude does a better job at upgrading packages if the versions differ just slightly. I had a situation like this:me@compy:/etc/apt$ apt-cache policy gzipgzip: Installed: 1.3.5-15...

View Article


Answer by Johnny for "The following packages have been kept back:" Why and...

In actual fact, the switch you need is dselect-upgrade which installs / removes dependencies for the particular package set involved.

View Article

Answer by Kazark for "The following packages have been kept back:" Why and...

I ran into this problem when a new kernel was released. (Possibly because I have unstable updates enabled.) I found the simplest way to do the install was through Ubuntu's graphical installer...

View Article

Answer by mudy for "The following packages have been kept back:" Why and how...

apt-get dist-upgrade is dangerous for stable environment, wrong source.list setting and you end up with broken ubuntu. you might get entire application upgraded to version you dont want.Use case:...

View Article


Answer by txwikinger for "The following packages have been kept back:" Why...

Most likely these packages are held back because their installation would create dependency inconsistencies. This can either happen because you are using archives under active development, ppas, or...

View Article

Answer by jbowtie for "The following packages have been kept back:" Why and...

There are normally two reasons you may see this message.If upgrading the program (via sudo apt-get upgrade) would cause packages to be added or removed, then the program will be held back. You can use...

View Article

Answer by crenshaw-dev for "The following packages have been kept back:" Why...

According to an article on debian-administration.org,If the dependencies have changed on one of the packages you have installed so that a new package must be installed to perform the upgrade then that...

View Article

"The following packages have been kept back:" Why and how do I solve it?

I just added a PPA repository for the development version of the GIMP, but I get this error:$ apt-get update && apt-get upgrade...The following packages have been kept back: gimp gimp-data...

View Article



Answer by apaderno for "The following packages have been kept back:" Why and...

In my case, I got the message because I run sudo apt upgrade without first running sudo apt update.$ sudo apt upgradeReading package lists... DoneBuilding dependency tree... DoneReading state...

View Article
Browsing latest articles
Browse All 30 View Live




Latest Images