Menu

#4854 apt-get install webmin fails with 302 Found

1.820
closed-fixed
nobody
None
5
2017-01-14
2016-12-06
No

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?

Discussion

  • Jamie Cameron

    Jamie Cameron - 2016-12-06

    Which Linux distribution and version is the container running?

     
  • Witold Filipczyk

    In this case it was Debian Wheezy, but I'm afraid it is common for all Debian/Ubuntu.

     
  • Jamie Cameron

    Jamie Cameron - 2016-12-07

    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?

     
  • MegamanNL

    MegamanNL - 2016-12-13

    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.

    #apt-get install webmin
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    The following packages will be upgraded:
      webmin
    1 upgraded, 0 newly installed, 0 to remove and 45 not upgraded.
    Need to get 15.2 MB of archives.
    After this operation, 61.4 kB of additional disk space will be used.
    Err http://download.webmin.com/download/repository/ sarge/contrib webmin all 1.820
      302  Found
    Failed to fetch http://download.webmin.com/download/repository/pool/contrib/w/webmin/webmin_1.820_all.deb  302  Found
    E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
    

    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

     
  • Jamie Cameron

    Jamie Cameron - 2016-12-13

    If on your system you run :

    cd /tmp
    wget http://download.webmin.com/download/repository/pool/contrib/w/webmin/webmin_1.820_all.deb
    

    does it download properly?

     

    Last edit: Jamie Cameron 2016-12-13
  • MegamanNL

    MegamanNL - 2016-12-14

    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

    # wget http://download.webmin.com/download/repository/pool/contrib/w/webmin/webmin_1.820_all.deb
    --2016-12-14 10:08:52--  http://download.webmin.com/download/repository/pool/contrib/w/webmin/webmin_1.820_all.deb
    Resolving download.webmin.com (download.webmin.com)... 108.60.199.109
    Connecting to download.webmin.com (download.webmin.com)|108.60.199.109|:80... connected.
    HTTP request sent, awaiting response... 302 Found
    Location: http://prdownloads.sourceforge.net/webadmin/webmin_1.820_all.deb [following]
    --2016-12-14 10:08:52--  http://prdownloads.sourceforge.net/webadmin/webmin_1.820_all.deb
    Resolving prdownloads.sourceforge.net (prdownloads.sourceforge.net)... 216.34.181.59
    Connecting to prdownloads.sourceforge.net (prdownloads.sourceforge.net)|216.34.181.59|:80... connected.
    HTTP request sent, awaiting response... 301 Moved Permanently
    Location: http://downloads.sourceforge.net/project/webadmin/webmin/1.820/webmin_1.820_all.deb [following]
    --2016-12-14 10:08:52--  http://downloads.sourceforge.net/project/webadmin/webmin/1.820/webmin_1.820_all.deb
    Resolving downloads.sourceforge.net (downloads.sourceforge.net)... 216.34.181.59
    Connecting to downloads.sourceforge.net (downloads.sourceforge.net)|216.34.181.59|:80... connected.
    HTTP request sent, awaiting response... 302 Found
    Location: https://kent.dl.sourceforge.net/project/webadmin/webmin/1.820/webmin_1.820_all.deb [following]
    --2016-12-14 10:08:53--  https://kent.dl.sourceforge.net/project/webadmin/webmin/1.820/webmin_1.820_all.deb
    Resolving kent.dl.sourceforge.net (kent.dl.sourceforge.net)... 212.219.56.185
    Connecting to kent.dl.sourceforge.net (kent.dl.sourceforge.net)|212.219.56.185|:443... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 15230868 (15M) [application/octet-stream]
    Saving to: `webmin_1.820_all.deb'
    
    100%[==========================================================================>] 15,230,868  13.9M/s   in 1.0s
    
    2016-12-14 10:08:54 (13.9 MB/s) - `webmin_1.820_all.deb' saved [15230868/15230868]
    # dpkg -i webmin_1.820_all.deb
    
     
  • Jamie Cameron

    Jamie Cameron - 2016-12-15

    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.

     
  • Dan

    Dan - 2017-01-03

    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.

    Err http://download.webmin.com/download/repository/ sarge/contrib webmin all 1.830
      302  Found
    Failed to fetch http://download.webmin.com/download/repository/pool/contrib/w/webmin/webmin_1.830_all.deb  302  Found
    E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
    

    If I download it directly on the same box with wget and not through the proxy, it fetches the package.

    wget http://download.webmin.com/download/repository/pool/contrib/w/webmin/webmin_1.830_all.deb
    --2017-01-03 14:47:16--  http://download.webmin.com/download/repository/pool/contrib/w/webmin/webmin_1.830_all.deb
    Resolving download.webmin.com (download.webmin.com)... 108.60.199.109
    Connecting to download.webmin.com (download.webmin.com)|108.60.199.109|:80... connected.
    HTTP request sent, awaiting response... 302 Found
    Location: http://prdownloads.sourceforge.net/webadmin/webmin_1.830_all.deb [following]
    --2017-01-03 14:47:16--  http://prdownloads.sourceforge.net/webadmin/webmin_1.830_all.deb
    Resolving prdownloads.sourceforge.net (prdownloads.sourceforge.net)... 216.34.181.59
    Connecting to prdownloads.sourceforge.net (prdownloads.sourceforge.net)|216.34.181.59|:80... connected.
    HTTP request sent, awaiting response... 301 Moved Permanently
    Location: http://downloads.sourceforge.net/project/webadmin/webmin/1.830/webmin_1.830_all.deb [following]
    --2017-01-03 14:47:17--  http://downloads.sourceforge.net/project/webadmin/webmin/1.830/webmin_1.830_all.deb
    Resolving downloads.sourceforge.net (downloads.sourceforge.net)... 216.34.181.59
    Connecting to downloads.sourceforge.net (downloads.sourceforge.net)|216.34.181.59|:80... connected.
    HTTP request sent, awaiting response... 302 Found
    Location: https://pilotfiber.dl.sourceforge.net/project/webadmin/webmin/1.830/webmin_1.830_all.deb [following]
    --2017-01-03 14:47:17--  https://pilotfiber.dl.sourceforge.net/project/webadmin/webmin/1.830/webmin_1.830_all.deb
    Resolving pilotfiber.dl.sourceforge.net (pilotfiber.dl.sourceforge.net)... 69.12.26.12
    Connecting to pilotfiber.dl.sourceforge.net (pilotfiber.dl.sourceforge.net)|69.12.26.12|:443... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 15105842 (14M) [application/octet-stream]
    Saving to: `webmin_1.830_all.deb'
    
     
  • Jamie Cameron

    Jamie Cameron - 2017-01-04

    Ok, this seems like a proxy bug then - a 302 redirect is accepted just fine by apt-get when downloading directly.

     
  • Dan

    Dan - 2017-01-04

    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!

     
  • MegamanNL

    MegamanNL - 2017-01-13

    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?

     
  • Jamie Cameron

    Jamie Cameron - 2017-01-14

    OK, I've turned off the redirects. I may turn them back on it future when Wheezy is no longer supported..

     
  • Jamie Cameron

    Jamie Cameron - 2017-01-14
    • status: open --> closed-fixed
     

Log in to post a comment.