0

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

3 Answers3

0
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty/Release 

as the warning suggests its unable to fetch that url. Its your network issue. Not a source.list issue. Check if you have a working internet connection. Are you on a network that needs you to set proxy manually ? In such cases sudo apt-get update fails if proxy is not set properly for the sudo environment.

0

Have you tried this

   alther the sources.list file whit gedit

and then type this in the bottom

   deb http://archive.ubuntu.com/ubuntu/dists/trusty/Release
   # deb-src http://archive.ubuntu.com/dists/trusty/Release

and it might work fine this way.

Michael
  • 2,597
-2

Use this

http://us.archive.ubuntu.com/ubuntu/dists/trusty/Release

Instead of this

http://archive.ubuntu.com/ubuntu/dists/trusty/Release

or Change DNS to google DNS or Open DNS

Goolge DNS

8.8.8.8

8.8.4.4

Openn DNS

208.67.222.222

208.67.220.220

or you still face problem see this Community help

https://help.ubuntu.com/community/Repositories/Ubuntu