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

Breakage on skipping a package upgrade: "no results found for error)" #267

Open
neitsab opened this issue Aug 31, 2014 · 52 comments
Open

Breakage on skipping a package upgrade: "no results found for error)" #267

neitsab opened this issue Aug 31, 2014 · 52 comments

Comments

@neitsab
Copy link
Contributor

neitsab commented Aug 31, 2014

Hi, when asking pacaur to skip a problematic package "upgrade" (it was a fresh installation actually) it ended up on this error:

:: The following package cannot be upgraded due to unresolvable dependencies:
      haskell-gitit

:: Do you want to skip the above package for this upgrade? [y/N] y
looking for inter-conflicts...
 there is nothing to do
:: Package(s) error) not found in repositories, trying AUR...
:: resolving dependencies...
:: no results found for error)

Answering No probaby gives a better idea of where the problem stems from:

:: The following package cannot be upgraded due to unresolvable dependencies:
      haskell-gitit

:: Do you want to skip the above package for this upgrade? [y/N] n
error: failed to prepare transaction (unexpected error)
:: Package(s) error) not found in repositories, trying AUR...
:: resolving dependencies...
:: no results found for error)

Doing the same in French and English. Maybe an incorrect handling of space in a certain string?
Here is the full debug log:

$ LANG=C bash -x pacaur -S haskell-gitit
+ version=4.2.10
+ LC_COLLATE=C
+ TEXTDOMAIN=pacaur
+ TEXTDOMAINDIR=/usr/share/locale
+ 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')
++ CARCH=i686
++ CHOST=i686-pc-linux-gnu
++ CPPFLAGS=-D_FORTIFY_SOURCE=2
++ CFLAGS='-march=native -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4'
++ CXXFLAGS='-march=native -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4'
++ LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro
++ MAKEFLAGS=-j2
++ DEBUG_CFLAGS='-g -fvar-tracking-assignments'
++ DEBUG_CXXFLAGS='-g -fvar-tracking-assignments'
++ BUILDENV=(fakeroot !distcc color !ccache check !sign)
++ BUILDDIR=/tmp/build
++ OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !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/neitsab/.makepkg.conf ]]
+ tmpdir=/tmp/pacaurtmp-neitsab
+ builddir=/tmp/build
+ editor=vi
+ editpkgbuild=true
+ editinstall=true
+ fallback=true
+ clean=true
+ cleandevel=true
+ sudoloop=false
+ sortbyvotes=true
+ hybridsolver=false
+ pacmanbin=pacman
+ [[ -n '' ]]
+ configdir=/etc/xdg/pacaur
+ userconfigdir=/home/neitsab/.config/pacaur
+ source /etc/xdg/pacaur/config
+ [[ -r /home/neitsab/.config/pacaur/config ]]
+ source /home/neitsab/.config/pacaur/config
++ editor=nano
+ [[ -d /tmp/pacaurtmp-neitsab ]]
+ [[ ! -w /tmp/pacaurtmp-neitsab ]]
+ [[ ! -d /tmp/pacaurtmp-neitsab ]]
+ [[ ! -d /tmp/build ]]
+ trap ctrlc INT
+ args=("$@")
+ for i in '"${args[@]}"'
+ [[ -S =~ ^-[a-zA-Z0-9] ]]
+ opts+=("$i")
+ for i in '"${args[@]}"'
+ [[ haskell-gitit =~ ^-[a-zA-Z0-9] ]]
+ count=0
+ [[ -n -S ]]
+ getopts sidmykufecqrahvVDQRSTUbglnoptw-: OPT
+ pacmanarg+=("-$OPT")
+ case "$OPT" in
+ pacS=1
+ operation=sync
+ coweropts+=("-f")
+ [[ -S =~ w ]]
+ installpkg=true
+ [[ -S =~ g ]]
+ [[ -S =~ l ]]
+ [[ -S =~ p ]]
+ getopts sidmykufecqrahvVDQRSTUbglnoptw-: OPT
+ [[ -z haskell-gitit ]]
+ pkgs+=("${!OPTIND}")
+ shift 2
+ OPTIND=1
+ [[ -n '' ]]
++ grep '^Color' /etc/pacman.conf
+ [[ -n Color ]]
+ [[ '' != \n\e\v\e\r ]]
+ [[ '' = \a\l\w\a\y\s ]]
+ coweropts+=("--color=auto")
+ reset='\e[0m'
+ colorR='\e[1;31m'
+ colorG='\e[1;32m'
+ colorY='\e[1;33m'
+ colorB='\e[1;34m'
+ colorM='\e[1;35m'
+ colorC='\e[1;36m'
+ colorW='\e[1;39m'
+ pacmanarg=(${pacmanarg[@]/--/})
+ pacmanarg=(${pacmanarg[@]/-r/})
+ pacmanarg=(${pacmanarg[@]/-a/})
+ [[ -n 1 ]]
+ pacmanarg=(${pacmanarg[@]/-e/})
+ [[ -n 1 ]]
+ [[ -n '' ]]
+ [[ -n 1 ]]
+ [[ -n '' ]]
+ [[ ! -n nano ]]
+ [[ ! -w /tmp/build ]]
+ [[ -z haskell-gitit ]]
+ [[ -n '' ]]
+ [[ -n '' ]]
+ case $operation in
+ [[ -n '' ]]
+ [[ -n '' ]]
+ [[ -n '' ]]
+ [[ -n '' ]]
+ [[ -z haskell-gitit ]]
+ ClassifyPkgs haskell-gitit
+ [[ true = true ]]
+ [[ -n '' ]]
+ [[ -n '' ]]
+ [[ ! -n '' ]]
+ [[ ! -n '' ]]
+ for i in '"${pkgs[@]}"'
+ [[ haskell-gitit == aur/* ]]
+ aurpkgs+=($($pacmanbin -Sp "$i" 2>&1 >/dev/null | awk -F " " '{print $NF}'))
++ pacman -Sp haskell-gitit
++ awk -F ' ' '{print $NF}'
+ pkgs=(${pkgs[@]/aur\//})
+ repopkgs=($(LC_COLLATE=C comm -23 <(tr ' ' '\n' <<< ${pkgs[@]} | LC_COLLATE=C sort -u) <(tr ' ' '\n' <<< ${aurpkgs[@]} | LC_COLLATE=C sort -u)))
++ LC_COLLATE=C
++ comm -23 /dev/fd/63 /dev/fd/62
+++ LC_COLLATE=C
+++ sort -u
+++ tr ' ' '\n'
+++ tr ' ' '\n'
+++ LC_COLLATE=C
+++ sort -u
+ [[ -n haskell-gitit ]]
+ sudo pacman -S haskell-gitit
resolving dependencies...
warning: cannot resolve "haskell-random=1.0.1.1-56", a dependency of "haskell-missingh"
warning: cannot resolve "haskell-missingh=1.2.1.0-2", a dependency of "haskell-configfile"
warning: cannot resolve "haskell-configfile=1.1.2-2", a dependency of "haskell-gitit"
warning: cannot resolve "haskell-http=4000.2.17-2", a dependency of "haskell-gitit"
warning: cannot resolve "haskell-monad-control=0.3.3.0-2", a dependency of "haskell-happstack-server"
warning: cannot resolve "haskell-transformers-base=0.4.2-2", a dependency of "haskell-happstack-server"
warning: cannot resolve "haskell-happstack-server=7.3.7-2", a dependency of "haskell-gitit"
warning: cannot resolve "haskell-pandoc=1.12.4.2-14", a dependency of "haskell-gitit"
warning: cannot resolve "haskell-pandoc-types=1.12.4.1-2", a dependency of "haskell-gitit"
warning: cannot resolve "haskell-random=1.0.1.1-56", a dependency of "haskell-gitit"
warning: cannot resolve "haskell-http=4000.2.17-2", a dependency of "haskell-recaptcha"
warning: cannot resolve "haskell-recaptcha=0.1.0.2-10", a dependency of "haskell-gitit"
warning: cannot resolve "haskell-safe=0.3.7-1", a dependency of "haskell-gitit"
warning: cannot resolve "haskell-tagsoup=0.13.1-62", a dependency of "haskell-gitit"
warning: cannot resolve "haskell-safe=0.3.7-1", a dependency of "haskell-uri"
warning: cannot resolve "haskell-uri=0.1.6.2-4", a dependency of "haskell-gitit"
warning: cannot resolve "haskell-attoparsec=0.11.3.4-5", a dependency of "haskell-xss-sanitize"
warning: cannot resolve "haskell-attoparsec=0.11.3.4-5", a dependency of "haskell-css-text"
warning: cannot resolve "haskell-css-text=0.1.2.1-10", a dependency of "haskell-xss-sanitize"
warning: cannot resolve "haskell-tagsoup=0.13.1-62", a dependency of "haskell-xss-sanitize"
warning: cannot resolve "haskell-xss-sanitize=0.3.5.2-11", a dependency of "haskell-gitit"
:: The following package cannot be upgraded due to unresolvable dependencies:
      haskell-gitit

:: Do you want to skip the above package for this upgrade? [y/N] 
error: failed to prepare transaction (unexpected error)
+ [[ -n error) ]]
+ [[ -n '' ]]
+ [[ true = true ]]
+ [[ ! -n '' ]]
+ note w 'Package(s) \e[1;39merror)\e[0m not found in repositories, trying \e[1;35mAUR\e[0m...'
+ case "$1" in
+ echo -e '\e[1;33m::\e[0m Package(s) \e[1;39merror)\e[0m not found in repositories, trying \e[1;35mAUR\e[0m...'
:: Package(s) error) not found in repositories, trying AUR...
+ Core 'error)'
+ getignoredpkgs
+ ignoredpkgs+=($(grep '^IgnorePkg' '/etc/pacman.conf' | cut -d '=' -f 2- | tr -d "'\""))
++ grep '^IgnorePkg' /etc/pacman.conf
++ cut -d = -f 2-
++ tr -d ''\''"'
+ [[ -e /home/neitsab/.config/cower/config ]]
+ ignoredpkgs=(${ignoredpkgs[@]//,/ })
+ [[ -n '' ]]
+ IgnoreChecks
+ [[ -z '' ]]
+ return
+ DepsSolver
+ note i 'resolving dependencies...'
+ case "$1" in
+ echo -e '\e[1;34m::\e[0m resolving dependencies...'
:: resolving dependencies...
+ (( i=0 ))
+ (( i<1 ))
++ awk -F '>|<|=' '{print $1}'
+ aurpkgs[$i]='error)'
+ (( i++ ))
+ (( i<1 ))
+ deps+=("${aurpkgs[@]}")
+ FindDepsAur 'error)'
+ [[ -n '' ]]
+ [[ -z '' ]]
+ depspkgsaur=("${aurpkgs[@]}")
+ downloadjson 'error)'
+ aururl='https://aur.archlinux.org/rpc.php?type=multiinfo&v=3'
+ urlencodedpkgs=($(sed 's/+/%2b/g' <<< $@ | sed 's/@/%40/g'))
++ sed s/+/%2b/g
++ sed s/@/%40/g
++ printf '&arg[]=%s' 'error)'
+ urlargs='&arg[]=error)'
+ [[ 13 -lt 8125 ]]
+ curl -sfg --compressed -C 0 'https://aur.archlinux.org/rpc.php?type=multiinfo&v=3&arg[]=error)' -o /tmp/pacaurtmp-neitsab/rpc.json
+ errdeps+=($(LC_COLLATE=C comm -3 <(tr ' ' '\n' <<< $(getjsonvar "Name") | sort -u) <(tr ' ' '\n' <<< ${depspkgsaur[@]} | sort -u)))
++ LC_COLLATE=C
++ comm -3 /dev/fd/63 /dev/fd/62
+++ sort -u
+++ sort -u
+++ tr ' ' '\n'
++++ getjsonvar Name
+++ tr ' ' '\n'
++++ awk -F '#' '{print $2}'
++++ sed -r s/Name:/Name#/g
++++ grep -Po 'Name:.*'
++++ json_reformat
++++ tr -d '", '
+ depspkgs=($(getjsonarray "Depends"))
++ getjsonarray Depends
++ json_reformat
++ tr -d ', '
++ sed -e '/^"Depends"/,/]/!d'
++ tr -d '\n'
++ tr -d '\"'
++ tr '\n' ' '
++ tr -d '[]"'
++ awk -F : '{print $2}'
++ sed 's/] /]\n/g'
+ depspkgs+=($(getjsonarray "MakeDepends"))
++ getjsonarray MakeDepends
++ json_reformat
++ tr -d ', '
++ tr -d '\n'
++ sed -e '/^"MakeDepends"/,/]/!d'
++ sed 's/] /]\n/g'
++ awk -F : '{print $2}'
++ tr -d '[]"'
+ [[ false = true ]]
+ depspkgs=($($pacmanbin -T "${depspkgs[@]}" | sort -u))
++ pacman -T
++ sort -u
+ unset depspkgsaur
+ [[ -n '' ]]
+ unset depspkgs
+ [[ -n '' ]]
+ [[ -n '' ]]
+ downloadjson 'error)'
+ aururl='https://aur.archlinux.org/rpc.php?type=multiinfo&v=3'
+ urlencodedpkgs=($(sed 's/+/%2b/g' <<< $@ | sed 's/@/%40/g'))
++ sed s/+/%2b/g
++ sed s/@/%40/g
++ printf '&arg[]=%s' 'error)'
+ urlargs='&arg[]=error)'
+ [[ 13 -lt 8125 ]]
+ curl -sfg --compressed -C 0 'https://aur.archlinux.org/rpc.php?type=multiinfo&v=3&arg[]=error)' -o /tmp/pacaurtmp-neitsab/rpc.json
+ depsAname=($(getjsonvar "Name"))
++ getjsonvar Name
++ json_reformat
++ tr -d '", '
++ awk -F '#' '{print $2}'
++ sed -r s/Name:/Name#/g
++ grep -Po 'Name:.*'
+ depsAver=($(getjsonvar "Version"))
++ getjsonvar Version
++ json_reformat
++ tr -d '", '
++ sed -r s/Version:/Version#/g
++ awk -F '#' '{print $2}'
++ grep -Po 'Version:.*'
+ depsAood=($(getjsonvar "OutOfDate"))
++ getjsonvar OutOfDate
++ json_reformat
++ tr -d '", '
++ grep -Po 'OutOfDate:.*'
++ sed -r s/OutOfDate:/OutOfDate#/g
++ awk -F '#' '{print $2}'
+ (( i=0 ))
+ (( i<0 ))
+ [[ false = false ]]
+ depsAlastmodified=($(getjsonvar "LastModified"))
++ getjsonvar LastModified
++ json_reformat
++ awk -F '#' '{print $2}'
++ grep -Po 'LastModified:.*'
++ sed -r s/LastModified:/LastModified#/g
++ tr -d '", '
+ (( i=0 ))
+ (( i<0 ))
+ for i in '"${errdeps[@]}"'
+ note f 'no results found for error)'
+ case "$1" in
+ echo -e '\e[1;31m::\e[0m no results found for error)'
:: no results found for error)
+ [[ -n error) ]]
+ exit 1
@rmarquis
Copy link
Owner

Hi, thanks for the report. Someone else reported a somewhat similar issue in the AUR comments a few days ago, but I can't reproduce.

From what I can see in the debug output, pacman finds the haskell-gitit package but can't resolve its dependencies tree. In turns, the error code is passed to pacaur that tries to find that "package" in the AUR.

The responsible part of the code is in ClassifyPkgs(), which isn't robust enough to take care of "unexpected" pacman errors.

However, I'm not sure why this error happens in the first place. The haskell-gitit package doesn't seem to exist at all, and pacaur correctly stops on my machine. If this constantly happens on your machine, could you tell me more about your haskell packages (haskell binary repository enabled?, ...).

@rmarquis rmarquis added the bug label Aug 31, 2014
@rmarquis rmarquis added this to the 4.2.x - maintenance milestone Aug 31, 2014
@rmarquis
Copy link
Owner

Relevant commit here: 5987e2a.

It's kind of easy to make the current code robuster, but it breaks translation support. I'll need to figure out another way of handling this issue.

@neitsab
Copy link
Contributor Author

neitsab commented Sep 1, 2014

Thanks for your quick answer, as always.

In an effort to remain concise I forgot to mention the context: haskell-gitit is indeed not part of the official repos but provided by the ArchHaskell group, which maintains two haskell repos (-core and -happstack). This is why you can't find it, you would need to add them to your /etc/pacman.conf file in order to check them.

I enabled those repos in order to get easier access --well, to get any access actually-- to the two following packages found in the AUR, but uninstallable as is: haskell-pandoc and gitit, which relies upon the former.
Their PKGBUILDs are among the most "lacking" I've stumbled upon, with many missing deps and a need to be entirely rebuilt each time one is updated... So the recommended solution is to get them from the custom repo.

Anyway, I suspect this has mostly to do with the packages' metada in the ArchHaskell-provided repos. I sent an email yesterday to their mailing list but it seems I have to subscribe first for my message to appear there (ugh).
I'd rather not have pacaur localisation removed just for this marginal breakage, which doesn't disturb at all its use with "correct" packages. I just wanted to report this bug and give some debug information in case of, but there are more importants issues to be dealt with I believe :-)

Thanks

@rmarquis
Copy link
Owner

rmarquis commented Sep 1, 2014

Thank you, I can indeed reproduce the problem now.

Yes, the main issue seems due to inconsistencies in the additional Haskell repositories themselves. I had seen a somewhat similar issue in the past (to make it short, I was playing badly with local built packages) and I deemed it not worth fixing, but this is the first time I see an entire repository causing an error. This is an exceptional situation, but the fact that pacaur code isn't robust enough to handle it is a flaw and should be fixed.

There are many parameters to take into account in order to fix the current ClassifyPkgs() code and it isn't trivial, but I'll have a look.

@neitsab
Copy link
Contributor Author

neitsab commented Sep 1, 2014

Interesting. I appreciate your consideration for this, robutness is of course an always sought-after aspect of a software. I hope you'll manage to wrap your head around this particuliar issue.

@djmattyg007
Copy link

I regularly encounter this issue, except with "dependencies)", not "error)". I've never looked into the cause though. I'm not using any custom repositories.

@rmarquis
Copy link
Owner

@djmattyg007 > Which are the repositories enabled? Or with which packages does that issue occur?

@djmattyg007
Copy link

@rmarquis I have core, extra and community enabled. I'm running a 32-bit
system, so have no need for multilib.

On Sun, Dec 28, 2014 at 09:55:54AM -0800, Remy Marquis wrote:

@djmattyg007 > Which are the repositories enabled?


Reply to this email directly or view it on GitHub.*

@rmarquis
Copy link
Owner

Please provide a debug output if the issue occurs again (bash -x pacaur your_command). I cannot do anything without more information.

@rbieb
Copy link

rbieb commented Dec 29, 2014

Result of "bash -x pacaur -Syu" : https://paste.ee/p/yfht3

I did not actually skip an update. The custom repositories I have enabled are:

  • repo-ck
  • infinality-bundle
  • infinality-bundle-fonts
  • multilib

@rmarquis
Copy link
Owner

@Nordic89: First, ensure to rebuild expac. The new version is still in [testing]. Alternatively, install expac-git from AUR, or wait that the new expac arrives in [extra].

Yes, pacman 4.2 and the new libalpm has arrived.

Please confirm if this solves the issue for you.

@kiicia
Copy link

kiicia commented Dec 29, 2014

I've just got the same message from pacaur (:: no results found for error).

I was trying to upgrade my system with pacaur -Syu after holiday break but after normal pacman update, after :: Starting AUR upgrade... I got some errors related to being unable to run pacaur due to pacman local files consistency... I missed exact error TBH. I fixed (?) it by regenerating pacman db and keyring.

But even after that I am unable to get rid of that last :: no results found for error...

Here is full output: https://paste.ee/p/8oWel

@rmarquis
Copy link
Owner

Pacman 4.2 has landed in [core], and thus cower must be recompiled, and you need expac 4-3 (which is now in [extra]).

Please don't report issue until you're sure you've done your pacman/cower/expac update homework.

@kiicia
Copy link

kiicia commented Dec 29, 2014

Yeah, I saw that a second after submitting above comment, sorry.

I am trying to cleanup and upgrade everything properely now, still have some problems with signatures tho...

@ronjouch
Copy link

Same issue, recompiling cower worked for me. Thanks for the help and for pacaur :)

@rmarquis
Copy link
Owner

rmarquis commented Jan 1, 2015

Since the ClassifyPkgs() function use the "pacman -Sp" function more or less as a hack to:

  • check for existing binary packages
  • handle providers
  • handle versioning
  • handle groups
  • handle repo/package syntax

I'll need a replacement function that handles all of these, plus handles the errors correctly.

Two possibilities:

  • pacman -Sp call could be modified so it doesn't stop at errors (but also displays correct results), and check for binary packages first, instead of non-existing binary packages.
  • expac could be expanded to support versioning. This is probably the preferred option.

@rmarquis
Copy link
Owner

rmarquis commented Jan 5, 2015

This bug is very tricky to solve. Reimplementing it in another way with all the supported features clearly gives me headache.

As a workaround, I've implemented an early check in a1c53bc that ensures the package name doesn't contain ")". It should catch the binary repositories errors. This won't catch libalpm upgrade issue, but that's a different situation.

Closing, please reopen if this happens again (and attach full details).

@rmarquis
Copy link
Owner

Polish translation broke because the error string isn't similar anymore to the English string. See #302.

The ClassifyPkgs() needs to be made more robust in some way. Polish translation will be disabled in the meantime. Alternatively, drop translation support entirely.

@rmarquis rmarquis reopened this Jan 13, 2015
@rmarquis rmarquis modified the milestones: 4.3.x - new features, 4.2.x - maintenance Jan 13, 2015
@xinulsw
Copy link

xinulsw commented Jan 19, 2015

I don't know if this is relevant with reference to broken polish translation, but when installing returns error "no results...", updating with command pacaur -Syu works. Today for example i've tried install xfce-theme-greyibird with no luck, but upgraded it successfully.

@rmarquis
Copy link
Owner

@xinulsw > When you get the chance next time, I'd appreciate to see a debug output. Both install (-S) and update (-Syu) commands call the same ClassifyPkgs() function.

@xinulsw
Copy link

xinulsw commented Feb 2, 2015

Sorry for delay, here is debug for trying to install greybird theme:
'''
pacaur -S xfce-theme-greybird-git --debug
debug: pacman v4.2.0 - libalpm v9.0.0
debug: parseconfig: options pass
debug: config: attempting to read file /etc/pacman.conf
debug: config: finish section '(null)'
debug: config: new section 'options'
debug: config: HoldPkg: pacman
debug: config: HoldPkg: glibc
debug: config: arch: x86_64
debug: config: SigLevel: Required
debug: config: SigLevel: DatabaseOptional
debug: config: LocalFileSigLevel: Optional
debug: config: finish section 'options'
debug: config: new section 'core'
debug: config file /etc/pacman.conf, line 75: including /etc/pacman.d/mirrorlist
debug: config: attempting to read file /etc/pacman.d/mirrorlist
debug: config: finished parsing /etc/pacman.d/mirrorlist
debug: config: finish section 'core'
debug: config: new section 'extra'
debug: config file /etc/pacman.conf, line 78: including /etc/pacman.d/mirrorlist
debug: config: attempting to read file /etc/pacman.d/mirrorlist
debug: config: finished parsing /etc/pacman.d/mirrorlist
debug: config: finish section 'extra'
debug: config: new section 'community'
debug: config file /etc/pacman.conf, line 84: including /etc/pacman.d/mirrorlist
debug: config: attempting to read file /etc/pacman.d/mirrorlist
debug: config: finished parsing /etc/pacman.d/mirrorlist
debug: config: finish section 'community'
debug: config: new section '(null)'
debug: config: finished parsing /etc/pacman.conf
debug: setup_libalpm called
debug: option 'logfile' = /var/log/pacman.log
debug: option 'gpgdir' = /etc/pacman.d/gnupg/
debug: option 'cachedir' = /var/cache/pacman/pkg/
debug: parseconfig: repo pass
debug: config: attempting to read file /etc/pacman.conf
debug: config: finish section '(null)'
debug: config: new section 'options'
debug: config: finish section 'options'
debug: config: new section 'core'
debug: config file /etc/pacman.conf, line 75: including /etc/pacman.d/mirrorlist
debug: config: attempting to read file /etc/pacman.d/mirrorlist
debug: config: finished parsing /etc/pacman.d/mirrorlist
debug: config: finish section 'core'
debug: registering sync database 'core'
debug: database path for tree core set to /var/lib/pacman/sync/core.db
debug: "/var/lib/pacman/sync/core.db.sig" is not readable: Nie ma takiego pliku ani katalogu
debug: sig path /var/lib/pacman/sync/core.db.sig could not be opened
debug: missing optional signature
debug: setting usage of 15 for core repoistory
debug: adding new server URL to database 'core': http://archlinux.polymorf.fr/core/os/x86_64
debug: adding new server URL to database 'core': http://mirror.de.leaseweb.net/archlinux/core/os/x86_64
debug: config: new section 'extra'
debug: config file /etc/pacman.conf, line 78: including /etc/pacman.d/mirrorlist
debug: config: attempting to read file /etc/pacman.d/mirrorlist
debug: config: finished parsing /etc/pacman.d/mirrorlist
debug: config: finish section 'extra'
debug: registering sync database 'extra'
debug: database path for tree extra set to /var/lib/pacman/sync/extra.db
debug: "/var/lib/pacman/sync/extra.db.sig" is not readable: Nie ma takiego pliku ani katalogu
debug: sig path /var/lib/pacman/sync/extra.db.sig could not be opened
debug: missing optional signature
debug: setting usage of 15 for extra repoistory
debug: adding new server URL to database 'extra': http://archlinux.polymorf.fr/extra/os/x86_64
debug: adding new server URL to database 'extra': http://mirror.de.leaseweb.net/archlinux/extra/os/x86_64
debug: config: new section 'community'
debug: config file /etc/pacman.conf, line 84: including /etc/pacman.d/mirrorlist
debug: config: attempting to read file /etc/pacman.d/mirrorlist
debug: config: finished parsing /etc/pacman.d/mirrorlist
debug: config: finish section 'community'
debug: registering sync database 'community'
debug: database path for tree community set to /var/lib/pacman/sync/community.db
debug: "/var/lib/pacman/sync/community.db.sig" is not readable: Nie ma takiego pliku ani katalogu
debug: sig path /var/lib/pacman/sync/community.db.sig could not be opened
debug: missing optional signature
debug: setting usage of 15 for community repoistory
debug: adding new server URL to database 'community': http://archlinux.polymorf.fr/community/os/x86_64
debug: adding new server URL to database 'community': http://mirror.de.leaseweb.net/archlinux/community/os/x86_64
debug: config: new section '(null)'
debug: config: finished parsing /etc/pacman.conf
debug: loading package cache for repository 'core'
debug: opening archive /var/lib/pacman/sync/core.db
debug: added 206 packages to package cache for db 'core'
debug: loading package cache for repository 'extra'
debug: opening archive /var/lib/pacman/sync/extra.db
debug: added 3098 packages to package cache for db 'extra'
debug: loading package cache for repository 'community'
debug: opening archive /var/lib/pacman/sync/community.db
debug: added 3742 packages to package cache for db 'community'
debug: loading group cache for repository 'core'
debug: loading group cache for repository 'extra'
debug: loading group cache for repository 'community'
błąd: pakiet xfce-theme-greybird-git nie został znaleziony
debug: unregistering database 'local'
debug: unregistering database 'core'
debug: freeing package cache for repository 'core'
debug: freeing group cache for repository 'core'
debug: unregistering database 'extra'
debug: freeing package cache for repository 'extra'
debug: freeing group cache for repository 'extra'
debug: unregistering database 'community'
debug: freeing package cache for repository 'community'
debug: freeing group cache for repository 'community'
:: Package(s) znaleziony not found in repositories, trying AUR...
:: resolving dependencies...
:: no results found for znaleziony
'''
debug: "/var/lib/pacman/sync/core.db.sig" is not readable: Nie ma takiego pliku ani katalogu in english: No such file or directory.
błąd: pakiet xfce-theme-greybird-git nie został znaleziony in english: error: package ... was not found.

Unfortunately i haven't any package right now to upgrade... but i'll post debug as soon as I can.

@rmarquis
Copy link
Owner

rmarquis commented Feb 2, 2015

Thx. See https://wiki.archlinux.org/index.php/Pacaur#Bug_reports for debug output. The pacman --debug flag is absolutely worthless when debugging pacaur.

@xinulsw
Copy link

xinulsw commented Feb 3, 2015

Sorry for bloating, here correct debug I hope:

$ bash -x pacaur -S xfce-theme-greybird-git

+ version=4.2.18
+ LC_COLLATE=C
+ TEXTDOMAIN=pacaur
+ TEXTDOMAINDIR=/usr/share/locale
+ 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-unknown-linux-gnu
++ CPPFLAGS=-D_FORTIFY_SOURCE=2
++ CFLAGS='-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4'
++ CXXFLAGS='-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4'
++ 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 !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/arch/.makepkg.conf ]]
+ tmpdir=/tmp/pacaurtmp-arch
+ builddir=/tmp/pacaurtmp-arch
+ editor=nano
+ editpkgbuild=true
+ editinstall=true
+ fallback=true
+ clean=true
+ cleandevel=true
+ sortbyvotes=true
+ sudoloop=false
+ pacmanbin=pacman
+ [[ -n '' ]]
+ configdir=/etc/xdg/pacaur
+ userconfigdir=/home/arch/.config/pacaur
+ source /etc/xdg/pacaur/config
+ [[ -r /home/arch/.config/pacaur/config ]]
+ [[ -d /tmp/pacaurtmp-arch ]]
+ [[ ! -w /tmp/pacaurtmp-arch ]]
+ [[ ! -d /tmp/pacaurtmp-arch ]]
+ [[ ! -d /tmp/pacaurtmp-arch ]]
+ trap ctrlc INT
+ args=("$@")
+ for i in '"${args[@]}"'
+ [[ -S =~ ^-[a-zA-Z0-9] ]]
+ opts+=("$i")
+ for i in '"${args[@]}"'
+ [[ xfce-theme-greybird-git =~ ^-[a-zA-Z0-9] ]]
+ count=0
+ [[ -n -S ]]
+ getopts sidmykufecqrahvVDQRSTUbglnoptw-: OPT
+ pacmanarg+=("-$OPT")
+ case "$OPT" in
+ pacS=1
+ operation=sync
+ coweropts+=("-f")
+ [[ -S =~ w ]]
+ installpkg=true
+ [[ -S =~ g ]]
+ [[ -S =~ l ]]
+ [[ -S =~ p ]]
+ getopts sidmykufecqrahvVDQRSTUbglnoptw-: OPT
+ [[ -z xfce-theme-greybird-git ]]
+ 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 nano ]]
+ [[ ! -w /tmp/pacaurtmp-arch ]]
+ [[ -z xfce-theme-greybird-git ]]
+ [[ -n '' ]]
+ [[ -n '' ]]
+ case $operation in
+ [[ -n '' ]]
+ [[ -n '' ]]
+ [[ -n '' ]]
+ [[ -n '' ]]
+ [[ -z xfce-theme-greybird-git ]]
+ ClassifyPkgs xfce-theme-greybird-git
+ [[ true = true ]]
+ [[ -n '' ]]
+ [[ -n '' ]]
+ [[ ! -n '' ]]
+ [[ ! -n '' ]]
+ for i in '"${pkgs[@]}"'
+ [[ xfce-theme-greybird-git == aur/* ]]
+ aurpkgs+=($($pacmanbin -Sp "$i" 2>&1 >/dev/null | awk -F " " '{print $NF}'))
++ pacman -Sp xfce-theme-greybird-git
++ awk -F ' ' '{print $NF}'
++ grep -E '.*\)$'
+ [[ -n '' ]]
+ pkgs=(${pkgs[@]/aur\//})
+ repopkgs=($(LC_COLLATE=C comm -23 <(tr ' ' '\n' <<< ${pkgs[@]} | LC_COLLATE=C sort -u) <(tr ' ' '\n' <<< ${aurpkgs[@]} | LC_COLLATE=C sort -u)))
++ LC_COLLATE=C
++ comm -23 /dev/fd/63 /dev/fd/62
+++ LC_COLLATE=C
+++ sort -u
+++ tr ' ' '\n'
+++ tr ' ' '\n'
+++ LC_COLLATE=C
+++ sort -u
+ [[ -n xfce-theme-greybird-git ]]
+ sudo pacman -S xfce-theme-greybird-git
błąd:  pakiet xfce-theme-greybird-git nie został znaleziony
+ [[ -n znaleziony ]]
+ [[ -n '' ]]
+ [[ true = true ]]
+ [[ ! -n '' ]]
+ note w 'Package(s) znaleziony not found in repositories, trying AUR...'
+ case "$1" in
+ echo -e ':: Package(s) znaleziony not found in repositories, trying AUR...'
:: Package(s) znaleziony not found in repositories, trying AUR...
+ Core znaleziony
+ getignoredpkgs
+ ignoredpkgs+=($(grep '^IgnorePkg' '/etc/pacman.conf' | cut -d '=' -f 2- | tr -d "'\""))
++ grep '^IgnorePkg' /etc/pacman.conf
++ cut -d = -f 2-
++ tr -d ''\''"'
+ [[ -e /home/arch/.config/cower/config ]]
+ ignoredpkgs=(${ignoredpkgs[@]//,/ })
+ [[ -n '' ]]
+ IgnoreChecks
+ [[ -z '' ]]
+ return
+ DepsSolver
+ note i 'resolving dependencies...'
+ case "$1" in
+ echo -e ':: resolving dependencies...'
:: resolving dependencies...
+ (( i=0 ))
+ (( i<1 ))
++ awk -F '>|<|=' '{print $1}'
+ aurpkgs[$i]=znaleziony
+ (( i++ ))
+ (( i<1 ))
+ deps+=("${aurpkgs[@]}")
+ FindDepsAur znaleziony
+ [[ -n '' ]]
+ [[ -z '' ]]
+ depspkgsaur=("${aurpkgs[@]}")
+ downloadjson znaleziony
+ aururl='https://aur.archlinux.org/rpc.php?type=multiinfo&v=3'
+ urlencodedpkgs=($(sed 's/+/%2b/g' <<< $@ | sed 's/@/%40/g'))
++ sed s/+/%2b/g
++ sed s/@/%40/g
++ printf '&arg[]=%s' znaleziony
+ urlargs='&arg[]=znaleziony'
+ [[ 17 -lt 8125 ]]
+ curl -sfg --compressed -C 0 'https://aur.archlinux.org/rpc.php?type=multiinfo&v=3&arg[]=znaleziony' -o /tmp/pacaurtmp-arch/rpc.json
+ errdeps+=($(LC_COLLATE=C comm -3 <(tr ' ' '\n' <<< $(getjsonvar "Name") | sort -u) <(tr ' ' '\n' <<< ${depspkgsaur[@]} | sort -u)))
++ LC_COLLATE=C
++ comm -3 /dev/fd/63 /dev/fd/62
+++ sort -u
+++ tr ' ' '\n'
+++ tr ' ' '\n'
+++ sort -u
++++ getjsonvar Name
++++ json_reformat
++++ tr -d '", '
++++ sed -r s/Name:/Name#/g
++++ awk -F '#' '{print $2}'
++++ grep -Po 'Name:.*'
+ depspkgs=($(getjsonarray "Depends"))
++ getjsonarray Depends
++ json_reformat
++ tr -d ', '
++ tr -d '\"'
++ sed 's/] /]\n/g'
++ sed -e '/^"Depends"/,/]/!d'
++ tr '\n' ' '
++ awk -F : '{print $2}'
++ tr -d '[]"'
++ tr -d '\n'
+ depspkgs+=($(getjsonarray "MakeDepends"))
++ getjsonarray MakeDepends
++ json_reformat
++ tr -d ', '
++ tr -d '\"'
++ tr '\n' ' '
++ tr -d '[]"'
++ sed -e '/^"MakeDepends"/,/]/!d'
++ tr -d '\n'
++ sed 's/] /]\n/g'
++ awk -F : '{print $2}'
+ depspkgs=($($pacmanbin -T "${depspkgs[@]}" | sort -u))
++ pacman -T
++ sort -u
+ unset depspkgsaur
+ [[ -n '' ]]
+ unset depspkgs
+ [[ -n '' ]]
+ [[ -n '' ]]
+ downloadjson znaleziony
+ aururl='https://aur.archlinux.org/rpc.php?type=multiinfo&v=3'
+ urlencodedpkgs=($(sed 's/+/%2b/g' <<< $@ | sed 's/@/%40/g'))
++ sed s/@/%40/g
++ sed s/+/%2b/g
++ printf '&arg[]=%s' znaleziony
+ urlargs='&arg[]=znaleziony'
+ [[ 17 -lt 8125 ]]
+ curl -sfg --compressed -C 0 'https://aur.archlinux.org/rpc.php?type=multiinfo&v=3&arg[]=znaleziony' -o /tmp/pacaurtmp-arch/rpc.json
+ depsAname=($(getjsonvar "Name"))
++ getjsonvar Name
++ json_reformat
++ tr -d '", '
++ grep -Po 'Name:.*'
++ sed -r s/Name:/Name#/g
++ awk -F '#' '{print $2}'
+ depsAver=($(getjsonvar "Version"))
++ getjsonvar Version
++ json_reformat
++ tr -d '", '
++ grep -Po 'Version:.*'
++ sed -r s/Version:/Version#/g
++ awk -F '#' '{print $2}'
+ depsAood=($(getjsonvar "OutOfDate"))
++ getjsonvar OutOfDate
++ json_reformat
++ tr -d '", '
++ grep -Po 'OutOfDate:.*'
++ sed -r s/OutOfDate:/OutOfDate#/g
++ awk -F '#' '{print $2}'
+ (( i=0 ))
+ (( i<0 ))
+ depsAlastmodified=($(getjsonvar "LastModified"))
++ getjsonvar LastModified
++ json_reformat
++ tr -d '", '
++ grep -Po 'LastModified:.*'
++ awk -F '#' '{print $2}'
++ sed -r s/LastModified:/LastModified#/g
+ (( i=0 ))
+ (( i<0 ))
+ errdeps=($(tr ' ' '\n' <<< ${errdeps[@]} | sort -u))
++ tr ' ' '\n'
++ sort -u
+ for i in '"${errdeps[@]}"'
+ note f 'no results found for znaleziony'
+ case "$1" in
+ echo -e ':: no results found for znaleziony'
:: no results found for znaleziony
+ [[ -n znaleziony ]]
+ exit 1

I havent used pre and code tags because in preview log have been cut off.
In next comment i'll post debug for upgrading package.

@rmarquis rmarquis removed this from the 4.3.x - maintenance milestone Nov 8, 2015
@rmarquis rmarquis modified the milestones: 4.4.x - maintenance, 4.5.x - pacman 5 Jan 30, 2016
@rmarquis rmarquis modified the milestones: 4.5.x - maintenance, 4.6.x - new features Mar 24, 2016
@kyak
Copy link
Contributor

kyak commented Apr 14, 2016

$ LANG=C pacaur -S nvidia-ck-ivybridge
resolving dependencies...
warning: cannot resolve "nvidia-utils=361.28", a dependency of "nvidia-ck-ivybridge"
:: The following package cannot be upgraded due to unresolvable dependencies:
nvidia-ck-ivybridge

:: Do you want to skip the above package for this upgrade? [y/N]
error: failed to prepare transaction (could not satisfy dependencies)
:: nvidia-ck-ivybridge: requires nvidia-utils=361.28
:: Package(s) dependencies) not found in repositories, trying AUR...
:: resolving dependencies...
:: no results found for dependencies)

This message i have seems relevant to this issue. I do really have the dependency conflict, but that's not the point.

@rmarquis
Copy link
Owner

Yup, seems to be the very same issue.

@rmarquis rmarquis modified the milestones: 4.6.x - maintenance, 5.0.x - later Oct 1, 2016
@rmarquis
Copy link
Owner

Here is a more common, related error when making use of the IgnoreGroup config option:

$ pacaur -S kcm-fcitx
resolving dependencies...
warning: ignoring package fcitx-qt5-1.1.0-1
warning: cannot resolve "fcitx-qt5", a dependency of "kcm-fcitx"
:: The following package cannot be upgraded due to unresolvable dependencies:
      kcm-fcitx

:: Do you want to skip the above package for this upgrade? [y/N] y
looking for conflicting packages...
 there is nothing to do
:: Package dependencies) not found in repositories, trying AUR...
:: resolving dependencies...
:: no results found for dependencies)

@rmarquis
Copy link
Owner

pacsift from pacutils can be used to finally fix this issue. Delaying to pacaur 5.0.

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

8 participants