Я пытаюсь установить Postgres 9.3 с инструкциями здесь . Но установка не удалась.
[ubuntu:~]$ lsb_release -c
Codename: raring
[ubuntu:~]$
[ubuntu:~]$ cat /etc/apt/sources.list.d/pgdg.list
deb http://apt.postgresql.org/pub/repos/apt/ raring-pgdg main
[ubuntu:~]$
[ubuntu:~]$ sudo apt-get update
Hit http://us-west-2.ec2.archive.ubuntu.com raring Release.gpg
Hit http://us-west-2.ec2.archive.ubuntu.com raring-updates Release.gpg
Hit http://us-west-2.ec2.archive.ubuntu.com raring Release
Hit http://us-west-2.ec2.archive.ubuntu.com raring-updates Release
Hit http://us-west-2.ec2.archive.ubuntu.com raring/main Sources
Hit http://us-west-2.ec2.archive.ubuntu.com raring/universe Sources
Hit http://us-west-2.ec2.archive.ubuntu.com raring/main amd64 Packages
Hit http://us-west-2.ec2.archive.ubuntu.com raring/universe amd64 Packages
Hit http://us-west-2.ec2.archive.ubuntu.com raring/main Translation-en
Hit http://us-west-2.ec2.archive.ubuntu.com raring/universe Translation-en
Hit http://us-west-2.ec2.archive.ubuntu.com raring-updates/main Sources
Hit http://us-west-2.ec2.archive.ubuntu.com raring-updates/universe Sources
Hit http://us-west-2.ec2.archive.ubuntu.com raring-updates/main amd64 Packages
Hit http://us-west-2.ec2.archive.ubuntu.com raring-updates/universe amd64 Packages
Hit http://us-west-2.ec2.archive.ubuntu.com raring-updates/main Translation-en
Hit http://us-west-2.ec2.archive.ubuntu.com raring-updates/universe Translation-en
Ign http://us-west-2.ec2.archive.ubuntu.com raring/main Translation-en_US
Hit http://security.ubuntu.com raring-security Release.gpg
Ign http://us-west-2.ec2.archive.ubuntu.com raring/universe Translation-en_US
Ign http://us-west-2.ec2.archive.ubuntu.com raring-updates/main Translation-en_US
Ign http://us-west-2.ec2.archive.ubuntu.com raring-updates/universe Translation-en_US
Ign http://apt.postgresql.org raring-pgdg Release.gpg
Hit http://security.ubuntu.com raring-security Release
Ign http://apt.postgresql.org raring-pgdg Release
Hit http://security.ubuntu.com raring-security/main Sources
Hit http://security.ubuntu.com raring-security/universe Sources
Hit http://security.ubuntu.com raring-security/main amd64 Packages
Hit http://security.ubuntu.com raring-security/universe amd64 Packages
Hit http://security.ubuntu.com raring-security/main Translation-en
Hit http://security.ubuntu.com raring-security/universe Translation-en
Ign http://security.ubuntu.com raring-security/main Translation-en_US
Ign http://security.ubuntu.com raring-security/universe Translation-en_US
Err http://apt.postgresql.org raring-pgdg/main amd64 Packages
404 Not Found [IP: 217.196.149.55 80]
Ign http://apt.postgresql.org raring-pgdg/main Translation-en_US
Ign http://apt.postgresql.org raring-pgdg/main Translation-en
W: Failed to fetch http://apt.postgresql.org/pub/repos/apt/dists/raring-pgdg/main/binary-amd64/Packages 404 Not Found [IP: 217.196.149.55 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.
[ubuntu:~]$
[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'
[ubuntu:~]$
Я также попытался поместить эти строки в /etc/apt/sources.list. Но это тоже не работает.
deb mirror://mirrors.ubuntu.com/mirrors.txt precise main restricted universe multiverse
deb mirror://mirrors.ubuntu.com/mirrors.txt precise-updates main restricted universe multiverse
deb mirror://mirrors.ubuntu.com/mirrors.txt precise-backports main restricted universe multiverse
deb mirror://mirrors.ubuntu.com/mirrors.txt precise-security main restricted universe multiverse
Прочтите FAQ , он отвечает на ваши часто задаваемые вопросы:
Я использую Ubuntu не из LTS версии
Мы решили поддерживать только LTS (долгосрочная поддержка) релизы Ubuntu, потому что в противном случае нам бы пришлось поддерживать слишком много дистрибутивов параллельно. Как правило, вы можете использовать пакеты из релиза LTS, предшествовавшего вашему релизу, то есть на raring (13.04), вы можете использовать точный-pgdg (12.04).
Существует известная несовместимость между 12.04 и более поздними выпусками, включающими пакет «logrotate». Возможные обходные пути:
- использовать пакет logrotate из точного или
- удалить logrotate.
Мы ищем более удачное решение этой проблемы.
BLOCKQUOTE>