Apt update doesnt work

@clay hey i am trying to install curl and composer but when i enter :
apt-get update && apt-get install -y curl i get a error: 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) .

i am using windows 10 how do i fix this? thanks

1 Like

Same issue here

Ok. I solved the problem. Do the following on your SITE SSH :

sed '/jessie-updates/s/^/# /' -i /etc/apt/sources.list
sed 's/jessie/stretch/' -i.jessie /etc/apt/sources.list
sed '/stretch-updates/s/^# //' -i /etc/apt/sources.list

Hope it helps someone