Как мне установить Postgresql 8.4 для Ubuntu Hardy 8.04?
sudo apt-get install postgresql
установит postgreSQL 8.3
Я пытался установить отдельные пакеты из
http: //www.ubuntuupdates.org/package/core/hardy/main/backports/postgresql-8.4
но не удалось разрешить зависимости
Затем попытался добавить
[ 110] - /etc/apt/sources.list
Запуск sudo apt-get update
показал
W: Failed to fetch http://de.archive.ubuntu.com/ubuntu/dists/hardy-updates/main/binary-amd64/Packages.bz2 Hash Sum mismatch
W: Failed to fetch http://de.archive.ubuntu.com/ubuntu/dists/hardy-updates/universe/binary-amd64/Packages.bz2 Hash Sum mismatch
E: Some index files failed to download, they have been ignored, or old ones used instead.
Затем команда sudo apt-get install postgresql-8.4
Reading package lists... Done
Building dependency tree
Reading state information... Done
postgresql-8.4 is already the newest version.
You might want to run âapt-get -f installâ to correct these:
The following packages have unmet dependencies.
libpq-dev: Depends: libpq5 (= 8.3.9-0ubuntu8.04) but 8.4.6-1~hardy1 is to be installed
postgresql-8.4: Depends: postgresql-common (>= 109~) but it is not going to be installed
postgresql-client-8.4: Depends: postgresql-client-common (>= 104~) but it is not going to be installed
E: Unmet dependencies. Try âapt-get -f installâ with no packages (or specify a solution).
Любая помощь приветствуется
Похоже, что немецкое зеркало, которое вы используете, не доставило. Вы можете повторить попытку или, если проблема не устранена, попробовать другое зеркало (смените de.archive.ubuntu.com
, скажем, uk.archive.ubuntu.com
).
Важно сообщение «Несоответствие хэш-суммы» - попробуйте другой сервер вместо de (который, я думаю, расположен в Германии) Попробуйте вместо этого добавить серверы Великобритании:
deb http://uk.archive.ubuntu.com/ubuntu hardy-backports main
deb http://uk.archive.ubuntu.com/ubuntu hardy-updates main restricted universe
deb http://uk.archive.ubuntu.com/ubuntu hardy-security main restricted universe
Затем sudo apt-get update && apt-get install postgresql-8.4