When I update my Ubuntu, appear
W:Failed to fetch http://download.virtualbox.org/virtualbox/debian/dists/lucid/Release Unable to find expected entry 'non-free/source/Sources' 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.
What can I do for fix this error on my Virtual Box?
Looks like you are using the wrong distribution codename in the
sources.list
file.I personally prefer to have a separate file for each 3rd party repository, you can create one for virtualbox using the following in CLI:
After creating
virtualbox.list
, remove or comment out the out-dated line from yoursources.list
.It may look like this =>
deb http://download.virtualbox.org/virtualbox/debian lucid contrib non-free
.Once done, update your system
sudo apt-get update && apt-get dist-upgrade -y
.The reason is an invalid entry in /etc/apt/sources.list file. There is no source package in the VirtualBox source repository. Just remove the deb-src line:
Remove or comment this line:
This should solve the case.