[Ubuntu] should I shift to ubuntu 12.04 precise for installing gis packages?

Chao YUE chaoyuejoy at gmail.com
Mon May 28 10:10:36 PDT 2012


by the way, the content at :
https://launchpad.net/~ubuntugis/+archive/ubuntugis-unstable
You can update your system with unsupported packages from this untrusted
PPA by adding *ppa:ubuntugis/ubuntugis-unstable* to your system's Software
Sources. (Read about
installing<https://launchpad.net/+help-soyuz/ppa-sources-list.html>
)[help information in the brackets are a little confusing.]

best regards,

Chao

2012/5/28 Chao YUE <chaoyuejoy at gmail.com>

> Dear all,
>
> It's the first time I send to this mailing list questions. It might be not
> directly related but I hope I can get some suggestions.
> from here http://trac.osgeo.org/ubuntugis/wiki/UbuntuGISRepository.  I
> tried to add repository:
>
> sudo add-apt-repository ppa:ubuntugis/ppa
> sudo apt-get update
>
> But when I try "sudo get-apt install gdal" and it prompts:
> E: Unable to locate package gdal
>
> So I guess this is because my ubuntu version (11.04 natty) is not
> supported (http://trac.osgeo.org/ubuntugis/wiki/SupportedDistributions).
> but when I use "sudo apt-get update" to update my repository and I get the
> error like:
> ...
> Reading package lists... Done
> W: GPG error: http://qgis.org natty Release: The following signatures
> couldn't be verified because the public key is not available: NO_PUBKEY
> 1F9ADD375CA44993
> Is it because of this problem that I cannot install?
>
> So, should I update my system to 12.04 to be able to install these
> packages? I am a PhD student in geoscience and not a developer. So I don't
> actually know what exactly I need in terms of GIS analysis in the future.
> currently I tried to extract from a global NetCDF file some data by a
> polygon in another shapefile and that's why I begin to have a look of GDAL.
> I checked on line that 12.04 use python 2.7.3.  For now I have numpy,
> matplotlib, basemap, pandas, NetCDF4 python libraries on my computer. I
> just hope I don't spend another few days fixing python libraries problems
> after I upgrade the system....
>
>
> another problem is, following instructions on
> http://hub.qgis.org/projects/quantum-gis/wiki/Download:
>
> There is support for Natty, I just need to add /ect/apt/sources.list file:
>
> deb     http://qgis.org/debian natty main
> deb-src http://qgis.org/debian natty main
>
> But then when I try to install:
>
> Failed to fetch
> http://ppa.launchpad.net/ubuntugis/ppa/ubuntu/pool/main/q/qgis/python-qgis-common_1.7.4-1~natty1_all.deb
> Size mismatch
> Failed to fetch
> http://ppa.launchpad.net/ubuntugis/ppa/ubuntu/pool/main/q/qgis/qgis-providers-common_1.7.4-1~natty1_all.deb
> Size mismatch
> E: Unable to fetch some archives, maybe run apt-get update or try with
> --fix-missing?
>
> Then I tried: chaoyue at chaoyue-Aspire-4750:/mnt/f$ sudo apt-get install
> qgis --fix-missing, it gave:
> Failed to fetch
> http://ppa.launchpad.net/ubuntugis/ppa/ubuntu/pool/main/q/qgis/python-qgis-common_1.7.4-1~natty1_all.deb
> Size mismatch
> Failed to fetch
> http://ppa.launchpad.net/ubuntugis/ppa/ubuntu/pool/main/q/qgis/qgis-providers-common_1.7.4-1~natty1_all.deb
> Size mismatch
> Unable to correct missing packages.
>
>
> Thanks for any ideas or discussions/suggestions...
>
> Chao
>
> ---------- Forwarded message ----------
> From: Etienne Tourigny <etourigny.dev at gmail.com>
> Date: 2012/5/27
> Subject: Re: [gdal-dev] __main__.gdal_config_error when trying to install
> gdal
> To: Chao YUE <chaoyuejoy at gmail.com>
> Cc: Even Rouault <even.rouault at mines-paris.org>, gdal-dev at lists.osgeo.org
>
>
> From the instructions at
> https://launchpad.net/~ubuntugis/+archive/ppa<https://launchpad.net/%7Eubuntugis/+archive/ppa>
>
> Somehow the instructions are confusing as they contain instructions to
> use the gwibber-daily ppa, but you should use the ubuntugis ppa
>
> sudo add-apt-repository ppa:ubuntugis/ppa
> sudo apt-get update
> sudo apt-get install gdal
>
> now  depending on your ubuntu version, you may nee to install either
> ubuntugis-stable (ok for oneiric) or ubuntugis-unstable (for Precise)
>
> By the way, this discussion should be in the ubuntugis mailing list as
> it refers to installing gdal on ubuntu.
>
> Etienne
>
>
>
>
> On Sun, May 27, 2012 at 6:22 PM, Chao YUE <chaoyuejoy at gmail.com> wrote:
> > Dear Even,
> >
> > Did you use ubuntugis before? I have one question, I followed the
> > instruction to add ppa:gwibber-daily/ppa to my repository.
> >
> > Then I use sudo apt-get update to install the packages. Yet can I install
> > only one package (let's say gdal)?
> >
> > I do a little search online and some people say I can use directly
> > sudo apt-get install gdal
> >
> > but it reports E: Unable to locate package gdal, I cannot find the
> package
> > in my Ubuntu software center either...
> >
> > thanks,
> >
> > Chao
> >
> >
> >
> > 2012/5/27 Even Rouault <even.rouault at mines-paris.org>
> >>
> >> Selon Chao YUE <chaoyuejoy at gmail.com>:
> >>
> >> > Thanks Etienne, then I guess I will have the problem of python
> version?
> >> > I
> >> > guess I will need a virtual python environment (or something) if I
> need
> >> > python 3 for newer versions?
> >>
> >> No, the page tells that Python 3 is supported since GDAL 1.7, but not
> that
> >> it is
> >> required. Python 2.X is still supported.
> >>
> >> >
> >> > best,
> >> >
> >> > Chao
> >> >
> >> > 2012/5/27 Etienne Tourigny <etourigny.dev at gmail.com>
> >> >
> >> > > Hi chao
> >> > >
> >> > > you should install gdal using the ubuntugis (stable or unstable)
> >> > > repository . 1.6.3 is really old, plus you shouldn't install the
> >> > > debian packages on ubuntu.
> >> > >
> >> > > see:
> >> > > https://launchpad.net/~ubuntugis
> >> > > http://trac.osgeo.org/gdal/wiki/DownloadingGdalBinaries
> >> > >
> >> > > If you really have to build it see:
> >> > > http://trac.osgeo.org/gdal/wiki/BuildHints
> >> > >
> >> > > Etienne
> >> > >
> >> > > On Sun, May 27, 2012 at 5:39 PM, Chao YUE <chaoyuejoy at gmail.com>
> >> > > wrote:
> >> > > > Finally I managed to install gdal 1.6.3 using a debien package
> (and
> >> > > > I
> >> > > have
> >> > > > to install libgdal1-1.6.0 before ). But I read from
> >> > > > http://trac.osgeo.org/gdal/wiki/GdalOgrInPython
> >> > > > saying that from version 1.7.0, python 3 is needed.
> >> > > >
> >> > > > thanks et cheers,
> >> > > >
> >> > > > Chao
> >> > > >
> >> > > >
> >> > > > 2012/5/27 Chao YUE <chaoyuejoy at gmail.com>
> >> > > >>
> >> > > >> Dear all,
> >> > > >>
> >> > > >> I am new to gdal and when I try to install it on my ubuntu
> >> > > >> computer, I
> >> > > >> have the following error. It occurs either with pip or with
> manual
> >> > > python
> >> > > >> setup.py build.
> >> > > >> could anyone give me some clue on this problem? thanks in
> advance.
> >> > > >>
> >> > > >> Chao
> >> > > >>
> >> > > >> chaoyue at chaoyue-Aspire-4750:~/python/python_lib/build/gdal$ sudo
> >> > > >> python
> >> > > >> setup.py install
> >> > > >> [sudo] password for chaoyue:
> >> > > >> running install
> >> > > >> Checking .pth file support in
> >> > > >> /usr/local/lib/python2.7/dist-packages/
> >> > > >> /usr/bin/python -E -c pass
> >> > > >> TEST PASSED: /usr/local/lib/python2.7/dist-packages/ appears to
> >> > > >> support
> >> > > >> .pth files
> >> > > >> running bdist_egg
> >> > > >> running egg_info
> >> > > >> writing GDAL.egg-info/PKG-INFO
> >> > > >> writing top-level names to GDAL.egg-info/top_level.txt
> >> > > >> writing dependency_links to GDAL.egg-info/dependency_links.txt
> >> > > >> Traceback (most recent call last):
> >> > > >>   File "setup.py", line 267, in <module>
> >> > > >>     ext_modules = ext_modules )
> >> > > >>   File "/usr/lib/python2.7/distutils/core.py", line 152, in setup
> >> > > >>     dist.run_commands()
> >> > > >>   File "/usr/lib/python2.7/distutils/dist.py", line 953, in
> >> > > >> run_commands
> >> > > >>     self.run_command(cmd)
> >> > > >>   File "/usr/lib/python2.7/distutils/dist.py", line 972, in
> >> > > >> run_command
> >> > > >>     cmd_obj.run()
> >> > > >>   File
> >> > > >> "/usr/lib/python2.7/dist-packages/setuptools/command/install.py",
> >> > > >> line 73, in run
> >> > > >>     self.do_egg_install()
> >> > > >>   File
> >> > > >> "/usr/lib/python2.7/dist-packages/setuptools/command/install.py",
> >> > > >> line 93, in do_egg_install
> >> > > >>     self.run_command('bdist_egg')
> >> > > >>   File "/usr/lib/python2.7/distutils/cmd.py", line 326, in
> >> > > >> run_command
> >> > > >>     self.distribution.run_command(command)
> >> > > >>   File "/usr/lib/python2.7/distutils/dist.py", line 972, in
> >> > > >> run_command
> >> > > >>     cmd_obj.run()
> >> > > >>   File
> >> > > "/usr/lib/python2.7/dist-packages/setuptools/command/bdist_egg.py",
> >> > > >> line 172, in run
> >> > > >>     self.run_command("egg_info")
> >> > > >>   File "/usr/lib/python2.7/distutils/cmd.py", line 326, in
> >> > > >> run_command
> >> > > >>     self.distribution.run_command(command)
> >> > > >>   File "/usr/lib/python2.7/distutils/dist.py", line 972, in
> >> > > >> run_command
> >> > > >>     cmd_obj.run()
> >> > > >>   File
> >> > > "/usr/lib/python2.7/dist-packages/setuptools/command/egg_info.py",
> >> > > >> line 179, in run
> >> > > >>     self.find_sources()
> >> > > >>   File
> >> > > "/usr/lib/python2.7/dist-packages/setuptools/command/egg_info.py",
> >> > > >> line 254, in find_sources
> >> > > >>     mm.run()
> >> > > >>   File
> >> > > "/usr/lib/python2.7/dist-packages/setuptools/command/egg_info.py",
> >> > > >> line 308, in run
> >> > > >>     self.add_defaults()
> >> > > >>   File
> >> > > "/usr/lib/python2.7/dist-packages/setuptools/command/egg_info.py",
> >> > > >> line 332, in add_defaults
> >> > > >>     sdist.add_defaults(self)
> >> > > >>   File
> >> > > >> "/usr/lib/python2.7/dist-packages/setuptools/command/sdist.py",
> >> > > >> line 191, in add_defaults
> >> > > >>     build_ext = self.get_finalized_command('build_ext')
> >> > > >>   File "/usr/lib/python2.7/distutils/cmd.py", line 312, in
> >> > > >> get_finalized_command
> >> > > >>     cmd_obj.ensure_finalized()
> >> > > >>   File "/usr/lib/python2.7/distutils/cmd.py", line 109, in
> >> > > >> ensure_finalized
> >> > > >>     self.finalize_options()
> >> > > >>   File "setup.py", line 164, in finalize_options
> >> > > >>     self.gdaldir = self.get_gdal_config('prefix')
> >> > > >>   File "setup.py", line 144, in get_gdal_config
> >> > > >>     return fetch_config(option)
> >> > > >>   File "setup.py", line 97, in fetch_config
> >> > > >>     raise gdal_config_error, e""")
> >> > > >>   File "<string>", line 4, in <module>
> >> > > >> __main__.gdal_config_error: [Errno 2] No such file or directory
> >> > > >>
> >> > > >> --
> >> > > >>
> >> > > >>
> >> > >
> >> >
> >>
> >>
> ***********************************************************************************
> >> > > >> Chao YUE
> >> > > >> Laboratoire des Sciences du Climat et de l'Environnement
> >> > > >> (LSCE-IPSL)
> >> > > >> UMR 1572 CEA-CNRS-UVSQ
> >> > > >> Batiment 712 - Pe 119
> >> > > >> 91191 GIF Sur YVETTE Cedex
> >> > > >> Tel: (33) 01 69 08 29 02; Fax:01.69.08.77.16
> >> > > >>
> >> > > >>
> >> > >
> >> >
> >>
> >>
> ************************************************************************************
> >> > > >>
> >> > > >
> >> > > >
> >> > > >
> >> > > > --
> >> > > >
> >> > >
> >> >
> >>
> >>
> ***********************************************************************************
> >> > > > Chao YUE
> >> > > > Laboratoire des Sciences du Climat et de l'Environnement
> (LSCE-IPSL)
> >> > > > UMR 1572 CEA-CNRS-UVSQ
> >> > > > Batiment 712 - Pe 119
> >> > > > 91191 GIF Sur YVETTE Cedex
> >> > > > Tel: (33) 01 69 08 29 02; Fax:01.69.08.77.16
> >> > > >
> >> > >
> >> >
> >>
> >>
> ************************************************************************************
> >> > > >
> >> > > >
> >> > > > _______________________________________________
> >> > > > gdal-dev mailing list
> >> > > > gdal-dev at lists.osgeo.org
> >> > > > http://lists.osgeo.org/mailman/listinfo/gdal-dev
> >> > >
> >> >
> >> >
> >> >
> >> > --
> >> >
> >>
> >>
> ***********************************************************************************
> >> > Chao YUE
> >> > Laboratoire des Sciences du Climat et de l'Environnement (LSCE-IPSL)
> >> > UMR 1572 CEA-CNRS-UVSQ
> >> > Batiment 712 - Pe 119
> >> > 91191 GIF Sur YVETTE Cedex
> >> > Tel: (33) 01 69 08 29 02; Fax:01.69.08.77.16
> >> >
> >>
> >>
> ************************************************************************************
> >> >
> >>
> >>
> >
> >
> >
> > --
> >
> ***********************************************************************************
> > Chao YUE
> > Laboratoire des Sciences du Climat et de l'Environnement (LSCE-IPSL)
> > UMR 1572 CEA-CNRS-UVSQ
> > Batiment 712 - Pe 119
> > 91191 GIF Sur YVETTE Cedex
> > Tel: (33) 01 69 08 29 02; Fax:01.69.08.77.16
> >
> ************************************************************************************
> >
>
>
>
> --
>
> ***********************************************************************************
> Chao YUE
> Laboratoire des Sciences du Climat et de l'Environnement (LSCE-IPSL)
> UMR 1572 CEA-CNRS-UVSQ
> Batiment 712 - Pe 119
> 91191 GIF Sur YVETTE Cedex
> Tel: (33) 01 69 08 29 02; Fax:01.69.08.77.16
>
> ************************************************************************************
>
>
>
>
> --
>
> ***********************************************************************************
> Chao YUE
> Laboratoire des Sciences du Climat et de l'Environnement (LSCE-IPSL)
> UMR 1572 CEA-CNRS-UVSQ
> Batiment 712 - Pe 119
> 91191 GIF Sur YVETTE Cedex
> Tel: (33) 01 69 08 29 02; Fax:01.69.08.77.16
>
> ************************************************************************************
>
>


-- 
***********************************************************************************
Chao YUE
Laboratoire des Sciences du Climat et de l'Environnement (LSCE-IPSL)
UMR 1572 CEA-CNRS-UVSQ
Batiment 712 - Pe 119
91191 GIF Sur YVETTE Cedex
Tel: (33) 01 69 08 29 02; Fax:01.69.08.77.16
************************************************************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/ubuntu/attachments/20120528/56747f34/attachment-0001.html>


More information about the Ubuntu mailing list