PDA

View Full Version : [SOLVED] Oracle Virtualbox update fails



intruderukr
December 13th, 2011, 07:39 PM
I have Vb hosted on Oneric running on my inspiron e1405. I'm unable to update Virtualbox 4.1.2 from Oracle, when I try to update this is the message I get:

W: Failed to fetch http://download.virtualbox.org/virtualbox/debian/dists/oneiric/Release Unable to find expected entry 'contrib/source/Sources' in Release file (Wrong sources.list entry or malformed file)

I need Virtualbox for a few Windows tasks, but if I can't get this working I'll have to go back to double booting... :(
Please help...

oldtimer7777
December 13th, 2011, 08:22 PM
Did you install it from the PPA?

This walk-through has it listed about 2/3rds the way down the checklist. I tried it yesterday, and it installed fine from the PPA.

https://debianhelp.wordpress.com/2011/09/12/to-do-list-after-installing-ubuntu-11-10-aka-oneiric-ocelot/


I have Vb hosted on Oneric running on my inspiron e1405. I'm unable to update Virtualbox 4.1.2 from Oracle, when I try to update this is the message I get:

W: Failed to fetch http://download.virtualbox.org/virtualbox/debian/dists/oneiric/Release Unable to find expected entry 'contrib/source/Sources' in Release file (Wrong sources.list entry or malformed file)
I need Virtualbox for a few Windows tasks, but if I can't get this working I'll have to go back to double booting... :(
Please help...

Lampi
December 13th, 2011, 08:25 PM
according to https://www.virtualbox.org/wiki/Linux_Downloads

the correct entry for oneiric is:


deb http://download.virtualbox.org/virtualbox/debian oneiric contrib

intruderukr
December 14th, 2011, 10:45 AM
according to https://www.virtualbox.org/wiki/Linux_Downloads

the correct entry for oneiric is:


deb http://download.virtualbox.org/virtualbox/debian oneiric contrib
ok, maybe that works. There were a few PPA's listed on my sources for virtualbox and I deleted them all and added yours. Now my update errors look like this:
W:GPG error: http://ppa.launchpad.net oneiric Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 360D382BFC695405, W:Failed to fetch http://ppa.launchpad.net/tualatrix/ppa/ubuntu/dists/oneiric/main/source/Sources 404 Not Found
, W:Failed to fetch http://ppa.launchpad.net/tualatrix/ppa/ubuntu/dists/oneiric/main/binary-i386/Packages 404 Not Found
, E:Some index files failed to download. They have been ignored, or old ones used instead.

An issue for another thread of course...thanks so much for your help! :)

jbest
May 2nd, 2012, 08:06 PM
I had the same problem. Still haven't directly solved it, but it does work to instead install using:


sudo apt-get install virtualbox-4.1

From the direction at https://www.virtualbox.org/wiki/Linux_Downloads

This installed the latest version and retained my previous VMs and settings.

ampedlp
May 8th, 2012, 10:19 PM
Oracle doesn't distribute the source code. In Synaptic, go to Settings>Repositories>Other Software and uncheck the (Source Code) entry for virtualbox.org and the "Failed to fetch" message will no longer appear. Also, as I am installing this for the first time, I noticed that there are two entrys for finding Virtualbox in the repositories: "virtualbox" is from the ubuntu repository, where "virtualbox-4.1" is from the virtualbox.org repository. Hope this helps.

CeltaWeb
June 4th, 2012, 06:06 PM
I had the same problem and its true the issue was that when I added the repository to the sources list an additional entry was added with a suffix of source. I just opened up the update manager select Settings from the bottom and deleted the entry with the source suffix.

Then the usual from the terminal.

sudo apt-get update
sudo apt-get install virtualbox-4.1

and it was all smooth sailing no errors! I hope that helps.

horsemanoffaith
December 2nd, 2012, 12:13 AM
Thanks for your post ampedlp... this fixed my issue!!!

pamasz
January 22nd, 2013, 11:37 AM
I had the same problem. Still haven't directly solved it, but it does work to instead install using:


sudo apt-get install virtualbox-4.1

From the direction at https://www.virtualbox.org/wiki/Linux_Downloads

This installed the latest version and retained my previous VMs and settings.
Thanks! that helped me, after some unsuccessful advices...

archery
January 22nd, 2013, 12:06 PM
Thanks! that helped me, after some unsuccessful advices...


This is an old thread and 4.1 is the old version. Did you follow the instructions here:

https://www.virtualbox.org/wiki/Linux_Downloads

smehurko.info
December 29th, 2013, 03:30 PM
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:


sudo nano /etc/apt/sources.list

Find and remove(or comment) this line:

deb-src http://download.virtualbox.org/virtualbox/debian lucid non-free

This should solve the case.
Try to update again.

oldos2er
December 29th, 2013, 07:21 PM
This thread is quite old, and since the original question is about a version of Ubuntu no longer supported, closed.