You are not logged in.

#1 2015-04-19 01:29:22

kmhuntly
Member
Registered: 2015-04-19
Posts: 7

yaourt doesn't work as normal user

when I run yaourt as myself, i get this message:

[caspersb-lnt520u.caspersbox.com:khuntly] : </home/khuntly>  

$ yaourt -S zoom

==> Downloading zoom PKGBUILD from AUR...
x xft_detect.patch
x PKGBUILD
x Changelog
zoom 1.1.5-4  (Thu Oct 23 16:22:45 EDT 2008)
( Unsupported package: Potentially dangerous ! )
==> Edit PKGBUILD ? [Y/n] ("A" to abort)
==> ------------------------------------
==> n

==> ERROR: /tmp/tmp.2SkqqAYolq must be in the current working directory.
Unable to read PKGBUILD
[caspersb-lnt520u.caspersbox.com:khuntly] : </home/khuntly>  

$ 

but if i run "su - root -c "sudo -u khuntly yaourt -S zoom" it works just fine. not really sure why ?

/etc/yaourtrc -

[caspersb-lnt520u.caspersbox.com:khuntly] : </home/khuntly>  

$ cat /etc/yaourtrc 
#    yaourtrc  - Configuration for yaourt
# 
#   See yaourtrc(5) for more information
#   
#

# General
#AUTOSAVEBACKUPFILE=0
#DEVELSRCDIR=""
#DEVEL=0
#EDITOR="$EDITOR"
#FORCEENGLISH=0
#FORCE=0
#TMPDIR="/tmp"
#NO_TESTDB=0

# SUDO
#SUDONOVERIF=0      # Avoid multiple sudo checks when timestamp_timeout=0
#SUDOREDIRECT=1     # Define to 0 in case you use a fingerprint device

# ABS
#USE_GIT=0
# If the package "abs" is installed, those var are parsed from abs.conf
#REPOS=()           # REPOS available at $SYNCSERVER
#SYNCSERVER=""

# AUR
#AURURL="https://aur.archlinux.org"
#AURCOMMENT=5
#AURDEVELONLY=0
#AURSEARCH=1
#AURUPGRADE=0
#AURVOTE=1

# Build
#EXPORT=0           # Export to 1: EXPORTDIR or PKGDEST
                    # 2: pacman cache (as root)
#EXPORTSRC=0        # Need EXPORT>0 to be used
#EXPORTDIR=""       # If empty, use makepkg's connfiguration (see makepkg.conf)

# Prompt
#NOCONFIRM=0
#UP_NOCONFIRM=0     # No prompt while build upgrades (including -Sbu)
#BUILD_NOCONFIRM=0  # Only prompt for editing files
#PU_NOCONFIRM=0     # Add --noconfirm to $PACMAN -U
#EDITFILES=1
#NOENTER=1

# Output
#USECOLOR=1
#USEPAGER=0
#DETAILUPGRADE=1
#SHOWORPHANS=1
#TERMINALTITLE=1

# Command
#PACMAN="pacman"
#DIFFEDITCMD="vimdiff"

# pacdiffviewer
#P_LOCATE=0         # Use locate instead of find
#P_SEARCHDIR=(/etc/ /boot/)
#P_SAVEDIR='/var/lib/yaourt/backupfiles'
[caspersb-lnt520u.caspersbox.com:khuntly] : </home/khuntly>  

$ 

i dont have a ~/.yaourtrc, so nothing to show there.

Last edited by kmhuntly (2015-04-19 13:39:25)

Offline

#2 2015-04-19 01:33:35

circleface
Member
Registered: 2012-05-26
Posts: 639

Re: yaourt doesn't work as normal user

Have you tried to install the package manually?  It might give more helpful error messages.

Offline

#3 2015-04-19 01:41:36

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

Re: yaourt doesn't work as normal user

Please use code tags when pasting to the boards: https://wiki.archlinux.org/index.php/Fo … s_and_code


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#4 2015-04-19 01:51:41

kmhuntly
Member
Registered: 2015-04-19
Posts: 7

