You are not logged in.

#1 2011-02-22 20:53:18

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

No network connection as user in guest Arch

I couldn't stay without Arch, so I installed Arch as a guest in Virtual box on a Windows XP host (work machine). Everything went well with the installation.

However once the installation was complete, I couldn't connect to the network. I knew this would be a problem because I am behind a proxy at work. I added the appropriate http_proxy and ftp_proxy environment variables and I could now connect and update my system.


My only problem is that this works only for root. As user, I cannot use pacman to install anything.

[inxs@archbox ~]$ sudo pacman -S i3-wm
resolving dependencies....

and it just sits there until it gets a Connection timed out error.

However, if I su to root then

[inxs@archbox ~]$su
Password:
[root@archbox inxs]$ pacman -S i3-wm

works and I can install anything from the repos.

Even a simple wget command gives me this :

wget http://aur.archlinux.org/packages/biosdisk-git/biosdisk-git/PKGBUILD
--2011-02-22 15:55:58-- http://aur.archlinux.org/packages/biosdisk-git/biosdisk-git/PKGBUILD
Resolving aur.archlinux.org... 208.92.232.29
Connecting to aur.archlinux.org|208.92.232.29:80...failed: Connection timed out.
Retrying.

....
....

What should I do to make my user also be able to download and install packages?


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#2 2011-02-22 21:34:47

metzengerstein
Member
Registered: 2010-06-04
Posts: 60

Re: No network connection as user in guest Arch

Sure you set the proxy settings globally?

Offline

#3 2011-02-22 21:37:01

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: No network connection as user in guest Arch

I set is as my user in ~/.bashrc, but it still isn't working for the user.

but like i mentioned, once i set them and then su to root, i can download and install packages.


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#4 2011-02-22 22:30:18

metzengerstein
Member
Registered: 2010-06-04
Posts: 60

Re: No network connection as user in guest Arch

Offline

#5 2011-02-23 04:10:57

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: No network connection as user in guest Arch

Gaah !!!

Thanks a bunch metzengerstein. I am currently off work, but I will try this first thing tomorrow morning and let you know.


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#6 2011-02-23 19:17:27

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: No network connection as user in guest Arch

No dice. It still does not work for the user even after adding an alias for sudo

alias sudo='sudo -E'

this is preventing me from using my favorite aur helper aurget. I currently have to manually download the PKGBUILD and all related files as root and then install using makepkg -si or pacman -U. So there is a workaround. I just think that going forward it might be more of an issue to me once I start using the VM in earnest. Right now I am just setting it up to the way I want and installing things on it.


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#7 2011-02-23 20:32:29

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: No network connection as user in guest Arch

it now allows me to use pacman to get the packages from the official repos. But I still cannot use any aur helper to get packages from the Official Repositories. This is what I mean :

[inxs@archbox ~]$ aurin wmfs-git
resolving dependencies...
edit PKGBUILD before sourcing for deps? [Y/n] n

warning: the following packages will be installed by pacman: git

searching AUR...
Targets (1) wmfs-git-20101119-1

Proceed with installation? {Y/n] y
:: Retrieving source tarball from AUR...
--2011-02-23 15:20:55-- http://aur.archlinux.org/packages/wmfs-git/wmfs-git.tar.gz
Resolving proxyServerName...XXX.XXX.XXX.XXX
Connecting to proxyServerName|XXX.XXX.XXX.XXX| : portNum... connected
Proxy request sent, awaiting response... 200 OK
Length: 846 [application/x-tgz]
Saving to: "/home/inxs/sandbox/wmfs-git.tar.gz"

100%[==========================================>] 846 --.-K/s in 0s

2011-02-23 15:20:56 (15.0 MB/s) - "/home/inxs/sandbox/wmfs-git.tar.gz" saved [846/846]

