You are not logged in.
Hi, guys,
I recently got in trouble with pacman and powerpill after we are forced behind a proxy by the uni. I have exported the several proxy env vars, then a strange problem comes out, I could use
pacman -Syto sync my pkg db, but I could not with
powerpill -Sy, it always fails with the error msgs
error: failed retrieving file 'core.db.tar.gz' from ftp.archlinux.org : Transient resolver failure
, so on through every mirror. Anyone could help me with the prob? Thanks.
Arch, the Portal of Linux
Offline
From memory, powerpill uses aria2 to do the downloading. Look up what that needs to work behind a proxy.
Offline
From memory, powerpill uses aria2 to do the downloading. Look up what that needs to work behind a proxy.
Hi, Allan, thanks for the reply. I know powerpill uses aria2 for downloading. But according to the man page of aria2, it should recognize the several proxy env vars I set. And I can do regular downloads with aria2 without any prob. Why powerpill failed?
Last edited by plmday (2010-03-27 12:28:02)
Arch, the Portal of Linux
Offline
Powerpill doesn't use aria2c for downloading the database, only the packages. If you're only have problems with database files, then unset the "Rebase" option and let pacman handle them via the proxy. If you're having problems with packages, then set the proxy options for aria2c using the Aria2Args option.
My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline
Powerpill doesn't use aria2c for downloading the database, only the packages. If you're only have problems with database files, then unset the "Rebase" option and let pacman handle them via the proxy. If you're having problems with packages, then set the proxy options for aria2c using the Aria2Args option.
Thanks for the clarification, Xyne. I found the "Rebase" option in the config file for powerpill. It is commented out by default, isn't it unset? But when I remove the '#' before it and do `powerpill -Sy`, it works with rebasing, even strange.
In addition, I find the comments say
Use the Rebase module to update the sync database. See the Rebase documentation for more information.
Sorry, I have no idea what the rebase module is, and where to find its documentation. Could you please give some hint?
Arch, the Portal of Linux
Offline
Could you please give some hint?
My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline
Thanks for the link, Xyne, good job,
. Though rebase is preferable, I still wonder why powerpill did not pass the sync job to pacman as you said when rebase is unset (commented out).
Last edited by plmday (2010-03-29 01:42:11)
Arch, the Portal of Linux
Offline
If the option is commented in the config and not passed on the command line, it always invokes pacman to update the database (when "-y"|"--refresh" are passed).
if ($self->get_value('Rebase'))
{
$self->maybe_lock_and_rebase(($ys>1));
}
else
{
my $cmd = $self->get_value('PacmanBin') . ' -S' . ('y' x $ys);
$cmd = '/usr/bin/sudo '.$cmd if $ENV{'USER'} ne 'root' and -x '/usr/bin/sudo';
system $cmd;
}Maybe it seemed like nothing happened because the database was already in sync. Regardless of how it updates the database, powerpill continues with the download before passing control to pacman to complete the operation, if there's anything left to do.
I'm not sure why it worked as expected with the Rebase option but not without. Powerpill uses the Perl's LWP::Simple module to check and retrieve the databases. The module probably detects the proxy settings on its own. I don't know why it wouldn't work when using pacman if you're able to sync the databases directly with pacman. It might be due to missing variables in the environment of the system call to pacman. *shrugs*
My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline
Ok, Xyne, I'll stay with rebase.
Arch, the Portal of Linux
Offline