3

This question already has an answer here:

I use 64bit Ubuntu 14.04. When I run sudo apt-get update it gives the following error.

Unable to find expected entry 'restricted/binary-amd64/Packages' in Release file
W: Failed to fetch http://archive.ubuntukylin.com:10006/ubuntukylin/dists/trusty/Release  
Unable to find expected entry 'restricted/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.

Could anyone tell me how to fix this problem?

marked as duplicate by Avinash Raj, Braiam, Eric Carvalho, karel, BuZZ-dEE May 19 '14 at 21:44

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

3

Open your Terminal and execute the below command line (to reset the repositories):

sudo echo "deb http://archive.ubuntu.com/ubuntu trusty main universe restricted multiverse" > /etc/apt/sources.list

Then execute:
sudo apt-get update

Now it should be fixed.

  • I copied "sudo echo "deb archive.ubuntu.com/ubuntu trusty main universe restricted multiverse" > /etc/apt/sources.list" into terminal and run it. But it gave this error "bash: /etc/apt/sources.list: Permission denied". What shall I do? – user274602 May 18 '14 at 13:42
  • 1
    OK, you need to type sudo -i first, then execute the rest. – Naveen May 18 '14 at 13:51
  • The permission denied error is gone. But after I reset the repositories, I still encounter the error when I execute sudo apt-get update. W: Failed to fetch archive.ubuntukylin.com:10006/ubuntukylin/dists/trusty/Release Unable to find expected entry 'restricted/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. – user274602 May 18 '14 at 13:59
  • Can you post the output of command: cat /etc/apt/sources.list – Naveen May 18 '14 at 14:47
  • 2
    this is probably an incorrect answer, now my pc is not able to install/update softwares [askubuntu.com/q/727409/259823]. Please don't try this. – Soumyadip Das Feb 11 '16 at 10:05

Not the answer you're looking for? Browse other questions tagged or ask your own question.