Page 1 of 2

"302 Moved Temporarily" Repository down?

Posted: 4. Mar 2010, 17:22
by DaGoodBoy
Trying to upgrade this morning and seeing this after running apt-get upgrade:

Err http://download.virtualbox.org lenny/non-free virtualbox-3.1 3.1.4-57640_Debian_lenny
302 Moved Temporarily

The package download is redirecting to:

http://dlc-cdn.sun.com/virtualbox/debia ... y_i386.deb

This kind of redirection is considered a security issue and is not followed by apt. Please fix this!

Tony

Re: "302 Moved Temporarily" Repository down?

Posted: 5. Mar 2010, 00:16
by sonicmasters
Same problem here!
Can anybody help?

Err http://download.virtualbox.org lenny/non-free virtualbox-3.1 3.1.4-57640_Debian_lenny 302 Moved Temporarily
Failed to fetch http://download.virtualbox.org/virtualb ... y_i386.deb 302 Moved Temporarily

Re: "302 Moved Temporarily" Repository down?

Posted: 5. Mar 2010, 10:39
by ahbei7Yu
Same problem with Debian Lenny (AMD64)!

It's OK when apt-updating (deb http://download.virtualbox.org/virtualbox/debian lenny non-free), but fails with "302 Moved Temporarily" when trying to apt-upgrade.

Re: "302 Moved Temporarily" Repository down?

Posted: 5. Mar 2010, 23:29
by grep
I'm sure "me-too" posts are discouraged but I was attempting a new install of virtualbox-3.1.4 via apt on Ubuntu 8.10 x64 for a new deployment and ran into this as well:
Failed to fetch http://download.virtualbox.org/virtualb ... _amd64.deb 302 Moved Temporarily
Anyone aware of why this redirect was done or what can be done to apt to follow the redirect?

EDIT

According to https://bugs.launchpad.net/debian/+sour ... +bug/18645, apt not following HTTP redirects was considered a "bug" for years and was recently fixed in 0.7.20. Of course, I'm running 0.7.14 in Ubuntu 8.10.

EDIT #2

As a work around, I used aptitude to install VirtualBox 3.1.4 from the repositories. It installs everything but the main program which is being 302 redirected:

aptitude install virtualbox-3.1

Then I manually downloaded the main VirtualBox deb using wget and installed it using dpkg:

wget http://download.virtualbox.org/virtualb ... _amd64.deb
dpkg -i virtualbox-3.1_3.1.4-57640_Ubuntu_intrepid_amd64.deb

--

I guess this "workaround" isn't specific to a VirtualBox install but I hope this helps someone.

Re: "302 Moved Temporarily" Repository down?

Posted: 6. Mar 2010, 12:32
by schtebo

Re: "302 Moved Temporarily" Repository down?

Posted: 6. Mar 2010, 15:27
by sonicmasters
Failed to fetch http://download.virtualbox.org/virtualb ... _amd64.deb 302 Moved Temporarily
Anyone aware of why this redirect was done or what can be done to apt to follow the redirect?

EDIT

According to https://bugs.launchpad.net/debian/+sour ... +bug/18645, apt not following HTTP redirects was considered a "bug" for years and was recently fixed in 0.7.20. Of course, I'm running 0.7.14 in Ubuntu 8.10.

I guess this "workaround" isn't specific to a VirtualBox install but I hope this helps someone.

Thank you for your help!=)

Shure its work if uninstall and setup manualy

1.apt-get remove virtualbox-(your version of Virtualbox cernel)
2.wget http://download.virtualbox.org/virtualb ... y_i386.deb (or any other builds)
3.dpkg -i /path-to/virtualbox-3.1_3.1.4-57640_Ubuntu_hardy_i386.deb (or any other builds)

Re: "302 Moved Temporarily" Repository down?

Posted: 12. Mar 2010, 23:47
by stkris
It's now been 8 days and I still have no virtualbox.

Code: Select all

Err http://download.virtualbox.org lenny/non-free virtualbox-3.1 3.1.4-57640_Debian_lenny
  302 Moved Temporarily
E: Failed to fetch http://download.virtualbox.org/virtualbox/debian/pool/non-free/v/virtualbox-3.1/virtualbox-3.1_3.1.4-57640_Debian_lenny_i386.deb: 302 Moved Temporarily
So I thougth I could go back to 3.0 in the meantime, but alas:

