Skip to content

Aptitude Full-Upgrade Versus Safe-Upgrade

I’ve been running Debian Sid on my new Lenovo Thinkpad T61 that I received about a month ago. It’s been rock solid. However, lately, aptitude update has been keeping a lot of packages back, namely X.org and OpenOffice.org. Curious why, I visited #debian, only to be told to upgrade and RTFM. Nice. So, I upgraded, then set out on my own to find the adequate and appropriate help I was seeking. Surprise, I found several answers on Ubuntuforums.org. Here’s the low down on what I’ve discovered:

  • aptitude safe-upgrade will not upgrade packages if:
    • relied dependencies have not been updated to the required version.
    • installing the upgrade means removing dependencies that other packages need.
  • aptitude full-upgrade will update packages unless:
    • the upgrade removes dependencies that other packages need

In my case, X.org and OpenOffice.org both relied on newer package versions that had not come down the pipe yet, so they were held back. Unfortunately, I made the hasty upgrade, at the request of #debian, before receiving this information. Now, X is extremely unstable. It crashes intermittently, completely unpredicted. So far, I have yet to find what the cause is.

So, here’s my advice: when using aptitude to update/upgrade your system, be conservative, and use ‘aptitude safe-upgrade’ unless you’re adventurous and willing to debug unstable systems.

{ 15 } Comments

  1. bapoumba using Epiphany Epiphany 2.20 on Linux Linux | September 25, 2007 at 1:47 am | Permalink

    Hello!
    full-upgrade is the former dist-upgrade :)

    [Reply]

  2. Anonymous using Mozilla Firefox Mozilla Firefox 2.0.0.6 on Ubuntu Linux Ubuntu Linux | September 25, 2007 at 4:37 am | Permalink

    ..and maybe use a distro that refrains from telling you to RTFM? Just a thought.

    [Reply]

  3. poor man using Debian IceWeasel Debian IceWeasel 2.0.0.6 on Debian GNU/Linux Debian GNU/Linux | September 25, 2007 at 9:16 am | Permalink

    how about running testing, nobody asked you to run the development version :)

    [Reply]

  4. zulu9 using Konqueror Konqueror 3.5 on Debian GNU/Linux Debian GNU/Linux | September 25, 2007 at 9:40 am | Permalink

    debian and esp. #debian do not really support sid. If you run it you are on your own. Anyway, there is a distro dedicated to make sid more useable for mere mortals (with upgrade warnings and support via forum and irc) named sidux.
    Maybe give it a try.

    They recommend (and support) using the classical apt-get dist-upgrade only to upgrade a sid system and always watch for current alerts in their forum or irc-channel before doing so. There are also some small tools to make this more easy (alert icon, update script etc).

    [Reply]

  5. monkey using Mozilla Firefox Mozilla Firefox 2.0.0.7 on Windows Windows XP | September 25, 2007 at 10:55 am | Permalink

    For me this easier to try man xxxx first, then googling, and then irc.

    But using sid is like using an alpha version of ubuntu, it is not recommended for serious work.

    [Reply]

  6. Aaron using Debian IceWeasel Debian IceWeasel 2.0.0.7 on Debian GNU/Linux Debian GNU/Linux | September 25, 2007 at 11:27 am | Permalink

    @bapoumba- Yeah. Which is fine, it’s just the ‘full-upgrade’ that killed me. I knew about it before hand, however.

    @poor man- Ok. I’ll run testing when the 2.6.22 kernel reaches the trunk. Until then, I need Sid.

    @zulu9- apt-get dist-upgrade was the recommendation of someone else, only to remove several gnome packages end leave me further wishing I had never gotten in this mess.

    @monkey- I would recommend Sid over Ubuntu. I have less stability issues and problems with Sid than with Ubuntu, although Dapper is still a beautiful release. With that said, I need the 2.6.22 kernel, and I’m not going to roll my own, as I like what Debian does to it.

    [Reply]

  7. MJ Ray using Mozilla Firefox Mozilla Firefox 2.1.3.1 on Linux Linux | September 25, 2007 at 12:58 pm | Permalink

    Anonymous, the distribution didn’t tell him to RTFM. One support channel did.

    [Reply]

  8. bla using Debian IceWeasel Debian IceWeasel 2.0.0.6 on Debian GNU/Linux Debian GNU/Linux | September 25, 2007 at 2:33 pm | Permalink

    2.6.22 from sid just installs fine in testing.

    [Reply]

  9. Jason using Mozilla Firefox Mozilla Firefox 2.0.0.7 on Mac OS Mac OS X | September 25, 2007 at 4:10 pm | Permalink

    @Anonymous:
    “..and maybe use a distro that refrains from telling you to RTFM? Just a thought.”

    Yeah, that doesn’t exist…

    [Reply]

  10. Wagner Volanin using Mozilla Firefox Mozilla Firefox 2.0.0.6 on Ubuntu Linux Ubuntu Linux | September 26, 2007 at 6:11 am | Permalink

    [Content removed by the discretion of the administrator due to it's nature.]

    [Reply]

  11. Aaron using Mozilla Firefox Mozilla Firefox 2.0.0.6 on Ubuntu Linux Ubuntu Linux | September 26, 2007 at 8:52 am | Permalink

    @Wagner Volanin- This sort of comment is inappropriate for this discussion, and I consider it spam. I’ve removed the content of your comment due to it’s nature. If you wish to reach a large audience through my blog, use the contact link above, and send me an email, and most likely, I will post about it. Thank you.

    [Reply]

  12. James Stansell using Mozilla Firefox Mozilla Firefox 2.0.0.7 on Windows Windows XP | September 27, 2007 at 7:50 am | Permalink

    Running Sid pretty much signifies that “you’re adventurous and willing to debug unstable systems.” Even testing can be adventurous at times.

    As bla said above, you might do better sticking with testing and just installing any additional packages from sid as required. I actually did that with fair results for a few years.

    [Reply]

  13. Matt using Debian IceWeasel Debian IceWeasel 2.0.0.8 on Debian GNU/Linux Debian GNU/Linux | November 29, 2007 at 2:51 pm | Permalink

    “Curious why, I visited #debian, only to be told to upgrade and RTFM. Nice.”

    Oh yeah, I heard THAT!
    That’s one reason why Debian is the worst Linux to use (even though I use it).
    It’s a sad fact that there are far to many people like this. These e-cowards are one reason why Linux will never be as popular as Windows.
    But you know, the openSUSE people are a very helpful crowd. I guess maybe Europeans have much more manners that stoopid amewikans.

    [Reply]

  14. fellini using Mozilla Firefox Mozilla Firefox 2.0.0.14 on Windows Windows XP | August 14, 2008 at 12:11 am | Permalink

    Unfortunately, what makes it difficult for users to achieve competency in various Linux distributions is that enlightened users tend not to have time to share best practices with their peers. Linux software and distributions tend to progress faster than the documentation, so it makes it difficult for some users to correlate rtfms with current versions and best practices. This bog answered my question quite concisely.

    [Reply]

  15. 8cb8 using Mozilla Firefox Mozilla Firefox 2.0.0.11 on Debian GNU/Linux Debian GNU/Linux | October 19, 2008 at 1:18 am | Permalink

    Yeah, the safe-upgrade is a good suggestion. I’ve been running a Debian Testing/Lenny system for a while and am only moderately good at debugging. But I’ve found with the safe-upgrade instead of full-upgrade, I have far fewer problems arise.

    [Reply]

Post a Comment

Your email is never published nor shared. Required fields are marked *

Powered by WP Hashcash