Page 1 of 3

Yaourt issue

Posted: 01 Jun 2011, 23:56
by dedanna1029
Where and what do I change in pacman.conf to use wget instead of curl? I'm getting a lot of curl errors with yaourt. Anything I try to do with it:

Code: Select all

:) yaourt <some package>
curl error: Couldn't connect to server


At very first when I try to use it, it will work, but then the next time 'round in the same session, I get that error over and over again.

I'm trying to uninstall World of Goo demo, so I can install the actual game to Arch, but yaourt isn't working (and that's where I got the World of Goo demo from).

Edit: Well, this is effing strange. It will let me remove a package, just won't let me run searches or try to install anything with yaourt:

Code: Select all

:) yaourt -R worldofgoo-demo
Password:
checking dependencies...

Remove (1): worldofgoo-demo-1.41-1 [44.86 MB]

Total Removed Size:   44.86 MB

Do you want to remove these packages? [Y/n] y
(1/1) removing worldofgoo-demo                     [######################] 100%


Thanks.

Re: Another quick question

Posted: 03 Jun 2011, 00:10
by dedanna1029
dedanna1029 wrote:Where and what do I change in pacman.conf to use wget instead of curl? I'm getting a lot of curl errors with yaourt. Anything I try to do with it:

Code: Select all

:) yaourt <some package>
curl error: Couldn't connect to server

No joy here? I hate curl anyway. Thanks.

Re: Another quick question

Posted: 03 Jun 2011, 00:46
by viking60
I just use it and did not even notice curl - so I am unable to develop emotions about it one way or the other.

Modify /etc/pacman.conf by adding the following line to the [options] section:

Code: Select all

XferCommand = /usr/bin/wget -c --passive-ftp -c %u

Dat should do it.
You could also try a:

Code: Select all

pacman-optimize

And I am almost certain that using aria2 would solve your problem:
https://wiki.archlinux.org/index.php/Im ... erformance

This is how:
Install aria2

Code: Select all

sudo pacman -S aria2

In /etc/pacman-conf:
Add this line in the [options] section directly under the commented XferCommand line:

Code: Select all

XferCommand = /usr/bin/aria2c --allow-overwrite=true -c --file-allocation=none --log-level=error \-m2 --max-connection-per-server=2 --max-file-not-found=5 --min-split-size=5M --no-conf \--remote-time=true --summary-interval=60 -t5 -d / -o %o %u

It will not work pasting the code from the arch site because there are two spaces to much in there (it is supposed to be one long line). The code above should work.

This thing will allow multiple and simultaneous connections to an Arch mirror = speed!

Re: Another quick question

Posted: 03 Jun 2011, 02:15
by dedanna1029
Yeah, to be honest, that's what I thought I was using, was aria2. It's installed. Don't know what changed or how, but somehow it did. That first line you have there, "/usr/bin/wget -c --passive-ftp -c %u" - That's the line I thought it would be, but wasn't sure about the options beyond it.

Here's what I have in that section of /etc/pacman.conf:

Code: Select all

[options]
# The following paths are commented out with their default values listed.
# If you wish to use different paths, uncomment and update the paths.
#RootDir     = /
#DBPath      = /var/lib/pacman/
#CacheDir    = /var/cache/pacman/pkg/
#LogFile     = /var/log/pacman.log
HoldPkg     = pacman glibc
# If upgrades are available for these packages they will be asked for first
SyncFirst   =
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
#XferCommand = /usr/bin/curl -C - %u > %o
#CleanMethod = KeepInstalled
Architecture = auto


So, all I need to do is add the aria2 line? (Done)

Code: Select all

pacman-optimize

Running it now since adding the aria2 line.

ooooooooooohhh, and while we're at this, shouldn't the "SyncFirst =" line be:

Code: Select all

SyncFirst   = pacman

?
(Just checked, and yup it should)

Thanks. :)

Re: Another quick question

Posted: 02 Jul 2011, 21:03
by dedanna1029
Just tried again.

Code: Select all

[root@dedanna dedanna]# pacman-optimize
==> MD5sum'ing the old database...
==> Tar'ing up /var/lib/pacman...
==> Making and MD5sum'ing the new database...
==> Syncing database to disk...
==> Checking integrity...
==> Rotating database into place...

==> Finished. Your pacman database has been optimized.