Code: Select all

Err http://download.virtualbox.org lenny/non-free virtualbox-3.0 3.0.12-54655_Debian_lenny
  302 Moved Temporarily
E: Failed to fetch http://download.virtualbox.org/virtualbox/debian/pool/non-free/v/virtualbox-3.0/virtualbox-3.0_3.0.12-54655_Debian_lenny_i386.deb: 302 Moved Temporarily
Any other trustworthy place to get it? Or a dummies guide to VMWare? :twisted:

I know this one, but what about a debian repo?
http://www.virtualbox.org/wiki/Linux_Downloads

Re: "302 Moved Temporarily" Repository down?

Posted: 13. Mar 2010, 00:06
by Perryg
Here is the direct download from VirtualBox for the PUEL version. http://download.virtualbox.org/virtualbox/3.1.4/
If you are using the OSE version the problem is with your OSs repo
Download direct and install locally for PUEL users. If you decide to install the PUEL version be aware that you MUST uninstall your OSE version first and you should backup the entire .VirtualBox folder and files to be safe.

Re: "302 Moved Temporarily" Repository down?

Posted: 15. Mar 2010, 15:18
by drrk
That not a helpful post, the problem is in the Official VirtualBox repository, for the PUEL license. Suggesting that people just download the package will indeed allow you to install it, but then you will not benefit from the managed upgrades that using the repository provides. Could this please be fixed correctly.

Re: "302 Moved Temporarily" Repository down?

Posted: 15. Mar 2010, 15:31
by Perryg
drrk wrote:That not a helpful post, the problem is in the Official VirtualBox repository, for the PUEL license. Suggesting that people just download the package will indeed allow you to install it, but then you will not benefit from the managed upgrades that using the repository provides. Could this please be fixed correctly.
Sure. Contact Debian and tell them to fix it.

Re: "302 Moved Temporarily" Repository down?

Posted: 15. Mar 2010, 16:47
by stkris
Perryg wrote: Sure. Contact Debian and tell them to fix it.
Seems to me it would be easier for VirtualBox to fix this URL that used to work instead of debian changing it's OS. Or just a new URL for apt that we could change to.

Code: Select all

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

Re: "302 Moved Temporarily" Repository down?

Posted: 15. Mar 2010, 20:26
by Perryg
Try this first to make sure that there is no corruption in apt

Code: Select all

apt-get clean
apt-get update
apt-get upgrade
If that fails let me know

Re: "302 Moved Temporarily" Repository down?

Posted: 16. Mar 2010, 16:39
by drrk

Code: Select all

belmakor:~# apt-get install virtualbox-3.1
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed
  virtualbox-3.1
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 45.0MB of archives.
After this operation, 89.2MB of additional disk space will be used.
Err http://download.virtualbox.org lenny/non-free virtualbox-3.1 3.1.4-57640_Debian_lenny
  302 Moved Temporarily
Failed to fetch http://download.virtualbox.org/virtualbox/debian/pool/non-free/v/virtualbox-3.1/virtualbox-3.1_3.1.4-57640_Debian_lenny_i386.deb  302 Moved Temporarily
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
belmakor:~# 
The problem here is that apt doesn't support 302 redirects, it never has. Your repository used to work (I am doing an install here rather than an upgrade as I removed it to remove the errors on upgrades)
Why can you not revert the changes that included the redirect.

From research it seems that the next version of apt will support it, but currently it does not, and the new version will not be released until squeeze is made stable, which could be some time, so again I request you revert your changes.

Thank you

Re: "302 Moved Temporarily" Repository down?

Posted: 16. Mar 2010, 17:18
by fixedwheel
drrk wrote: From research it seems that the next version of apt will support it, but currently it does not, and the new version will not be released until squeeze is made stable, which could be some time,
additionally: this wont help with existing etch or lenny installs

JFTR, the virtualbox.org debian repository has already been there before sun acquired innotek... oracle, please fix it!

Re: "302 Moved Temporarily" Repository down?

Posted: 16. Mar 2010, 18:05
by Perryg
I reported the problem with full information and the DEVs are able to reproduce it now.
The problem is the version of apt in Debian and they are going to try to set the Debian repo to not redirect until the version Debian uses catches up.