1 頁 (共 1 頁)

Fix 'main/binary-amd64/Packages' Docker

發表於 : 2019-05-03 08:18:46
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