You are not logged in.

#1 2013-01-15 21:31:05

Mindstormscreator
Member
Registered: 2012-07-01
Posts: 165

Syncing mirrors gives 401 unauthorized error

I'm trying to set up a slick Arch installation on a netbook for use at school, mostly for programming. I connect to the internet by unplugging the LAN cable from the back of a desktop computer and plugging it into my netbook. I can successfully ping Google, but when I run a [pacman -Syu] I get an error from every mirror with a message similar to "401 Forbidden". I can sync / update just fine from home, and downloading packages from the school's computers right from the mirror sites works fine.

To capture this in more detail, I tried using wget to download the core.db file. Results:

$ wget http://mirrors.kernel.org/archlinux/core/os/x86_64/core.db
--2013-01-14 12:18:26--  http://mirrors.kernel.org/archlinux/core/os/x86_64/core.db
Resolving mirrors.kernel.org (mirrors.kernel.org)... 149.20.4.68, 149.20.20.132
Connecting to mirrors.kernel.org (mirrors.kernel.org)|149.20.4.68|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://psddec-bp01/?cfru=aHR0cDovL21pcnJvcnMua2VybmVsLm9yZy9hcmNobGludXgvY29yZS9vcy94ODZfNjQvY29yZS5kYg== [following]
--2013-01-14 12:18:26--  http://psddec-bp01/?cfru=aHR0cDovL21pcnJvcnMua2VybmVsLm9yZy9hcmNobGludXgvY29yZS9vcy94ODZfNjQvY29yZS5kYg==
Resolving psddec-bp01 (psddec-bp01)... 10.10.254.10
Connecting to psddec-bp01 (psddec-bp01)|10.10.254.10|:80... connected.
HTTP request sent, awaiting response... 401 Unauthorized
Authorization failed.

Any help is appreciated!

Offline

#2 2013-01-15 22:06:53

fukawi2
Forum Moderator
From: .vic.au
Registered: 2007-09-28
Posts: 5,268
Website

Re: Syncing mirrors gives 401 unauthorized error

Your school is using a transparent proxy to redirect you to another page, at a guess, some kind of authentication page. You can see this by looking at the "302 Found" part of the output. A 302 is a HTTP redirect, and it is redirecting you to "Location: http://psddec-bp01/....." which is an internal server at your school (resolves to 10.10.254.10).

You'll need to talk to your school network admin about how to get access.

Offline

#3 2013-01-15 22:18:36

Mindstormscreator
Member
Registered: 2012-07-01
Posts: 165

Re: Syncing mirrors gives 401 unauthorized error

fukawi2 wrote:

Your school is using a transparent proxy to redirect you to another page, at a guess, some kind of authentication page.

Would there be any way to view and authenticate myself from this page? I do have a username and password that I use to log on to the school's computers.
The school's computers use Windows, is there any way I could possibly trace what's going on here exactly? Contacting a network admin about getting my Linux laptop to work doesn't seem that feasible for me.

Offline

#4 2013-01-16 06:28:54

Stebalien
Member
Registered: 2010-04-27
Posts: 1,218
Website

Re: Syncing mirrors gives 401 unauthorized error

Have you tried logging in to your schools network first (using a browser) before updating? You can also try using an ftp mirror instead (your school may only be filtering http).


Steven [ web : git ]
GPG:  327B 20CE 21EA 68CF A7748675 7C92 3221 5899 410C
Do not email: honeypot@stebalien.com

Offline

#5 2013-01-16 20:38:01

Mindstormscreator
Member
Registered: 2012-07-01
Posts: 165

Re: Syncing mirrors gives 401 unauthorized error

Stebalien wrote:

Have you tried logging in to your schools network first (using a browser) before updating? You can also try using an ftp mirror instead (your school may only be filtering http).

I've tried to log in to the school's network wirelessly through a browser as described in this thread, but failed. I can ping Google when connected via LAN cable, so I assume no authentication is necessary, although I haven't tried using a browser yet. I will try using ftp mirrors, but if worse comes to worst I could grab packages through ssh from my home server (ssh-ing works fine).

Offline

Board footer

Powered by FluxBB