Re: yaourt doesn't work as normal user

admin: sorry sad

circleface: if i download a tar, extract and compile, everything is fine. same with pacman (but i run that with sudo anyway, so probably not a fair comparison)

Offline

#5 2015-04-19 07:42:40

runical
Member
From: The Netherlands
Registered: 2012-03-03
Posts: 896

Re: yaourt doesn't work as normal user

I think he means by running makepkg on the PKGBUILD. You can find more outout that on the wiki [1,2,3]. Read those so you can come to understand the build system and save yourself some trouble later on. (And uninstall yaourt for the time being, you can go back to that later)

Also, please edit your first post so that the output is in code tags.

[1] https://wiki.archlinux.org/index.php/Ar … Repository
[2] https://wiki.archlinux.org/index.php/Makepkg
[3] https://wiki.archlinux.org/index.php/Arch_Build_System

Offline

#6 2015-04-19 13:46:11

kmhuntly
Member
Registered: 2015-04-19
Posts: 7

Re: yaourt doesn't work as normal user

[caspersb-lnt520u.caspersbox.com:khuntly] : </home/khuntly/zoom>  

$ yaourt -S zoom

==> Downloading zoom PKGBUILD from AUR...
x xft_detect.patch
x PKGBUILD
x Changelog
zoom 1.1.5-4  (Thu Oct 23 16:22:45 EDT 2008)
( Unsupported package: Potentially dangerous ! )
==> Edit PKGBUILD ? [Y/n] ("A" to abort)
==> ------------------------------------
==> n

==> ERROR: /tmp/tmp.EUeu3NGM7a must be in the current working directory.
Unable to read PKGBUILD
[caspersb-lnt520u.caspersbox.com:khuntly] : </home/khuntly/zoom>  

$ 

[caspersb-lnt520u.caspersbox.com:khuntly] : </home/khuntly/zoom>  

$ makepkg
==> ERROR: changelog file (Changelog) does not exist or is not a regular file.
[caspersb-lnt520u.caspersbox.com:khuntly] : </home/khuntly/zoom>  

$

I looked at the PKGBUILD and it specifies the change log as "Changelog"; so I created that file. After that -

[caspersb-lnt520u.caspersbox.com:khuntly] : </home/khuntly/zoom>  

$ makepkg        
==> Making package: zoom 1.1.5-4 (Sun Apr 19 09:43:57 EDT 2015)
==> Checking runtime dependencies...
==> Missing dependencies:
  -> t1lib
==> Checking buildtime dependencies...
==> ERROR: Could not resolve all dependencies.
[caspersb-lnt520u.caspersbox.com:khuntly] : </home/khuntly/zoom>  

$

Does this mean the package is just broken ? I'm ok with that but it doesn't explain why it happens with every package and why if I ran this su'd to root sudo'd to myself it works.

Offline

#7 2015-04-19 13:59:17

kmhuntly
Member
Registered: 2015-04-19
Posts: 7

Re: yaourt doesn't work as normal user

as a further update, i just installed trousers using makepkg without issue.

Offline

#8 2015-04-19 15:10:46

runical
Member
From: The Netherlands
Registered: 2012-03-03
Posts: 896

Re: yaourt doesn't work as normal user

No, the previous output means that you don't have the correct dependencies installed. You have to do that manually when not using an AUR helper.

Try installing all the dependencies that are not in the repositories and report back.

Offline

#9 2015-04-19 15:30:49

kmhuntly
Member
Registered: 2015-04-19
Posts: 7

Re: yaourt doesn't work as normal user

I installed trousers via makepkg without a problem.

Offline

#10 2015-04-19 15:43:43

runical
Member
From: The Netherlands
Registered: 2012-03-03
Posts: 896

Re: yaourt doesn't work as normal user

And yaourt did give problems when trying to build it? Then I'm afraid that it is a problem with yaourt and you'll have to contact the people who are responsible for yaourt. In the meanwhile, you might want to try a different AUR helper (see the wiki). I suggest looking into cower.

Offline

Board footer

Powered by FluxBB