Skip to content
This repository has been archived by the owner on May 31, 2018. It is now read-only.

Could not connect to AUR #597

Closed
bibek22 opened this issue Nov 16, 2016 · 7 comments
Closed

Could not connect to AUR #597

bibek22 opened this issue Nov 16, 2016 · 7 comments

Comments

@bibek22
Copy link

bibek22 commented Nov 16, 2016

Important

Read me first: Bug reports

Version

pacaur -v

pacaur 4.6.10
Description

Can't install any packages from AUR.

Output

pacaur -S yum

:: Package(s) yum not found in repositories, trying AUR...
:: resolving dependencies...
:: Could not connect to the AUR
:: Could not connect to the AUR
:: Could not connect to the AUR
:: Could not connect to the AUR
:: Could not connect to the AUR
:: Could not connect to the AUR
:: Could not connect to the AUR
:: Could not connect to the AUR
:: no results found for yum

Debug output

bash -x pacaur -S yum

+ version=4.6.10
+ unset aur cleancache devel edit info installpkg foreign needed noconfirm nodeps noedit
+ unset operation pac pacQ pacS quiet rebuild refresh repo search selective upgrade
+ LC_COLLATE=C
+ TEXTDOMAIN=pacaur
+ TEXTDOMAINDIR=/usr/share/locale
+ [[ -n '' ]]
+ configdir=/etc/xdg/pacaur
+ userconfigdir=/home/bibek/.config/pacaur
+ userpacmandir=/home/bibek/.config/pacman
+ usercachedir=/home/bibek/.cache/pacaur
+ [[ -r '' ]]
+ source /etc/makepkg.conf
++ DLAGENTS=('ftp::/usr/bin/curl -fC - --ftp-pasv --retry 3 --retry-delay 3 -o %o %u' 'http::/usr/bin/curl -fLC - --retry 3 --retry-delay 3 -o %o %u' 'https::/usr/bin/curl -fLC - --retry 3 --retry-delay 3 -o %o %u' 'rsync::/usr/bin/rsync --no-motd -z %u %o' 'scp::/usr/bin/scp -C %u %o')
++ VCSCLIENTS=('bzr::bzr' 'git::git' 'hg::mercurial' 'svn::subversion')
++ CARCH=x86_64
++ CHOST=x86_64-pc-linux-gnu
++ CPPFLAGS=-D_FORTIFY_SOURCE=2
++ CFLAGS='-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong'
++ CXXFLAGS='-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong'
++ LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro
++ DEBUG_CFLAGS='-g -fvar-tracking-assignments'
++ DEBUG_CXXFLAGS='-g -fvar-tracking-assignments'
++ BUILDENV=(!distcc color !ccache check !sign)
++ OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !optipng !upx !debug)
++ INTEGRITY_CHECK=(md5)
++ STRIP_BINARIES=--strip-all
++ STRIP_SHARED=--strip-unneeded
++ STRIP_STATIC=--strip-debug
++ MAN_DIRS=({usr{,/local}{,/share},opt/*}/{man,info})
++ DOC_DIRS=(usr/{,local/}{,share/}{doc,gtk-doc} opt/*/{doc,gtk-doc})
++ PURGE_TARGETS=(usr/{,share}/info/dir .packlist *.pod)
++ COMPRESSGZ=(gzip -c -f -n)
++ COMPRESSBZ2=(bzip2 -c -f)
++ COMPRESSXZ=(xz -c -z -)
++ COMPRESSLRZ=(lrzip -q)
++ COMPRESSLZO=(lzop -q)
++ COMPRESSZ=(compress -c -f)
++ PKGEXT=.pkg.tar.xz
++ SRCEXT=.src.tar.gz
+ [[ -r /home/bibek/.config/pacman/makepkg.conf ]]
+ [[ -r /home/bibek/.makepkg.conf ]]
+ tmpdir=/tmp/pacaurtmp-bibek
+ clonedir=/home/bibek/.cache/pacaur
+ editor=vim
+ displaybuildfiles=diff
+ fallback=true
+ silent=false
+ sortby=popularity
+ sortorder=descending
+ sudoloop=true
+ pacmanbin=pacman
+ aururl=aur.archlinux.org
+ aurrpc='/rpc.php?type=info&v=5'
+ source /etc/xdg/pacaur/config
+ [[ -r /home/bibek/.config/pacaur/config ]]
+ [[ ! -d /tmp/pacaurtmp-bibek ]]
+ [[ ! -d /home/bibek/.cache/pacaur ]]
+ trap Cancel INT
+ args=($@)
+ for i in "${args[@]}"
+ [[ -S =~ ^-[a-zA-Z0-9] ]]
+ opts+=($i)
+ for i in "${args[@]}"
+ [[ yum =~ ^-[a-zA-Z0-9] ]]
+ count=0
+ [[ -n -S ]]
+ getopts sidmykufecqrahvxVDFQRSTUbglnoptw-: OPT
+ pacmanarg+=("-$OPT")
+ case "$OPT" in
+ pacS=1
+ operation=sync
+ [[ -S =~ w ]]
+ installpkg=true
+ [[ -S =~ g ]]
+ [[ -S =~ l ]]
+ [[ -S =~ p ]]
+ getopts sidmykufecqrahvxVDFQRSTUbglnoptw-: OPT
+ [[ -z yum ]]
+ pkgs+=("${!OPTIND}")
+ shift 2
+ OPTIND=1
+ [[ -n '' ]]
++ grep '^Color' /etc/pacman.conf
+ [[ -n '' ]]
++ grep '^Color' /etc/pacman.conf
+ [[ -z '' ]]
+ [[ '' = \a\l\w\a\y\s ]]
+ [[ '' = \a\u\t\o ]]
+ [[ '' != \a\l\w\a\y\s ]]
+ [[ '' != \a\u\t\o ]]
+ makeopts+=("--nocolor")
+ pacmanarg=(${pacmanarg[@]/--/})
+ pacmanarg=(${pacmanarg[@]/-r/})
+ pacmanarg=(${pacmanarg[@]/-a/})
+ [[ sync = sync ]]
+ [[ ! -n '' ]]
+ [[ ! -n '' ]]
+ [[ ! -n '' ]]
+ [[ 1000 -eq 0 ]]
+ [[ -n 1 ]]
+ pacmanarg=(${pacmanarg[@]/-e/})
+ [[ -n 1 ]]
+ [[ -n '' ]]
+ [[ -n 1 ]]
+ [[ -n '' ]]
+ [[ ! -n vim ]]
+ [[ sync = sync ]]
+ [[ ! -n '' ]]
+ [[ ! -n '' ]]
+ [[ ! -n '' ]]
+ [[ diff = diff ]]
+ [[ /home/bibek/.cache/pacaur = /tmp/pacaurtmp-bibek ]]
+ [[ ! -w /home/bibek/.cache/pacaur ]]
+ [[ -z yum ]]
+ [[ -z yum ]]
+ [[ -n '' ]]
+ case $operation in
+ [[ -n '' ]]
+ [[ -n '' ]]
+ [[ -n '' ]]
+ [[ -n '' ]]
+ [[ -z yum ]]
+ ClassifyPkgs yum
+ local noaurpkgs norepopkgs
+ [[ true = true ]]
+ [[ -n '' ]]
+ [[ -n '' ]]
+ [[ ! -n '' ]]
+ [[ ! -n '' ]]
+ unset noaurpkgs
+ for i in "${pkgs[@]}"
+ [[ yum == aur/* ]]
+ noaurpkgs+=($i)
+ [[ -n yum ]]
+ norepopkgs=($(LANG=C $pacmanbin -Sp ${noaurpkgs[@]} 2>&1 >/dev/null | awk '{print $NF}'))
++ LANG=C
++ pacman -Sp yum
++ awk '{print $NF}'
+ for i in "${norepopkgs[@]}"
+ [[ !  yum  =~ [a-zA-Z0-9.+-]+/yum[^a-zA-Z0-9.+-] ]]
+ aurpkgs+=($i)
+ repopkgs=($(grep -xvf <(printf '%s\n' "${aurpkgs[@]}") <(printf '%s\n' "${noaurpkgs[@]}")))
+++ printf '%s\n' yum
++ grep -xvf /dev/fd/63 /dev/fd/62
+++ printf '%s\n' yum
+ [[ -n '' ]]
+ [[ -n yum ]]
+ [[ -n '' ]]
+ [[ true = true ]]
+ [[ ! -n '' ]]
+ Note w 'Package(s) yum not found in repositories, trying AUR...'
+ case "$1" in
+ echo -e ':: Package(s) yum not found in repositories, trying AUR...'
:: Package(s) yum not found in repositories, trying AUR...
+ Core yum
+ GetIgnoredPkgs
+ ignoredpkgs+=($(grep '^IgnorePkg' '/etc/pacman.conf' | awk -F '=' '{print $NF}' | tr -d "'\""))
++ grep '^IgnorePkg' /etc/pacman.conf
++ awk -F = '{print $NF}'
++ tr -d ''\''"'
+ [[ -e /home/bibek/.config/cower/config ]]
+ ignoredpkgs=(${ignoredpkgs[@]//,/ })
+ [[ -n '' ]]
+ IgnoreChecks
+ local checkaurpkgs checkaurpkgsAver checkaurpkgsQver i
+ [[ -z '' ]]
+ return
+ DepsSolver
+ local i
+ Note i 'resolving dependencies...'
+ case "$1" in
+ echo -e ':: resolving dependencies...'
:: resolving dependencies...
+ for i in "${!aurpkgs[@]}"
++ awk -F '>|<|=' '{print $1}'
+ aurpkgs[$i]=yum
+ deps+=(${aurpkgs[@]})
+ [[ -z '' ]]
+ foreignpkgs=($($pacmanbin -Qmq))
++ pacman -Qmq
+ FindDepsAur yum
+ local aurpkgsproviders aurpkgsprovidersname errdepsname depspkgs depspkgstmp depspkgsaurtmp repodepstmp
+ local builtpkg vcsdepspkgs assumedepspkgs prevname prevver prevaurver i j
+ [[ -n '' ]]
+ [[ -z '' ]]
++ DownloadJson yum
++ local urlencodedpkgs urlargs
++ urlencodedpkgs=($(sed 's/+/%2b/g;s/@/%40/g' <<< $@))
+++ sed 's/+/%2b/g;s/@/%40/g'
+++ printf '&arg[]=%s' yum
++ urlargs='&arg[]=yum'
++ [[ 10 -lt 8125 ]]
++ curl -sfg --compressed -C 0 'https://aur.archlinux.org/rpc.php?type=info&v=5&arg[]=yum'
+ json=
+ aurpkgsproviders=($(GetJson "array" "$json" "Provides"))
++ GetJson array '' Provides
++ json_verify -q
++ Note e 'Could not connect to the AUR'
++ case "$1" in
++ echo -e ':: Could not connect to the AUR'
:: Could not connect to the AUR
++ exit 1
+ [[ -n '' ]]
+ [[ -z '' ]]
+ errdepsname=($(GetJson "var" "$json" "Name"))
++ GetJson var '' Name
++ json_verify -q
++ Note e 'Could not connect to the AUR'
++ case "$1" in
++ echo -e ':: Could not connect to the AUR'
:: Could not connect to the AUR
++ exit 1
+ errdeps+=($(grep -xvf <(printf '%s\n' "${aurpkgs[@]}") <(printf '%s\n' "${errdepsname[@]}")))
++ grep -xvf /dev/fd/63 /dev/fd/62
+++ printf '%s\n' yum
+++ printf '%s\n'
+ errdeps+=($(grep -xvf <(printf '%s\n' "${errdepsname[@]}") <(printf '%s\n' "${aurpkgs[@]}")))
+++ printf '%s\n'
++ grep -xvf /dev/fd/63 /dev/fd/62
+++ printf '%s\n' yum
+ [[ -n '' ]]
+ depspkgs=($(GetJson "array" "$json" "Depends"))
++ GetJson array '' Depends
++ json_verify -q
++ Note e 'Could not connect to the AUR'
++ case "$1" in
++ echo -e ':: Could not connect to the AUR'
:: Could not connect to the AUR
++ exit 1
+ [[ ! -n '' ]]
+ depspkgs+=($(GetJson "array" "$json" "MakeDepends"))
++ GetJson array '' MakeDepends
++ json_verify -q
++ Note e 'Could not connect to the AUR'
++ case "$1" in
++ echo -e ':: Could not connect to the AUR'
:: Could not connect to the AUR
++ exit 1
+ depspkgs+=($(GetJson "array" "$json" "CheckDepends"))
++ GetJson array '' CheckDepends
++ json_verify -q
++ Note e 'Could not connect to the AUR'
++ case "$1" in
++ echo -e ':: Could not connect to the AUR'
:: Could not connect to the AUR
++ exit 1
+ [[ x86_64 == \i\6\8\6 ]]
+ [[ ! -n '' ]]
+ [[ ! -n '' ]]
+ depspkgs=($($pacmanbin -T ${depspkgs[@]} | sort -u))
++ pacman -T
++ sort -u
+ unset depspkgsaur
+ [[ -n '' ]]
+ unset depspkgs
+ [[ -n '' ]]
+ [[ -n '' ]]
+ [[ -n '' ]]
++ DownloadJson yum
++ local urlencodedpkgs urlargs
++ urlencodedpkgs=($(sed 's/+/%2b/g;s/@/%40/g' <<< $@))
+++ sed 's/+/%2b/g;s/@/%40/g'
+++ printf '&arg[]=%s' yum
++ urlargs='&arg[]=yum'
++ [[ 10 -lt 8125 ]]
++ curl -sfg --compressed -C 0 'https://aur.archlinux.org/rpc.php?type=info&v=5&arg[]=yum'
+ json=
+ depsAname=($(GetJson "var" "$json" "Name"))
++ GetJson var '' Name
++ json_verify -q
++ Note e 'Could not connect to the AUR'
++ case "$1" in
++ echo -e ':: Could not connect to the AUR'
:: Could not connect to the AUR
++ exit 1
+ depsAver=($(GetJson "var" "$json" "Version"))
++ GetJson var '' Version
++ json_verify -q
++ Note e 'Could not connect to the AUR'
++ case "$1" in
++ echo -e ':: Could not connect to the AUR'
:: Could not connect to the AUR
++ exit 1
+ depsAood=($(GetJson "var" "$json" "OutOfDate"))
++ GetJson var '' OutOfDate
++ json_verify -q
++ Note e 'Could not connect to the AUR'
++ case "$1" in
++ echo -e ':: Could not connect to the AUR'
:: Could not connect to the AUR
++ exit 1
+ for i in "${errdeps[@]}"
+ Note f 'no results found for yum'
+ case "$1" in
+ echo -e ':: no results found for yum'
:: no results found for yum
+ [[ -n yum ]]
+ exit 1

@rmarquis
Copy link
Owner

The curl call fails. Check your proxy settings, and also check if cower works as expected.

curl -sfg --compressed -C 0 'https://aur.archlinux.org/rpc.php?type=info&v=5&arg[]=yum'

@bibek22
Copy link
Author

bibek22 commented Nov 16, 2016

Yes, cower does work. it's able to find the package.
curl -sfg --compressed -C 0 'https://aur.archlinux.org/rpc.php?type=info&v=5&arg[]=yum'

{"version":5,"type":"multiinfo","resultcount":1,"results":[{"ID":226332,"Name":"yum","PackageBaseID":22976,"PackageBase":"yum","Version":"3.4.3-6","Description":"a popular channel based package manager for RPM distros.","URL":"http:\/\/yum.baseurl.org\/","NumVotes":56,"Popularity":1.675042,"OutOfDate":null,"Maintainer":"axil42","FirstSubmitted":1231437741,"LastModified":1440858825,"URLPath":"\/cgit\/aur.git\/snapshot\/yum.tar.gz","Depends":["python2","intltool","urlgrabber","rpm-org","python2-pysqlite","yum-metadata-parser","python2-iniparse","python2-pyliblzma"],"Groups":["system"],"License":["GPL"],"Keywords":["fedora","python","yum"]}]}

@rmarquis
Copy link
Owner

Could be some permission issue - I honestly don't know. In any case, you might want to try the latest code in master branch (pacaur-git) as some of that code has been rewritten since then.

@bibek22
Copy link
Author

bibek22 commented Nov 17, 2016

So, i installed the one from master branch pacaur-git and i get another set of errors now. I tried copying the source codes from the github itself. didn't work either.

pacaur -S yum

:: Package yum not found in repositories, trying AUR...
:: resolving dependencies...
:: Failed to parse JSON
:: Failed to parse JSON
:: Failed to parse JSON
:: Failed to parse JSON
:: Failed to parse JSON
:: Failed to parse JSON
:: Failed to parse JSON
:: Failed to parse JSON
:: Failed to parse JSON
:: Failed to parse JSON
:: Failed to parse JSON
:: Failed to parse JSON
:: no results found for yum

@rmarquis
Copy link
Owner

It is the same error. The curl call fails for some reason, or its output cannot be assigned to its corresponding variable. No idea what;s wrong here, but it's more than likely an issue on your end. I'm afraid you are on your own.

@rmarquis rmarquis added this to the 4.7.x - new features milestone Nov 17, 2016
@rmarquis
Copy link
Owner

Any news on this? There is nothing I can do as the issue is on your end, so I'll close this issue, but I'm interested in knowing what the issue is/was.

@jmwolff3
Copy link

I was having this issue and resolved it by running trust extract-compat. After this, I was able to see valid json returned from curl and no longer received the :: Failed to parse JSON errors.

I'm leaving this here because I didn't see the solution posted anywhere and this thread showed up on every search I conducted.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants