You are not logged in.

#1 2020-04-23 20:03:10

proudmuslim
Member
Registered: 2020-04-12
Posts: 21

[PKGBUILD] Unable to write to folder in home directory

I initially attempted installing aurman using this script:

 #!/bin/bash

cd /tmp
gpg --recv-key 465022E743D71E39
git clone https://aur.archlinux.org/aurman.git
cd aurman
makepkg -si
sudo sed -i '/^#Color/s/^#//' /etc/pacman.conf
aurman -Syu

Obviously, it returned the error

 ==> ERROR: You do not have write permission for the directory $BUILDDIR (/tmp/aurman).
    Aborting...

I tried running the commands manually just to be sure, however I got the same issue

So I modified the script to run in my home directory

 #!/bin/bash

cd /home/proudmuslim/builds
gpg --recv-key 465022E743D71E39
git clone https://aur.archlinux.org/aurman.git
cd aurman
makepkg -si
sudo sed -i '/^#Color/s/^#//' /etc/pacman.conf
aurman -Syu

And now I get the same error, even though I'm writing to my own home directory,

 ==> ERROR: You do not have write permission for the directory $BUILDDIR (/home/proudmuslim/builds/aurman).
    Aborting...

I obviously attempted running the commands myself, to no avail. I'm out of ideas.

Last edited by proudmuslim (2020-04-23 20:04:52)

Offline

#2 2020-04-23 20:18:00

loqs
Member
Registered: 2014-03-06
Posts: 18,859

Re: [PKGBUILD] Unable to write to folder in home directory

stat /home/proudmuslim/builds/aurman

Offline

#3 2020-04-23 21:13:58

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,406
Website

Re: [PKGBUILD] Unable to write to folder in home directory

Where did you get that script? Why did you use it rather than building the AUR package through normal means?

As well as the output loqs requested, please post the output of

id

Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#4 2020-04-23 21:21:36

proudmuslim
Member
Registered: 2020-04-12
Posts: 21

Re: [PKGBUILD] Unable to write to folder in home directory

loqs wrote:
stat /home/proudmuslim/builds/aurman
File: /home/proudmuslim/builds/aurman
  Size: 4096            Blocks: 8          IO Block: 4096   directory
Device: 813h/2067d      Inode: 835708      Links: 3
Access: (0755/drwxr-xr-x)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2020-04-23 12:53:00.635255113 -0700
Modify: 2020-04-23 12:52:51.488588144 -0700
Change: 2020-04-23 12:52:51.488588144 -0700
 Birth: 2020-04-23 12:52:45.835254631 -0700

Offline

#5 2020-04-23 21:26:22

proudmuslim
Member
Registered: 2020-04-12
Posts: 21

Re: [PKGBUILD] Unable to write to folder in home directory

WorMzy wrote:

Where did you get that script? Why did you use it rather than building the AUR package through normal means?

As well as the output loqs requested, please post the output of

id

The script was from an old StackExchange thread, and the reason I didn't use the AUR package is that I don't have AUR enabled in pacman, as enabling it gives me huge issues with speed

Offline

#6 2020-04-23 21:34:13

loqs
Member
Registered: 2014-03-06
Posts: 18,859

Re: [PKGBUILD] Unable to write to folder in home directory

proudmuslim wrote:

The script was from an old StackExchange thread, and the reason I didn't use the AUR package is that I don't have AUR enabled in pacman, as enabling it gives me huge issues with speed

What do you mean by AUR in pacman?  What did you change in pacman that that produced huge issues with speed?  What do you understand AUR to be?

Offline

#7 2020-04-23 21:43:33

proudmuslim
Member
Registered: 2020-04-12
Posts: 21

Re: [PKGBUILD] Unable to write to folder in home directory

WorMzy wrote:

Where did you get that script? Why did you use it rather than building the AUR package through normal means?

As well as the output loqs requested, please post the output of

id

Update: I managed to fix the issue by opening the folder in thunar and modifying properties, however I now have a new issue when I attempt to run aurman.

 Traceback (most recent call last):
  File "/usr/bin/aurman", line 11, in <module>
    load_entry_point('aurman==2.19.1', 'console_scripts', 'aurman')()
  File "/usr/lib/python3.8/site-packages/aurman/main.py", line 1303, in main
    setlocale(LC_ALL, '')  # initialize locales because python doesn't
  File "/usr/lib/python3.8/locale.py", line 608, in setlocale
    return _setlocale(category, locale)
locale.Error: unsupported locale setting

Edit: I attempted running

 export LC_ALL="en_US.UTF-8" 

as well as

export LC_CTYPE="en_US.UTF-8" 

The former returned the error

 bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8): No such file or directory

