You are not logged in.

#1 2018-05-29 05:01:55

Xylite
Member
Registered: 2018-05-29
Posts: 1

Pactree Not Found

After installing arch and getting everything up and running, I tried installing pacaur and using it to install bolt. When running pacaur -S bolt I receive the following errors:

:: Package bolt not found in repositories, trying AUR...
:: resolving dependencies...
/usr/bin/pacaur: line 603: pactree: command not found
/usr/bin/pacaur: line 604: pactree: command not found
/usr/bin/pacaur: line 603: pactree: command not found
/usr/bin/pacaur: line 604: pactree: command not found
/usr/bin/pacaur: line 603: pactree: command not found
/usr/bin/pacaur: line 604: pactree: command not found
:: looking for inter-conflicts...

...

:: Checking bolt integrity...
==> Making package: bolt 0.4-1 (Tue 29 May 2018 12:57:01 AM EDT)
==> Retrieving sources...
  -> Found bolt-0.4.tar.gz
==> Validating source files with sha256sums...
    bolt-0.4.tar.gz ... Passed
:: Building bolt package(s)...
==> Making package: bolt 0.4-1 (Tue 29 May 2018 12:57:02 AM EDT)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Installing missing dependencies...
/usr/bin/pacman: unrecognized option '--color never'
==> ERROR: 'pacman' failed to install missing dependencies.
:: failed to build bolt package(s)


Trying 'which pactree' gives 'pactree not found'. Also running 'pacman -Qlq pacman | grep bin' gives:
/usr/bin/
/usr/bin/cleanupdelta
/usr/bin/makepkg
/usr/bin/makepkg-template
/usr/bin/pacman
/usr/bin/pacman-conf
/usr/bin/pacman-db-upgrade
/usr/bin/pacman-key
/usr/bin/pkgdelta
/usr/bin/repo-add
/usr/bin/repo-elephant
/usr/bin/repo-remove
/usr/bin/testpkg
/usr/bin/vercmp


And 'pacman -v':
Root      : /
Conf File : /etc/pacman.conf
DB Path   : /var/lib/pacman/
Cache Dirs: /var/cache/pacman/pkg/ 
Hook Dirs : /usr/share/libalpm/hooks/  /etc/pacman.d/hooks/ 
Lock File : /var/lib/pacman/db.lck
Log File  : /var/log/pacman.log
GPG Dir   : /etc/pacman.d/gnupg/
Targets   : None

I've also tried running 'pacman -S pacman' and updaing with 'pacman -Syu' with no luck. Sorry if this is such an easy fix that I seem to be missing. I was wondering if there's any way to install pactree or get pacaur working in another way?

Offline

#2 2018-05-29 05:05:01

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Pactree Not Found

The pacman update means all the wrappers are broken.

Most of those utilities are now in pacman-contrib.

Also, please use code tags when pasting to the boards: https://wiki.archlinux.org/index.php/Co … s_and_code


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2018-05-29 08:47:00

jaergenoth
Member
Registered: 2015-01-16
Posts: 85

Re: Pactree Not Found

Pacaur is unmaintained (https://github.com/rmarquis/pacaur), you should switch to something else.

Offline

#4 2018-05-29 09:00:25

Alad
Wiki Admin/IRC Op
From: Bagelstan
Registered: 2014-05-04
Posts: 2,420
Website

Re: Pactree Not Found

jasonwryan wrote:

The pacman update means all the wrappers are broken.

At least aurutils is in a persistently broken state, so when these things happen people are just used to it.

edit: only the -git version broke. Sad. sad

Last edited by Alad (2018-05-29 09:08:10)


Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby

Offline

#5 2018-05-29 09:40:39

bulletmark
Member
From: Brisbane, Australia
Registered: 2013-10-22
Posts: 703

Re: Pactree Not Found

jaergenoth wrote:

Pacaur is unmaintained (https://github.com/rmarquis/pacaur), you should switch to something else.

The funny thing is that I have transitioned to yay from pacaur but after today's pacman update yay completely failed and would not run at all. I then just ran pacaur which proceeded to update yay and package-query just fine to the new versions required for pacman 5.1. Rather ironic given we all moved away from pacaur because it was supposed to fail when pacman 5.1 came along!

Online

#6 2018-05-29 09:52:25

Alad
Wiki Admin/IRC Op
From: Bagelstan
Registered: 2014-05-04
Posts: 2,420
Website

Re: Pactree Not Found

yay is over 10k lines of custom Go code, including a full libalpm frontend. Unsurprising it fails as all other third-party frontends did. pacaur just reuses expac and pactree.

Last edited by Alad (2018-05-29 09:53:41)


Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby

Offline

#7 2018-05-29 10:20:52

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

Re: Pactree Not Found

You know what else would have properly updated yay and package-query: makepkg.

It amazes me the circuitous lengths people will go to just to avoid using the one ridiculously simple tool that will definitely work.

This isn't to say that helpers don't have a place, but when your helper breaks, if you seek another helper to fix it rather than just falling back on the official and supported means of installing/updating an aur package ... well, that has no place.

Last edited by Trilby (2018-05-29 10:22:14)


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

Offline

#8 2018-05-29 10:58:40

phw
Member
Registered: 2013-05-27
Posts: 318

Re: Pactree Not Found

Alad wrote:

At least aurutils is in a persistently broken state, so when these things happen people are just used to it.

edit: only the -git version broke. Sad. sad

Ha, despite your best efforts to break it it just keeps running for me tongue Thanks for these tools, btw, aurutils is awesome.

Offline

#9 2018-05-29 13:17:30

woodape
Member
Registered: 2015-03-25
Posts: 159

Re: Pactree Not Found

I had a similar issue with yaourt this morning, all I had to do was reinstall package-query to get right.

Trilby, what do you do to search for / update packages in the AUR? Do you just go to the AUR site and search there? Genuinely curious.

I made the following simple function in my zshrc to install packages from source, which includes AUR, but only if I know their name. I mostly rely on yaourt for its searching abilities.

isrc() {
	current="$PWD"
	bld_dir="$HOME/build"
	[ ! -d "$bld_dir" ] && mkdir "$bld_dir"
	cd "$bld_dir"
	asp export $1 2> /dev/null || git clone https://aur.archlinux.org/$1.git
	cd $1
	makepkg -isf --noconfirm
	sudo pacman -Rns $(pacman -Qqdt)
	cd "$current"
}

Offline

#10 2018-05-29 13:22:45

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

Re: Pactree Not Found

woodape wrote:

Trilby, what do you do to search for / update packages in the AUR?

That is not really relevant here (but here's and excerpt).  Even if I used yaourt, if yaourt broke the solution would be use makepkg to rebuild/update it.  This does not involve searching for new packages at all.  (on your script, you may want to consider `mkdir -p` and - if you just use zsh and/or bash pushd/popd).

Last edited by Trilby (2018-05-29 13:26:15)


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

Offline

#11 2018-05-29 22:05:22

bulletmark
Member
From: Brisbane, Australia
Registered: 2013-10-22
Posts: 703

Re: Pactree Not Found

Trilby wrote:

It amazes me the circuitous lengths people will go to just to avoid using the one ridiculously simple tool that will definitely work.

Circuitous length? I quickly typed "pacaur -Syu" and it fixed my update problem. It that had not worked then I would have done it the longer way.

Online

Board footer

Powered by FluxBB