LoginSignup
11
10

More than 5 years have passed since last update.

windowsのbashでapt-get updateできないのをなんとかする

Last updated at Posted at 2016-04-14

冷静に考えたらapt-getのupdate失敗の解決すればよいだけだった

apt-get updateに失敗する

なんかErrとかFailedとか出てupdateうまくいかない
無題.png

解決策

hostsに足すとか

/etc/hosts
91.189.91.13 archive.ubuntu.com
91.189.92.201 security.ubuntu.com

nameserver足すとか

echo "nameserver 8.8.8.8" | sudo tee /etc/resolv.conf > /dev/null

/etc/resolv.conf
nameserver 8.8.8.8

後者でうまくいった


参考1
参考2

11
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
11
10