Last edited by proudmuslim (2020-04-23 21:46:33)

Offline

#8 2020-04-23 21:47:51

loqs
Member
Registered: 2014-03-06
Posts: 18,859

Re: [PKGBUILD] Unable to write to folder in home directory

Apart from not answering my previous questions you do not appear to have read https://aur.archlinux.org/packages/aurm … ned-659607
You have also not configured the locale on your system correctly.
Edit:
Please read Arch_User_Repository plus AUR_helpers and reread Installation_guide#Localization

Last edited by loqs (2020-04-23 21:55:40)

Offline

#9 2020-04-23 22:05:01

proudmuslim
Member
Registered: 2020-04-12
Posts: 21

Re: [PKGBUILD] Unable to write to folder in home directory

loqs wrote:

Apart from not answering my previous questions you do not appear to have read https://aur.archlinux.org/packages/aurm … ned-659607
You have also not configured the locale on your system correctly.
Edit:
Please read Arch_User_Repository plus AUR_helpers and reread Installation_guide#Localization

Sorry about not answering your questions, my internet is acting up and I didn't see your second post. I figured that my locale wasn't set up properly, however I didn't know which directory it was in so I could modify it. Thank you for the wiki page link, I'll take a look and proceed accordingly. As to your previous questions, sorry, I was confused. What I meant was that the AUR packages I was looking for were missing in the mirrors I had. I attempted commenting out mirrors one by one but all of them turned up the same error. Any kind of package manager was not found, and in addition I could not install ttf-ms-fonts (also returned a package not found error), an essential package for me as a student, because it contains Times New Roman, a font I need for obvious reasons, and Noto Mono, my preferred terminal font. My apologies for anything stupid I might say, I'm still a newbie to arch, I only installed it last month and haven't got much a chance to tinker with it because of school work.

Edit: The lines I added at the end of my pacman.conf that caused such a big slowdown were

[archlinuxfr]
SigLevel = Never
Server = http://repo.archlinux.fr/$arch 

Last edited by proudmuslim (2020-04-23 22:07:57)

Offline

#10 2020-04-23 22:16:59

proudmuslim
Member
Registered: 2020-04-12
Posts: 21

Re: [PKGBUILD] Unable to write to folder in home directory

WorMzy wrote:

Where did you get that script? Why did you use it rather than building the AUR package through normal means?

As well as the output loqs requested, please post the output of

id

I've managed to get aurman working, however I am now getting these errors when running aurman -Syyu

 error: failed retrieving file 'extra.db' from mirror.arizona.edu : Connection timed out after 10002 milliseconds
