2016-03-25 9 views
-1

nodejsをインストールしようとしていますが、失敗し続けます。だから私はnodejsをアンインストールして、sudo apt-get updateがまだ失敗することを知りました。私がpostgresqlを使用したのはずっと長いことです。あなたが見ることができるようにpostgresqlでsudo apt-get updateが失敗する

Get:41 http://ph.archive.ubuntu.com vivid-updates/universe Translation-en [81.6 kB]               
Err http://apt.postgresql.org precise-pgdg InRelease                      

Err http://apt.postgresql.org precise-pgdg Release.gpg 
    Cannot initiate the connection to apt.postgresql.org:80 (2a00:f10:111:50::228). - connect (101: Network is unreachable) [IP: 2a00:f10:111:50::228 80] 
Fetched 14.4 MB in 6min 3s (39.5 kB/s) 
Reading package lists... Done 
W: Failed to fetch http://apt.postgresql.org/pub/repos/apt/dists/precise-pgdg/InRelease 

W: Failed to fetch http://dl.google.com/linux/chrome/deb/dists/stable/Release Unable to find expected entry 'main/binary-i386/Packages' in Release file (Wrong sources.list entry or malformed file) 

W: Failed to fetch http://ppa.launchpad.net/chris-lea/node.js/ubuntu/dists/vivid/main/binary-amd64/Packages 404 Not Found 

W: Failed to fetch http://ppa.launchpad.net/chris-lea/node.js/ubuntu/dists/vivid/main/binary-i386/Packages 404 Not Found 

W: Failed to fetch http://apt.postgresql.org/pub/repos/apt/dists/precise-pgdg/Release.gpg Cannot initiate the connection to apt.postgresql.org:80 (2a00:f10:111:50::228). - connect (101: Network is unreachable) [IP: 2a00:f10:111:50::228 80] 

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

は、最初の行が成功し、それ以上更新の残り:しかし、ここで私はsudo apt-getを更新中のエラーです。 2行目でエラーが発生しました。私はどこに行くべきか分からない。私を助けてください。 sudo apt-get updateに問題があるため、何も進めませんでした。

+0

ないプログラミングの質問、これが重複する可能性を:http://askubuntu.com/questions/329450/e-some-index-files-failed-to-download-they -have-been-ignored-or-old-ones-used- – spicyramen

+0

ああ、私はstackoverflowとaskubuntuが混在しています。 私はaskubuntuでこれを尋ねます。ありがとう。 しかし、これは私の問題を解決しないので、これはリンクと同じ質問ではないと思います。 –

+0

私はaskubuntuでこれを尋ねました。これで申し訳ありません。この投稿を削除する必要がありますか? @spicyramen –

答えて

0

これを試してみてください:

sudo apt-get update 

sudo apt-get install -y build-essential 

sudo apt-get install curl 

curl -sL https://deb.nodesource.com/setup_5.x | sudo -E bash - 
sudo apt-get install -y nodejs 
+0

まず、
sudo apt-get update
は動作しません。それは問題があるからです。私は進めようとしました
sudo apt-get install -y build-essential
sudo apt-get install curl
これはすでに最新のバージョンです。

実行時
curl -sl https://deb.nodesource.com/setup_5.x | sudo -E bash-
はcurlに進む前にapt-get updateを実行しようとします。これは、主な問題であるsudo apt-get updateに戻ることを意味します。 –

+0

ああ、変だ。おそらく試してみてください:sudo apt-get cleanを実行してからapt-get updateをもう一度試してみてください... –

関連する問題