Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 raring/main amd64 Packages
W: Failed to fetch‌​64/Packages 404 Not Found, 

I saw this question and tried this

wget -O ~/fixpackage; chmod +x   ~/fixpackage; sudo ~/fixpackage

it didn't work, any ideas?

share|improve this question

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


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.