error: failed retrieving file 'extra.db' from mirror.arizona.edu : Connection timed out after 10001 milliseconds
 extra                                                                                                               1648.1 KiB  1925 KiB/s 00:01 [##########################################################################################] 100%
error: failed retrieving file 'community.db' from mirror.arizona.edu : Operation too slow. Less than 1 bytes/sec transferred the last 10 seconds
error: failed retrieving file 'community.db' from mirror.arizona.edu : Connection timed out after 10000 milliseconds
 community                                                                                                              4.9 MiB  2.54 MiB/s 00:02 [##########################################################################################] 100%
error: failed retrieving file 'multilib-testing.db' from mirror.arizona.edu : Connection timed out after 10001 milliseconds

Offline

#11 2020-04-23 22:21:02

proudmuslim
Member
Registered: 2020-04-12
Posts: 21

Re: [PKGBUILD] Unable to write to folder in home directory

proudmuslim wrote:
loqs wrote:
stat /home/proudmuslim/builds/aurman
File: /home/proudmuslim/builds/aurman
  Size: 4096            Blocks: 8          IO Block: 4096   directory
Device: 813h/2067d      Inode: 835708      Links: 3
Access: (0755/drwxr-xr-x)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2020-04-23 12:53:00.635255113 -0700
Modify: 2020-04-23 12:52:51.488588144 -0700
Change: 2020-04-23 12:52:51.488588144 -0700
 Birth: 2020-04-23 12:52:45.835254631 -0700

Sorry, I forgot to post the output of id

uid=1000(proudmuslim) gid=1000(proudmuslim) groups=1000(proudmuslim),0(root),998(wheel)

Last edited by proudmuslim (2020-04-23 22:21:24)

Offline

#12 2020-04-23 22:22:10

loqs
Member
Registered: 2014-03-06
Posts: 18,859

Re: [PKGBUILD] Unable to write to folder in home directory

What guide did you follow to install arch?

Offline

#13 2020-04-24 00:40:09

proudmuslim
Member
Registered: 2020-04-12
Posts: 21

Re: [PKGBUILD] Unable to write to folder in home directory

loqs wrote:

What guide did you follow to install arch?

The wiki, why?

Offline

#14 2020-04-24 01:14:22

loqs
Member
Registered: 2014-03-06
Posts: 18,859

Re: [PKGBUILD] Unable to write to folder in home directory

Installation guide does not include using third party repositories so I was wondering about the source of that information.
As well as your confusion between pacman and AUR.  I would suggest you stop using aurman as its author has discontinued updating it.  I would further suggest not replacing it with another helper until you can build and install packages without the need for one and are clear about the distintion between AUR and package repositories plus the roles of pacman and makepkg.

 error: failed retrieving file 'extra.db' from mirror.arizona.edu : Connection timed out after 10002 milliseconds
error: failed retrieving file 'extra.db' from mirror.arizona.edu : Connection timed out after 10001 milliseconds
 extra                                                                                                               1648.1 KiB  1925 KiB/s 00:01 [##########################################################################################] 100%
error: failed retrieving file 'community.db' from mirror.arizona.edu : Operation too slow. Less than 1 bytes/sec transferred the last 10 seconds
error: failed retrieving file 'community.db' from mirror.arizona.edu : Connection timed out after 10000 milliseconds
 community                                                                                                              4.9 MiB  2.54 MiB/s 00:02 [##########################################################################################] 100%
error: failed retrieving file 'multilib-testing.db' from mirror.arizona.edu : Connection timed out after 10001 milliseconds

That is not related to your original issue.  See mirrors to update your mirror list.  Additionally as a new user are you sure you want to enable testing repositories.

Offline

#15 2020-04-24 19:44:02

proudmuslim
Member
Registered: 2020-04-12
Posts: 21

Re: [PKGBUILD] Unable to write to folder in home directory

loqs wrote:

Installation guide does not include using third party repositories so I was wondering about the source of that information.
As well as your confusion between pacman and AUR.  I would suggest you stop using aurman as its author has discontinued updating it.  I would further suggest not replacing it with another helper until you can build and install packages without the need for one and are clear about the distintion between AUR and package repositories plus the roles of pacman and makepkg.

 error: failed retrieving file 'extra.db' from mirror.arizona.edu : Connection timed out after 10002 milliseconds
error: failed retrieving file 'extra.db' from mirror.arizona.edu : Connection timed out after 10001 milliseconds
 extra                                                                                                               1648.1 KiB  1925 KiB/s 00:01 [##########################################################################################] 100%
error: failed retrieving file 'community.db' from mirror.arizona.edu : Operation too slow. Less than 1 bytes/sec transferred the last 10 seconds
error: failed retrieving file 'community.db' from mirror.arizona.edu : Connection timed out after 10000 milliseconds
 community                                                                                                              4.9 MiB  2.54 MiB/s 00:02 [##########################################################################################] 100%
error: failed retrieving file 'multilib-testing.db' from mirror.arizona.edu : Connection timed out after 10001 milliseconds

That is not related to your original issue.  See mirrors to update your mirror list.  Additionally as a new user are you sure you want to enable testing repositories.

Alright, I'll to learning how to compile applications, then. Does aurman use the pacman mirrorlist on your system, or does it have its own. If it has its own, where is it located in /etc?

Offline

#16 2020-04-24 20:19:36

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

Re: [PKGBUILD] Unable to write to folder in home directory

loqs wrote:

stop using aurman as its author has discontinued updating it.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#17 2020-04-24 20:22:02

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [PKGBUILD] Unable to write to folder in home directory

The archlinux.fr repo is well known to contain broken packages, you should remove it before any more troubleshooting.


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#18 2020-04-24 20:43:50

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: [PKGBUILD] Unable to write to folder in home directory

proudmuslim wrote:

Alright, I'll to learning how to compile applications, then. Does aurman use the pacman mirrorlist on your system, or does it have its own. If it has its own, where is it located in /etc?

aurman doesn't handle pacman repositories, it simply runs pacman for you while handling AUR packages.

The mirrorlist is controlled by pacman.

I am now getting these errors when running aurman -Syyu

First off, do not run -Syyu, the double -y will put you in violation of https://wiki.archlinux.org/index.php/Sy … nsupported

It is sometimes acceptable to use the double -y, see: https://wiki.archlinux.org/index.php/Mi … kage_lists

But only do so e.g. for corrupted databases or very specific mirror problems, preferably only when advised.

Second: if you get such errors, then you should also get such errors when running pacman -Syu.

Do you, in fact, get such errors when running pacman? Yes? Okay then, this shows that the issue has utterly nothing to do with aurman. loqs already pointed out you don't seem to understand this distinction and should therefore stop using AUR helpers entirely until you figure out what they do.


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

Board footer

Powered by FluxBB