Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm following this manual to Configuring Postgresql 9.1 and PostGIS 2 on Ubuntu 13 in Amazon AWS, when executing

sudo apt-get update

I get lot of errors and warnings for example:

Err http://ppa.launchpad.net raring/main amd64 Packages
W: Failed to fetch http://ppa.launchpad.net/sharpie/forscience/ubuntu/dists/raring/main/binary-amd‌​64/Packages 404 Not Found, 

I saw this question and tried this

wget -O ~/fixpackage https://dl.dropbox.com/u/8850924/fixpackage; chmod +x   ~/fixpackage; sudo ~/fixpackage

it didn't work, any ideas?

share|improve this question

1 Answer 1

Sharpie's "For Science" PPA has packages only for Ubuntu Precise. You are running on Raring Ringtail (13.04). That is why it's throwing a 404 Not Found. Remove this PPA

sudo apt-add-repository --remove ppa:sharpie/for-science

Then like I've explained in my blog post add the PostGIS ppa

sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable

and then install the postgresql-9.1-postgis-2.0-scripts package

sudo apt-get install postgresql-9.1-postgis-2.0-scripts

This should install everything from postgresql-server to the required PostGIS packages. After you're done you should be able to connect to a database with psql and be able to run this

create extension postgis;

If this works, then you should be good to go.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.