for the millionth time guys this isn't a duplicate question and if it is, them all the solutions don't work for me. i have seen this issue in a newly installed system. I tried all the things provided on the internet including creating a new sources.list, deleted the entries of list.d folder, but when I try to run the apt-get update
command I get the following:
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty/Release
Unable to find expected entry 'restricted/source/Sources' in Release file (Wrong sources.list entry or malformed file)
here is the sources.list
deb http://archive.ubuntu.com/ubuntu trusty main universe restricted multiverse
deb-src http://archive.ubuntu.com/ubuntu trusty universe main multiverse restricted
deb http://security.ubuntu.com/ubuntu/ trusty-security universe main multiverse restricted
deb http://archive.ubuntu.com/ubuntu trusty-updates universe main multiverse restricted
deb http://archive.ubuntu.com/ubuntu trusty-backports universe main multiverse restricted
# deb http://archive.canonical.com/ubuntu trusty partner
# deb-src http://archive.canonical.com/ubuntu trusty partner
# deb http://extras.ubuntu.com/ubuntu trusty main
# deb-src http://extras.ubuntu.com/ubuntu trusty main
cat
command:cat /etc/apt/sources.list
and copy from there by selecting the text with the mouse and using right-click/copy (context menu) or STRG+INS. Do not use STRG+C!. – Byte Commander Sep 22 '15 at 10:07