You are not logged in.

#1 2014-12-18 15:22:17

mcpalls
Member
From: Roma - Italy
Registered: 2012-02-22
Posts: 24

yaourt find pkg only with sudo

hi at all, i have this problem
for example:
yaourt -S xampp

==> Download PKGBUILD xampp from AUR...
==> ERROR: xampp not found in AUR.
i have try the solution from this post but don't work
i  installed package-query-git and your dependences but don't work
can i do?
tnk

edit:

with sudo yaourt -S xampp  i solved the problem, but why?
with yaourt i never used sudo because at the end is required pwd

Offline

#2 2014-12-18 16:11:12

Awebb
Member
Registered: 2010-05-06
Posts: 6,688

Re: yaourt find pkg only with sudo

Never randomly use sudo with a command to see if it works. Regenerate your user's yaourt config (delete it, for starters).

Offline

#3 2014-12-18 17:26:57

TheSaint
Member
From: my computer
Registered: 2007-08-19
Posts: 1,536

Re: yaourt find pkg only with sudo

Probably you forgot to check yaourt wiki
In the middle of that page you'll find the answer about the password.


do it good first, it will be faster than do it twice the saint wink

Offline

#4 2014-12-18 23:38:04

mcpalls
Member
From: Roma - Italy
Registered: 2012-02-22
Posts: 24

Re: yaourt find pkg only with sudo

i dont' have the user's file in my home, but only /etc/yaourtrc

@TheSaint
Yaourt asking for password twice it isn't my problem, but

$yaourt -S android-studio

==> Scaricamento del PKGBUILD di android-studio da AUR...
==> ERROR: android-studio  not found in AUR.

but

$ sudo yaourt -S android-studio
==> ATTENZIONE: Compilare pacchetti con privilegi di root è pericoloso.
Esegui yaourt come utente non privilegiato.

==> Downloading  PKGBUILD of android-studio from AUR...
x .SRCINFO
x android-studio.install
x android-studio.desktop
x PKGBUILD
..
..
..
it work.

Offline

#5 2014-12-19 12:45:17

TheSaint
Member
From: my computer
Registered: 2007-08-19
Posts: 1,536

Re: yaourt find pkg only with sudo

@mcpalls
Non devi usare sudo
You don't have tu use sudo with yaourt, unless you wanted it, purposely.
Yaourt use sudo for its own scopes. There's a setting in /etc/yaourtrc

# SUDO
SUDONOVERIF=1      # Avoid multiple sudo checks when timestamp_timeout=0

This will not ask password and do its job completely.
I can't assure whether is because I use sudo without password on its own. Anyways, that works for me.

Last edited by TheSaint (2014-12-19 12:46:20)


do it good first, it will be faster than do it twice the saint wink

Offline

#6 2015-01-12 12:33:01

mcpalls
Member
From: Roma - Italy
Registered: 2012-02-22
Posts: 24

Re: yaourt find pkg only with sudo

i think that  my problem is this:

#curl -f https://aur.archlinux.org/packages/fr/freetype2-infinality/freetype2-infinality.tar.gz -o freetype2-infinality.tar.gz

curl: (60) SSL certificate problem, verify that the CA cert is OK. Details:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
More details here: http://curl.haxx.se/docs/sslcerts.html

curl performs SSL certificate verification by default, using a "bundle"
 of Certificate Authority (CA) public keys (CA certs). The default
 bundle is named curl-ca-bundle.crt; you can specify an alternate file
 using the --cacert option.
If this HTTPS server uses a certificate signed by a CA represented in
 the bundle, the certificate verification probably failed due to a
 problem with the certificate (it might be expired, or the name might
 not match the domain name in the URL).
If you'd like to turn off curl's verification of the certificate, use
 the -k (or --insecure) option.

Offline

#7 2015-01-12 12:36:01

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,517
Website

Re: yaourt find pkg only with sudo

Perhaps this news item (edit: sorry I can't help follow up on this.  The news item didn't apply to me, and I really don't understand much of anything about these ca-certificates, but it looked relevant to the error.)

Last edited by Trilby (2015-01-12 14:47:49)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#8 2015-01-12 14:18:04

mcpalls
Member
From: Roma - Italy
Registered: 2012-02-22
Posts: 24

Re: yaourt find pkg only with sudo

uhm

 #curl -v https://aur.archlinux.org/packages/fr/freetype2-infinality/freetype2-infinality.tar.gz -o freetype2-infinality.tar.gz
...
...
 *   CAfile: /opt/lampp/share/curl/curl-ca-bundle.crt 
 ....
...
...

curl: (60) SSL certificate problem, verify that the CA cert is OK. Details:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
More details here: http://curl.haxx.se/docs/sslcerts.html

curl performs SSL certificate verification by default, using a "bundle"
 of Certificate Authority (CA) public keys (CA certs). The default
 bundle is named curl-ca-bundle.crt; you can specify an alternate file
 using the --cacert option.
If this HTTPS server uses a certificate signed by a CA represented in
 the bundle, the certificate verification probably failed due to a
 problem with the certificate (it might be expired, or the name might
 not match the domain name in the URL).
If you'd like to turn off curl's verification of the certificate, use
 the -k (or --insecure) option.
#curl --cacert /etc/ssl/certs/ca-certificates.crt -v https://aur.archlinux.org/packages/fr/freetype2-infinality/freetype2-infinality.tar.gz -o freetype2-infinality.tar.gz
...
...
...
*   CAfile: /etc/ssl/certs/ca-certificates.crt
  ..
...

{ [data not shown]
* SSLv3, TLS handshake, CERT (11):
{ [data not shown]
* SSLv3, TLS alert, Server hello (2):
} [data not shown]
* error:0D0C50A1:asn1 encoding routines:ASN1_item_verify:unknown message digest algorithm
* Closing connection #0

curl: (35) error:0D0C50A1:asn1 encoding routines:ASN1_item_verify:unknown message digest algorithm

why the default dir CAfile is in  : /opt/lampp/share/curl/?

and the error curl 35) ?

Last edited by mcpalls (2015-01-12 14:18:37)

Offline

Board footer

Powered by FluxBB