apt-get update ができない

apt-get update ができない

次の簡単なガイドに従って、Ubuntu 14.04 に postgreSQL BDR をインストールしようとしています。http://bdr-project.org/docs/next/installation-packages.html

提供された手順を実行しました:

  1. 追加deb http://apt.postgresql.org/pub/repos/apt/ trusty-pgdg mainする/etc/apt/sources.list.d/2ndquadrant.list

  2. リポジトリキーをインポートしています

  3. sudo apt-get update

ただし、何らかの理由で、最後のコマンドを実行すると、次の出力が生成されます。 https://gist.github.com/mbajur/416588a165d62c17e9f0

さまざまなパッケージに対してまったく同じチュートリアルを見つけることができるので、そのソースを使用するのがかなり一般的なことのようです。

このような問題に対処する一般的な方法は何ですか? ヒントがあれば、ぜひ教えてください!


編集#1

私のリストファイル:

/etc/apt/sources.list

deb mirror://mirrors.ubuntu.com/mirrors.txt trusty main restricted universe multiverse
deb mirror://mirrors.ubuntu.com/mirrors.txt trusty-updates main restricted universe multiverse
deb mirror://mirrors.ubuntu.com/mirrors.txt trusty-backports main restricted universe multivers      deb mirror://mirrors.ubuntu.com/mirrors.txt trusty-security main restricted universe multiverse

/etc/apt/sources.list.d/apt_postgresql_org_pub_repos_apt.list

deb http://apt.postgresql.org/pub/repos/apt/ trusty-pgdg main

/etc/apt/sources.list.d/2ndquadrant.list

deb http://apt.postgresql.org/pub/repos/apt/ trusty-pgdg main

最後の 2 つのファイルに重複した内容があることに気付きました (これが問題なのでしょうか?)。ただし、指定されたパッケージをインストールできないので、何か問題があるようです。


編集#2

私は AB の回答を受け入れていますが、実際の問題は、postgres-bdr の担当者が間違った deb URL を提供したようです。 ではなく であるべきですdeb http://packages.2ndquadrant.com/bdr/apt/ wheezy-2ndquadrant maindeb http://apt.postgresql.org/pub/repos/apt/ wheezy-pgdg mainそのため、パッケージをインストールできませんでしたpostgresql-9.4-udr-plugin

答え1

これらは2つの異なるものです。リポジトリ

deb http://apt.postgresql.org/pub/repos/apt/ trusty-pgdg main

ご覧の通り動作します要旨

問題は、鏡がftp.unina.it存在しないことだリスト定義されたミラーの。

別のミラーまたはメインサーバーを使用する

sudo sed -i 's/mirror:\/\/mirrors.ubuntu.com\/mirrors.txt/http:\/\/archive.ubuntu.com\/ubuntu/' /etc/apt/sources.list

取り除く/etc/apt/sources.list.d/apt_postgresql_org_pub_repos_apt.list

内容は、etc/apt/sources.list.d/2ndquadrant.list

sudo rm /etc/apt/sources.list.d/apt_postgresql_org_pub_repos_apt.list

ソフトウェアソースを更新する

sudo apt-get update

関連情報