3

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?

0

1 Answer 1

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.

7
  • 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, 2014 at 13:42
  • 1
    OK, you need to type sudo -i first, then execute the rest.
    – Naveen
    May 18, 2014 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, 2014 at 13:59
  • Can you post the output of command: cat /etc/apt/sources.list
    – Naveen
    May 18, 2014 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. Feb 11, 2016 at 10:05

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