2
0

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.

CircleCIでapt-get updateするとコケる

Posted at

TL;DR

  • circleciでapt-get updateをするとエラーが出て失敗する。

環境

  • circleci/node:9.3.0

sudo apt-get -y -qq update

$ #!/bin/bash -eo pipefail
sudo apt-get -y -qq update
Get:1 http://security.debian.org jessie/updates InRelease [44.9 kB]

Ign http://deb.debian.org jessie InRelease

Get:2 http://deb.debian.org jessie-updates InRelease [7340 B]

Get:3 http://deb.debian.org jessie Release.gpg [2420 B]

Get:4 http://security.debian.org jessie/updates/main amd64 Packages [849 kB]

Get:5 http://deb.debian.org jessie Release [148 kB]

Get:6 http://deb.debian.org jessie/main amd64 Packages [9098 kB]

Fetched 10.2 MB in 1s (8527 kB/s)
W: Failed to fetch http://deb.debian.org/debian/dists/jessie-updates/InRelease  Unable to find expected entry 'main/binary-amd64/Packages' in Release file (Wrong sources.list entry or malformed file)

E: Some index files failed to download. They have been ignored, or old ones used instead.
Exited with code 100

解決法

-stretchをつけたimageを使えば問題ないらしい。
circleci/node:9.3.0-stretchに変えたら問題なく動いた。

参考

"sudo apt-get update" failing on default images #269
New #269 error with upstream issue with the Debian mirrors #370

2
0
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
2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?