Wednesday, May 8, 2024
 Popular · Latest · Hot · Upcoming
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 2500  / 3 Years ago, mon, july 26, 2021, 7:51:32

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?


More From » updates

 Answers
1

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:



sudo echo "deb http://download.virtualbox.org/virtualbox/debian `lsb_release -sc` contrib" > /etc/apt/sources.list.d/virtualbox.list


After creating virtualbox.list, remove or comment out the out-dated line from your sources.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.


[#29102] Tuesday, July 27, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
heathree

Total Points: 157
Total Questions: 132
Total Answers: 108

Location: Honduras
Member since Mon, Apr 5, 2021
3 Years ago
;