"302 Moved Temporarily" Repository down?

Discussions related to using VirtualBox on Linux hosts.
DaGoodBoy
Posts: 2
Joined: 5. Nov 2009, 22:25
Primary OS: Debian Lenny
VBox Version: OSE Debian
Guest OSses: Linux, Windows

"302 Moved Temporarily" Repository down?

Post 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
sonicmasters
Posts: 2
Joined: 5. Mar 2010, 00:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Win Xp Pro

Re: "302 Moved Temporarily" Repository down?

Post 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
ahbei7Yu
Posts: 1
Joined: 5. Mar 2010, 10:31
Primary OS: Debian Lenny
VBox Version: OSE Debian
Guest OSses: Windows XP x64, Debian testing, Ubuntu

Re: "302 Moved Temporarily" Repository down?

Post 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.
grep
Posts: 2
Joined: 5. Mar 2010, 23:25
Primary OS: Ubuntu 8.10
VBox Version: OSE Debian
Guest OSses: Ubuntu

Re: "302 Moved Temporarily" Repository down?

Post 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.
schtebo
Posts: 25
Joined: 11. Apr 2009, 12:16
Primary OS: Debian Lenny
VBox Version: OSE Debian
Guest OSses: windows 7/xp, debian lenny / ubuntu lucidlynx

Re: "302 Moved Temporarily" Repository down?

Post by schtebo »

sonicmasters
Posts: 2
Joined: 5. Mar 2010, 00:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Win Xp Pro

Re: "302 Moved Temporarily" Repository down?

Post 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)
stkris
Posts: 27
Joined: 21. Mar 2009, 00:17
Primary OS: Debian other
VBox Version: PUEL
Guest OSses: Win XP

Re: "302 Moved Temporarily" Repository down?

Post 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
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: "302 Moved Temporarily" Repository down?

Post 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.
drrk
Posts: 2
Joined: 15. Mar 2010, 13:42
Primary OS: Debian Lenny
VBox Version: PUEL
Guest OSses: Windows

Re: "302 Moved Temporarily" Repository down?

Post 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.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: "302 Moved Temporarily" Repository down?

Post 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.
stkris
Posts: 27
Joined: 21. Mar 2009, 00:17
Primary OS: Debian other
VBox Version: PUEL
Guest OSses: Win XP

Re: "302 Moved Temporarily" Repository down?

Post 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
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: "302 Moved Temporarily" Repository down?

Post 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
drrk
Posts: 2
Joined: 15. Mar 2010, 13:42
Primary OS: Debian Lenny
VBox Version: PUEL
Guest OSses: Windows

Re: "302 Moved Temporarily" Repository down?

Post 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
fixedwheel
Volunteer
Posts: 1699
Joined: 13. Sep 2008, 02:18

Re: "302 Moved Temporarily" Repository down?

Post 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!
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: "302 Moved Temporarily" Repository down?

Post 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.
Post Reply