Fix 'main/binary-amd64/Packages' Docker

回覆文章
yehlu
Site Admin
文章: 3245
註冊時間: 2004-04-15 17:20:21
來自: CodeCharge Support Engineer

Fix 'main/binary-amd64/Packages' Docker

文章 yehlu »

http://convertcaffeineintocode.com/blog ... ges-docker

if you're getting this error on Docker Env:

W: Failed to fetch http://deb.debian.org/debian/dists/jess ... /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.



Simple solution to fix

All you need to do, you should add this line before the first apt-get command in your Dockerfile

代碼: 選擇全部

RUN printf "deb http://archive.debian.org/debian/ jessie main\ndeb-src http://archive.debian.org/debian/ jessie main\ndeb http://security.debian.org jessie/updates main\ndeb-src http://security.debian.org jessie/updates main" > /etc/apt/sources.list
回覆文章

回到「Docker」