27
11

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

ubuntuでapt-get install failedなメモ

Posted at

gitを使いたく、以下のコマンドを実行した時のエラーメモ。
ちなみにubuntuのバージョンは14.04

gitはデフォで入ってなかったので使おうとすると以下のエラーが

$ git
The program 'git' is currently not installed. You can install it by typing:
apt-get install git

apt-get installしてみます。

$ sudo apt-get install git
Err http://jp.archive.ubuntu.com/ubuntu/ trusty-updates/main git-man all 1:1.9.1-1ubuntu0.2
  404  Not Found
Err http://security.ubuntu.com/ubuntu/ trusty-security/main git-man all 1:1.9.1-1ubuntu0.2
  404  Not Found [IP: 2001:67c:1562::16 80]
Err http://security.ubuntu.com/ubuntu/ trusty-security/main git amd64 1:1.9.1-1ubuntu0.2
  404  Not Found [IP: 2001:67c:1562::16 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/g/git/git-man_1.9.1-1ubuntu0.2_all.deb  404  Not Found [IP: 2001:67c:1562::16 80]

E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/g/git/git_1.9.1-1ubuntu0.2_amd64.deb  404  Not Found [IP: 2001:67c:1562::16 80]

E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

https://github.com/72squared/vagrant-redis-cluster/issues/5 を見ると

$ sudo apt-get update

しろって書いてますね。
してから

$ sudo apt-get install git

を実行すると、今度はうまく入りました。

$ git --version
git version 1.9.1
27
11
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
27
11

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?