How to find out which backported packages are available, and avoid losing packages when manually upgrading?

nealmcb

I was surprised to see that since Natty 11.04, even when we have enabled a backports repository, updated packages aren't automatically installed from that repository. We have to install individual updates manually, e.g. via

apt-get install ipython/precise-backports

as explained at UbuntuBackports - Community Ubuntu Documentation. I guess I just didn't get the memo....

First question: how do we find out what our options are for upgrades via backports? I'm surprised that even if I ask for status, e.g. via

wajig status ipython

it doesn't tell me there is a new version available. I'd like a list of all upgrades for packages which I've already installed.

Next, how do I avoid losing existing packages just because I upgrade via a backport?

E.g. the above ipython install tells me:

The following packages will be REMOVED:
   ipython-notebook ipython-qtconsole

How do I say I want the latest backported ipython, as well as any other packages for which updates are available that depend on it, without manually figuring them all out and installing them also?

I know I can change the pinning so that I get all updates, but I'm hesitant to go against the general advice not to. But if a user asks for one package to be updated, wouldn't it be natural to update all the dependencies, like you'd get from a ppa?

Braiam

how do we find out what our options are for upgrades via backports?

Run apt-get with the --default-release or -t switch:

sudo apt-get -t precise-backports upgrade

Is the same as apt-get install ipython/precise-backports just that you don't have to insert the precise-backports part.

I'm surprised that even if I ask for status, e.g. via wajig status ipython it doesn't tell me there is a new version available.

For that I use apt-cache policy:

apt-cache policy iceweasel
iceweasel:
  Installed: 25.0~a2+20130816004007-1~bpo70+1
  Candidate: 25.0~a2+20130816004007-1~bpo70+1
  Package pin: 25.0~a2+20130816004007-1~bpo70+1
  Version table:
 *** 25.0~a2+20130816004007-1~bpo70+1 1990
       1990 http://mozilla.debian.net/ wheezy-backports/iceweasel-aurora i386 Packages
        100 /var/lib/dpkg/status
     23.0-2 1990
         -1 http://ftp.us.debian.org/debian/ experimental/main i386 Packages
     17.0.8esr-2 1990
        990 http://ftp.utexas.edu/debian/ testing/main i386 Packages
         -1 http://ftp.de.debian.org/debian/ sid/main i386 Packages

Next, how do I avoid losing existing packages just because I upgrade via a backport?

If the packages you want to upgrade break previous dependencies, then you should decide if upgrading or leaving things as they are. Or you just force things down and break your installation, is all up to you.

How do I say I want the latest backported ipython, as well as any other packages for which updates are available that depend on it, without manually figuring them all out and installing them also?

Same as above.

But if a user asks for one package to be updated, wouldn't it be natural to update all the dependencies, like you'd get from a ppa?

If there is no update candidates, no. This happens a lot on rolling releases distributions, some packages depend of others that are yet no available in the repositories, so apt decides no to upgrade since it breaks dependencies.

For the case of ipython that you mention on comments:

Following the package dependencies page ipython-notebook=0.13.2-1~ubuntu12.04.1 depends to ipython=0.13.2-1~ubuntu12.04.1, but if you try to upgrade ipython alone, apt will take your actions as priority and fulfill them at any cost. Since you are only telling apt to install ipython from backports, he understand:

Fulfill only this condition at any cost

So, the only way to do this is removing/downgrading any package that gets it dependencies broken due this operation (ipython-notebook) and install ipython from backports. The correct way to do this is, either:

sudo apt-get -t precise-backports install ipython-notebook ipython

or

sudo apt-get -t precise-backports upgrade

The first one will tell apt-get to install ipython-notebook and ipython from backports, the second will tell apt to upgrade any installed package that has upgrades in the precise-backports repository.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How to find out which backported packages are available, and avoid losing packages when manually upgrading?

From Dev

How to find manually installed packages?

From Dev

How to find out which packages that have no install candidate can be removed? (How to properly clean out such packages?)

From Dev

How to handle "obsolete" packages when upgrading distribution?

From Dev

Avoid repetitvely downloading packages when upgrading several environments?

From Dev

How to find out where different packages are installed?

From Dev

Is there a way to find out which packages depend on a specific package (Julia)?

From Dev

How to find installed deb packages needlessly marked as manually installed

From Dev

How to find out which fonts are available in qml?

From Dev

How to find all the available packages (and executables) that can fulfill an "alternative"?

From Dev

How do I find out when debian packages were last updated?

From Dev

How do I find out when debian packages were last updated?

From Dev

Debian - How to get notified when packages for "dist-upgrade" are available?

From Dev

How can I determine which packages I have installed via homebrew and which were installed manually?

From Java

How to avoid reinstalling packages when building Docker image for Python projects?

From Dev

Drag forward installed Python packages when upgrading

From Dev

how to find which packages are installed system-wide in NixOS?

From Dev

How to find out if new versions of npm-packages exists

From Dev

How to find out if new versions of npm-packages exists

From Dev

How to find out what all standalone packages are installed?

From Dev

How to make a file which when exectued will install multiple packages in Ubuntu?

From Dev

How to find the list of all available packages along with the lastest version number available in the repositories?

From Dev

How to install deb packages which are stored in another manually created deb package?

From Dev

How Do I manually remove malformed Packages?

From Dev

How Do I manually remove malformed Packages?

From Dev

How to download rpm packages manually (without yum)?

From Dev

How to list installed packages manually from backports?

From Dev

Is there any way to find out which libraries or packages I have already installed in Python?

From Dev

upgrading missing packages?

Related Related

  1. 1

    How to find out which backported packages are available, and avoid losing packages when manually upgrading?

  2. 2

    How to find manually installed packages?

  3. 3

    How to find out which packages that have no install candidate can be removed? (How to properly clean out such packages?)

  4. 4

    How to handle "obsolete" packages when upgrading distribution?

  5. 5

    Avoid repetitvely downloading packages when upgrading several environments?

  6. 6

    How to find out where different packages are installed?

  7. 7

    Is there a way to find out which packages depend on a specific package (Julia)?

  8. 8

    How to find installed deb packages needlessly marked as manually installed

  9. 9

    How to find out which fonts are available in qml?

  10. 10

    How to find all the available packages (and executables) that can fulfill an "alternative"?

  11. 11

    How do I find out when debian packages were last updated?

  12. 12

    How do I find out when debian packages were last updated?

  13. 13

    Debian - How to get notified when packages for "dist-upgrade" are available?

  14. 14

    How can I determine which packages I have installed via homebrew and which were installed manually?

  15. 15

    How to avoid reinstalling packages when building Docker image for Python projects?

  16. 16

    Drag forward installed Python packages when upgrading

  17. 17

    how to find which packages are installed system-wide in NixOS?

  18. 18

    How to find out if new versions of npm-packages exists

  19. 19

    How to find out if new versions of npm-packages exists

  20. 20

    How to find out what all standalone packages are installed?

  21. 21

    How to make a file which when exectued will install multiple packages in Ubuntu?

  22. 22

    How to find the list of all available packages along with the lastest version number available in the repositories?

  23. 23

    How to install deb packages which are stored in another manually created deb package?

  24. 24

    How Do I manually remove malformed Packages?

  25. 25

    How Do I manually remove malformed Packages?

  26. 26

    How to download rpm packages manually (without yum)?

  27. 27

    How to list installed packages manually from backports?

  28. 28

    Is there any way to find out which libraries or packages I have already installed in Python?

  29. 29

    upgrading missing packages?

HotTag

Archive