:: Extracting source tarball...
:: Building package...
edit PKGBUILD before building package [Y/n]n
==> Making package: wmfs-git 20101119-1 (Wed Feb 23 15:20:57 EST 2011)
==> Checking Runtime Dependencies...
==> Checking Buildtime Dependencies...
==> Installing missing dependencies...
resolving dependencies...
looking for inter-conflicts...

Targets (2): perl-error-0.17016-2 git-1.7.4.1-1

Total Download Size: 2.00 MB
Total Install Size: 11.55 MB

Proceed with installation [Y/n]y
:: Retrieving packages from extra...
error: failed retrieving file 'perl-error-0.17016-2-any.pkg.tar.xz' from mirror rit.edu : Connection timed out

and it does this for all the mirrors listed in my mirrorlist.

Now I can install the dependencies manually using the pacman command directly and then re-trying to install wmfs-git and it will work, but how come it works when I issue a direct pacman command but does not through aurget?


Any pointers?


EDIT: Spoke too soon. installing wmfs-git just doesn't work. I am assuming this is because git tries to make a connection again to the git repo and it doesn't read the http_proxy variables sad

Is there any way I can install things. How do I make git or svn to see my environment variables?? Would they use libproxy??

I am going to try that out and see.


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#8 2011-02-24 08:03:46

enzzzy
Member
Registered: 2010-10-09
Posts: 13

Re: No network connection as user in guest Arch

Had the same issue.
As you can see pacman uses wget as a backend. You have to set http_proxy ftp_proxy https_proxy and use_proxy=on in /etc/wgetrc.

Offline

#9 2011-02-24 15:02:10

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: No network connection as user in guest Arch

I tried that as well enzzzy. Still no dice sad

This is what I get :

╔═[09:59]═[inxs @ archbox]
╚═══===═══[~]>> aurin wmfs-git
resolving dependencies...
edit PKGBUILD before sourcing for deps? [Y/n] n
searching AUR...

Targets (1): wmfs-git-20101119-1 

Proceed with installation? [Y/n] y
:: Retrieving source tarball from AUR...
--2011-02-24 10:00:04--  http://aur.archlinux.org/packages/wmfs-git/wmfs-git.tar.gz
Resolving proxyServerName... XXX.XXX.XXX.XXX
Connecting to proxyServerName|XXX.XXX.XXX.XXX|:portNum... connected.
Proxy request sent, awaiting response... 200 OK
Length: 846 [application/x-tgz]
Saving to: “/home/inxs/sandbox/wmfs-git.tar.gz”

100%[=====================================================================================>] 846         --.-K/s   in 0s      

2011-02-24 10:00:04 (21.7 MB/s) - “/home/inxs/sandbox/wmfs-git.tar.gz” saved [846/846]

:: Extracting source tarball...
:: Building package...
edit PKGBUILD before building package? [Y/n] n
==> Determining latest git revision...
  -> Version found: 20110224
==> Making package: wmfs-git 20110224-1 (Thu Feb 24 10:00:06 EST 2011)
==> Checking Runtime Dependencies...
==> Checking Buildtime Dependencies...
==> Retrieving Sources...
==> Extracting Sources...
==> Removing existing pkg/ directory...
==> Starting build()...
==> Connection au serveur GIT…
Cloning into wmfs...
git.wmfs.info[0: 78.47.249.82]: errno=Connection timed out
fatal: unable to connect a socket (Connection timed out)
    Aborting...
notice: wmfs-git failed while building, remove source files (/home/inxs/sandbox/wmfs-git)? [Y/n] y
warning: package wmfs-git failed to build and won't be installed.

Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#10 2011-02-24 23:50:54

metzengerstein
Member
Registered: 2010-06-04
Posts: 60

Re: No network connection as user in guest Arch

Possible firewalled git port?
Nevertheless, when you use git over http, you also have to set its proxy settings.

Last edited by metzengerstein (2011-02-24 23:51:14)

Offline

Board footer

Powered by FluxBB