[root@dedanna dedanna]# exit
exit
:) yaourt packer
lexical error: invalid char in json text.
                                       <html> <head> <title>Tor is not
                     (right here) ------^

This is what I get when Tor is running. When it's not, the error posted initially in this thread is what I get (curl error).

I keep thinking it has to do with Tor.

Re: Yaourt issue

Posted: 03 Jul 2011, 02:00
by viking60

Code: Select all

pacman -Rns tor
?

Re: Yaourt issue

Posted: 03 Jul 2011, 02:27
by dedanna1029
Well, I'd have to uninstall vidalia too, which I could do. I *could* uninstall tor, but then there'd be no tor. No safe browsing.

Code: Select all

[root@dedanna dedanna]# pacman -Rns tor
checking dependencies...
error: failed to prepare transaction (could not satisfy dependencies)
:: vidalia: requires tor>=0.2.0.35

So...

Code: Select all

[root@dedanna dedanna]# pacman -Rns tor vidalia
checking dependencies...

Remove (3): vidalia-0.2.10-1 [4.97 MB]  tor-0.2.1.30-1 [4.67 MB]  tsocks-1.8beta5-4 [0.05 MB]

Total Removed Size:   9.69 MB

Do you want to remove these packages? [Y/n] y
(1/3) removing vidalia                                                              [################################################] 100%
error: command failed to execute correctly
(2/3) removing tor                                                                  [################################################] 100%
(3/3) removing tsocks                                                               [################################################] 100%

... and thar she blew.

Okay, so:

Code: Select all

[root@dedanna dedanna]# exit
exit
:) yaourt nautilus-dropbox
curl error: Couldn't connect to server

Trying with damn aria2 (which I ended up hating out of this btw; it takes longer than just straight pacman), and taking out the archlinux.fr repo (which I found is really a killer; it contains a lot of stuff I use), with this configuration in pacman.conf:

Code: Select all

:) yaourt nautilus-dropbox
curl error: Couldn't connect to server

STILL. Argh!

Here is my /etc/yaourtrc file. Anything there?

It does work with sudo:

Code: Select all

sudo yaourt nautilus-dropbox
Password:
1 aur/nautilus-dropbox 0.6.7-1 (Out of Date) (795)
    Dropbox for Linux - Nautilus extension and Command Line Interface
==> Enter n° of packages to be installed (ex: 1 2 3 or 1-3)
==> -------------------------------------------------------
==> ^C

However, when I start it as regular user, it should be asking me for my sudo password. Instead, it just errors out, and my understanding is that yaourt should be started as regular user, then it will ask for sudo password when it needs it (and that's how it's always worked before).

If you look here:
You can update your system including AUR packages with:
yaourt -Syua
However, due to building packages as root is dangerous, the preferred way is:

Code: Select all

$ yaourt -Sb <package> (note the prompt here; regular user)
$ su
# pacman -U <package file>

Re: Yaourt issue

Posted: 03 Jul 2011, 02:38
by dedanna1029
So, I guess I'm going to reinstall tor & vidalia, as uninstalling them didn't stop the error.

Re: Yaourt issue

Posted: 03 Jul 2011, 02:44
by dedanna1029
I went ahead with installing vidalia with sudo yaourt vidalia, and in that was this:

Code: Select all

==> Continue building vidalia ? [Y/n]
==> ---------------------------------
==>
==> Building and installing package
==> WARNING: Building package as root is dangerous.
 Please run yaourt as a non-privileged user.

Yay, if it weren't the only way it would run at all, I wouldn't have to now would I. :P

Re: Yaourt issue

Posted: 03 Jul 2011, 11:55
by viking60
Does

Code: Select all

sudo pacman -Syu
work as expected (post printout here)? Can you post the content of as root

Code: Select all

EDITOR=nano visudo
(in a spoiler)

Re: Yaourt issue

Posted: 03 Jul 2011, 17:45
by dedanna1029
I ended up cancelling the installation of Vidalia, btw, and grabbed the upstream file and installed it. Didn't want to run the risk in the end. sudo pacman -Syu works just fine:

No need for spoilers for code or text - I r haz toolz. :D

http://www.typewith.me/kd6gINiMSw

Re: Yaourt issue

Posted: 03 Jul 2011, 20:00
by viking60
And when you do

Code: Select all

yaourt packer
you get the curl error. Just do a sudo yaourt packer then and let us see if packer can replace yaourt.