Sign up ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

I'm trying to install Postgres 9.3 with the instructions here. But the install is failing.

[ubuntu:~]$ lsb_release -c
Codename:   raring

[ubuntu:~]$ cat /etc/apt/sources.list.d/pgdg.list 
deb raring-pgdg main

[ubuntu:~]$ sudo apt-get update
Hit raring Release.gpg
Hit raring-updates Release.gpg                                     
Hit raring Release                                                 
Hit raring-updates Release                                                                                      
Hit raring/main Sources                                                                                         
Hit raring/universe Sources                                                                                     
Hit raring/main amd64 Packages                                                           
Hit raring/universe amd64 Packages                                                       
Hit raring/main Translation-en                                                           
Hit raring/universe Translation-en                                                       
Hit raring-updates/main Sources                                                          
Hit raring-updates/universe Sources                                                      
Hit raring-updates/main amd64 Packages                                                   
Hit raring-updates/universe amd64 Packages                                               
Hit raring-updates/main Translation-en                                                   
Hit raring-updates/universe Translation-en                                               
Ign raring/main Translation-en_US                                                        
Hit raring-security Release.gpg                                                                       
Ign raring/universe Translation-en_US
Ign raring-updates/main Translation-en_US
Ign raring-updates/universe Translation-en_US
Ign raring-pgdg Release.gpg
Hit raring-security Release
Ign raring-pgdg Release
Hit raring-security/main Sources
Hit raring-security/universe Sources
Hit raring-security/main amd64 Packages
Hit raring-security/universe amd64 Packages
Hit raring-security/main Translation-en
Hit raring-security/universe Translation-en
Ign raring-security/main Translation-en_US
Ign raring-security/universe Translation-en_US
Err raring-pgdg/main amd64 Packages
  404  Not Found [IP: 80]
Ign raring-pgdg/main Translation-en_US
Ign raring-pgdg/main Translation-en
W: Failed to fetch  404  Not Found [IP: 80]

E: Some index files failed to download. They have been ignored, or old ones used instead.

[ubuntu:~]$ sudo apt-get install postgresql-9.3 pgadmin3
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package postgresql-9.3
E: Couldn't find any package by regex 'postgresql-9.3'

I've also tried putting these lines in /etc/apt/sources.list. But that doesn't work either.

deb mirror:// precise main restricted universe multiverse
deb mirror:// precise-updates main restricted universe multiverse
deb mirror:// precise-backports main restricted universe multiverse
deb mirror:// precise-security main restricted universe multiverse
share|improve this question
Amy reason to not install Postgres from Ubuntu's repositories? The repository you added only provides packages for older versions of Ubuntu. Read the page you linked yourself in your question! – gertvdijk Oct 14 '13 at 21:49

1 Answer 1

up vote 5 down vote accepted

Please read the FAQ, it answers your FAQ:

I am using a non-LTS release of Ubuntu

We chose to support only the LTS (long term support) releases of Ubuntu because otherwise we'd need to support too many distributions in parallel. Generally, you can use the packages from the LTS release that predates your release, i.e. on raring (13.04), you would use precise-pgdg (12.04).

There is a known incompatibility between 12.04 and later releases involving the "logrotate" package. Possible workarounds are:

  • use the logrotate package from precise, or
  • uninstall logrotate.

We are looking into providing a nicer solution for this problem.

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.