ObsPy installation on Ubuntu

Hello,

I am trying to install obspy on ubuntu, but got problems.

My Ubuntu system is 10.04, 32 bit. Please see the following release information:

administer@seisapp:~$ cat /etc/*-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=10.04
DISTRIB_CODENAME=lucid
DISTRIB_DESCRIPTION="Ubuntu 10.04.1 LTS"

Then I addup a new line: deb http://deb.obspy.org lucid main at the end of /etc/apt/sources.list (as root).

But when I run wget, then I got error, [please see the output:

administer@seisapp:/etc/apt$ sudo wget --quiet -O - http://obspy.org/export/2889/obspy/trunk/misc/debian/public.key | apt-key add -
gpg: no writable keyring found: eof
gpg: error reading `-': general error
gpg: import from `-' failed: general error

any idea?
Thanks in advance,
Xiao

Hi Xiao,

as the wiki states you need to be root, using sudo before but not after
the pipe is the problem I think. The wget does not need root rights
necessarily, the apt command after it does, though.

best,
Tobias

Hi Tobias,

Thanks for the clarification.

I try the following script, then it works.

sudo wget --quiet -O - http://obspy.org/export/2889/obspy/trunk/misc/debian/public.key | sudo apt-key add -

Regards,

xiao