Results 1 to 2 of 2

Thread: downgrade gdal package

  1. #1
    Join Date
    Feb 2014
    Beans
    2

    downgrade gdal package

    Hello everybody!
    I am using ubuntu12.04LTS but i need an old version of gdal library (geospatial data abstraction library for ubuntu10.04). The package to be downloaded via terminal is libgdal1-dev. The point is that by default ubuntu12.04 install gdal1.7.0 (1.7.3-6ubuntu3 version) while i need the gdal1.6.0 (according to http://packages.ubuntu.com/lucid/allpackages 1.6.3-3build2 version).
    I tryed to manually downgrade the package after removing gdal1.7.0 and after doing sudo apt-get autoremove with:
    sudo apt-get install libgdal1-dev=1.6.3-3build2.

    Unfortunately the terminal says that can't find the versione1.6.3-3.build2 of the package libgdal1-dev. What's wrong? can anybody help me please?

    thanks very much!

  2. #2
    Join Date
    Aug 2013
    Beans
    4,941

    Re: downgrade gdal package

    It can't find it because there is no such package. The name is libgdal1-dev (not "libgdal1-dev=1.6.3-3build2") the version in the repo is 1.7
    sudo apt-get install fetches the package with the correct name from the repository with whatever version that is in the repository. In this case it is Precise's repository and not Lucid's (and it is shut down already)

    So the procedure to downgrade is: fetch the .deb from http://packages.ubuntu.com/lucid/libgdal1-dev
    then right click to install it. Chances are it won't install because some of the dependencies cannot be met (since all are old versions)

    If in the unlikely event that it installs, then open synaptic (if synaptic is not installed, sudo apt-get install synaptic), search for libgdal1-dev, highlight it and on the top bar click Packages and click 'Lock Version" that way it won't be upgraded.

    Since it is not likely to install you should tell us exactly what program you need it for, there may be ways to work around it.
    Last edited by monkeybrain20122; March 17th, 2014 at 03:35 PM.

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
  •