LoginSignup
24
10

More than 3 years have passed since last update.

Ubuntu で sudo apt install を実行した時 に404エラーが出た話

Posted at

目的

  • コマンド$ sudo apt installを実行した時に出た404エラーの解決方法をまとめる。

エラー内容

$ sudo apt install linuxbrew-wrapper
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following package was automatically installed and is no longer required:
  libllvm7
Use 'sudo apt autoremove' to remove it.
The following additional packages will be installed:
  build-essential dpkg-dev fakeroot g++ g++-7 gcc gcc-7 git git-man
  libalgorithm-diff-perl libalgorithm-diff-xs-perl libalgorithm-merge-perl
  libasan4 libatomic1 libc-dev-bin libc6-dev libcilkrts5 liberror-perl
  libfakeroot libgcc-7-dev libitm1 liblsan0 libmpx2 libpython-stdlib
  libquadmath0 libstdc++-7-dev libtsan0 libubsan0 linux-libc-dev make
  manpages-dev python python-minimal python-pkg-resources python-setuptools
  python2.7 python2.7-minimal
・
・
・
Err:1 http://security.ubuntu.com/ubuntu bionic-updates/main amd64 python2.7-minimal amd64 2.7.15-4ubuntu4~18.04.1
  404  Not Found [IP: 160.26.2.187 80]
Err:3 http://security.ubuntu.com/ubuntu bionic-updates/main amd64 python2.7 amd64 2.7.15-4ubuntu4~18.04.1
  404  Not Found [IP: 160.26.2.187 80]
Err:7 http://security.ubuntu.com/ubuntu bionic-updates/main amd64 linux-libc-dev amd64 4.15.0-64.73
  404  Not Found [IP: 160.26.2.187 80]
・
・
・
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/p/python2.7/python2.7-minimal_2.7.15-4ubuntu4~18.04.1_amd64.deb  404  Not Found [IP: 160.26.2.187 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/p/python2.7/python2.7_2.7.15-4ubuntu4~18.04.1_amd64.deb  404  Not Found [IP: 160.26.2.187 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/l/linux/linux-libc-dev_4.15.0-64.73_amd64.deb  404  Not Found [IP: 160.26.2.187 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

解決方法

  • 下記コマンドを実行した
$ sudo apt-get update
  • linuxbrewをインストールする際は下記も実行
$ echo 'export PATH="/home/linuxbrew/.linuxbrew/bin:$PATH"' >>  ~/.bashrc
$ source ~/.bashrc
24
10
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
24
10