I tried to install webmin in unprivileged lxc container, added
deb http://download.webmin.com/download/repository sarge contrib to sources.list.d/webmin.list
apt-get update
apt-get install webmin
Err http://download.webmin.com/download/repository/ sarge/contrib webmin all 1.820
302 Found
How to resolve it?
Which Linux distribution and version is the container running?
In this case it was Debian Wheezy, but I'm afraid it is common for all Debian/Ubuntu.
I'm not seeing this on test systems, and nobody else has reported it.
Is your system accessing the interner via any kind of proxy?
Hi guys,
I have the same issue on two Debian Wheezy servers. My Jessie server up-to-date. Not using a proxy on any of them.
The HTTP headers of the download.webmin.com link indeed return a 302 status code redirecting the browser to prdownloads.sourceforge.net. Jessy runs APT version 1.0.9.8.4 and Wheezy runs 0.9.7.9+deb7u7. Could it be that the Wheezy apt software can't handle 302 codes properly?
Cheers,
Willem
If on your system you run :
does it download properly?
Last edit: Jamie Cameron 2016-12-13
Hi Jamie, thanks for your quick reply. And thanks for all your work on Webmin!
Yes, wget downloaded succesfully (and still does). Albeit with three redirects making it a bit slow. Last night, I used wget and dpkg to install the package manually.
Cheers
I honestly don't know why APT is failing on your system, sorry. In all other tests I've done, it works fine with 302 redirects.
I am getting a "302 Found" as well and apt-get is erroring out. All my Debian Linux boxes go through an apt-cacher ng proxy. I suspect the error lies there.
If I download it directly on the same box with wget and not through the proxy, it fetches the package.
Ok, this seems like a proxy bug then - a 302 redirect is accepted just fine by apt-get when downloading directly.
Most of my Debian servers are jessie.
I get a 302 while proxying through apt-cacher-ng 0.8.0 under Debian Jessie (newest version as of today January 4, 2017). I went ahead and upgraded my debian mirror server to stretch/sid and upgraded apt-cacher-ng to 2-1. My Jessie machines which proxy through the newer apt-cacher-ng/2 seem to work properly now. It would appear that it has something to do with apt-cacher-ng 0.8.0.
This dosen't seen to help rkd77 since they claim to not be using a proxy. I hope this info is helpful to someone. Good luck!
So, it took me a while to try this because I recently switched to a new computer and there was some work I had to finish first. But here we are... :)
I created two VMs in Hyper-V and installed Debian Wheezy (7.11.0) on one of them, Debian Jessie (8.6.0) on the other. Both have default configurations and no extra packages installed besides the base system.
I added the apt source for webmin following the instructions on this page:
http://www.webmin.com/deb.html
Then, I successfully installed the jcameron-key.asc key file.
Debian 7 Wheezy
Installed apt-transport-https successfully.
Tried apt-get install webmin: won't install due to 302 status code.
Debian 8 Jessie
Installed apt-transport-https successfully.
Installed webmin perfectly fine through apt.
None of the systems are behind a proxy. All other network connections are fine and all other packages I use install succesfully through apt. Seems to me the current version of apt in Wheezy can't handle the redirects. Wheezy LTS support will run till 31st May 2018. Any chance you can find a way around this issue? Or get someone to update apt in Wheezy?
OK, I've turned off the redirects. I may turn them back on it future when Wheezy is no longer supported..