Results 1 to 7 of 7

Thread: [SOLVED] how to downgrade a package in hardy to it's gutsy or feisty version

  1. #1
    Join Date
    Aug 2008
    Beans
    4
    Distro
    Ubuntu 8.04 Hardy Heron

    Question [SOLVED] how to downgrade a package in hardy to it's gutsy or feisty version

    Hello,

    While migrating a LAMP project to ADODB, introducing some MySQL stored procedures, I came across what I think is this bug.

    I'm not 100% sure, but the same app works perfectly on a feisty machine, which has version 5.2.1 for package php-mysql, while my development machine (hardy) has version 5.2.4, and if you read the bug description, it was introduced in 5.2.4.

    I've added the gutsy repositories to my development machine, done apt-get update and them tried to force the gutsy version for php5-mysql from synaptic, since it's version 5.2.3, but once I force that version, the apply button is grayed out.

    I don't have much experience administering Ubuntu, I came to it after 8 years of Red Hat & Friends usage and I've been falling in love with it, but due to my workload, I've only gained experience as an end user, so any help with this issue is greatly appreciated. I'd love to solve this from within the package manager, since I'm sure an update will be available sometime in the future (The link I've included says the bug is already fixed in CVS).

    Thanks in advance for any help.

    Fernando.

  2. #2

    Re: how to downgrade a package in hardy to it's gutsy or feisty version

    Moved to Server Platforms.

    (The link I've included says the bug is already fixed in CVS).
    Is there any reason that you don't want to download from CVS?
    Learning is not attained by chance, it must be sought for with ardor and attended to with diligence. Abigail Adams ( 1744 - 1818 ), 1780;

    My blog Poetry and More Free Ubuntu Magazine

  3. #3
    Join Date
    Aug 2008
    Beans
    4
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: how to downgrade a package in hardy to it's gutsy or feisty version

    Quote Originally Posted by Sef View Post
    Moved to Server Platforms.



    Is there any reason that you don't want to download from CVS?
    My main concern is that Ubuntu is a package based distribution, and I'm trying not to manually change software that's included in the repositories.

    I don't have a problem with compiling code, in fact, that's part of what I do for a living , but I really wouldn't want to apply a fix and then have a global upgrade bring me back to a broken version. That's why I thought installing an older version through apt-get/synaptic was the way to go.

    I had to do this with wine, the last version has a bug that prevents printers from working in some situations, and since I need to test sites in Internet Explorer and use the Print to File feature, I just downgraded it, and have been leaving it unmarked at every update since, until a new (and hopefully fixed) version comes along.

    Of course, if there's no way to install the gutsy or feisty version in hardy, I'll have to go with your option.

    Thanks for your reply!

    Fernando.

  4. #4
    Join Date
    Nov 2006
    Location
    Belgium
    Beans
    3,025
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: how to downgrade a package in hardy to it's gutsy or feisty version

    The mechanism you're looking for is called apt-pinning.
    Forcing apt to do a downgrade is hard, it may be easier to uninstall the current version, and then pin and install the older version so that it's not upgraded until you want it to be.

    Here's a howto:
    http://www.debian.org/doc/manuals/ap...pt-get.en.html
    the relevant parts are 3.8 and 3.10, but you'll want to read the whole chapter for background.

    It's a Debian howto, but technically it would work just the same on Ubuntu.
    But as Ubuntu is designed to resolve dependencies within a release, not across releases, there's no guarantee this will work.

    Have fun.

  5. #5
    Join Date
    Aug 2008
    Beans
    4
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: how to downgrade a package in hardy to it's gutsy or feisty version

    Quote Originally Posted by koenn View Post
    The mechanism you're looking for is called apt-pinning.
    Forcing apt to do a downgrade is hard, it may be easier to uninstall the current version, and then pin and install the older version so that it's not upgraded until you want it to be.

    Here's a howto:
    http://www.debian.org/doc/manuals/ap...pt-get.en.html
    the relevant parts are 3.8 and 3.10, but you'll want to read the whole chapter for background.

    It's a Debian howto, but technically it would work just the same on Ubuntu.
    But as Ubuntu is designed to resolve dependencies within a release, not across releases, there's no guarantee this will work.

    Have fun.
    Thank you very much!
    I'm giving this a try right now, so you'll know if it works just the same in Ubuntu

    Regards

  6. #6
    Join Date
    Aug 2008
    Beans
    4
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: how to downgrade a package in hardy to it's gutsy or feisty version

    Quote Originally Posted by koenn View Post

    It's a Debian howto, but technically it would work just the same on Ubuntu.
    But as Ubuntu is designed to resolve dependencies within a release, not across releases, there's no guarantee this will work.

    Have fun.
    It works, all I had to do was create an /etc/apt/apt.conf file
    with the proper APT::default-release="release"; entry (hardy for me),
    add the additional repository(ies) to my sources, and begin forcing versions.

    The only issue is that apt-get didn't resolve the dependencies while downgrading, so I had to manually downgrade every involved package, but it still worked so I'm really happy with it.

    Thanks again!

  7. #7
    Join Date
    Nov 2006
    Location
    Belgium
    Beans
    3,025
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: [SOLVED] how to downgrade a package in hardy to it's gutsy or feisty version

    glad to hear you got it working

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •