Никакого sudo ему не надо, оно ж только собирает пакет (с флагом -i – и установит, но тогда оно само запросит пароль).
- Показать ответ
- Ссылка
Ответ на:
комментарий
от Korchevatel 22.10.21 21:57:20 MSK
Все равно команда makepkg -si выводит : => ОШИБКА: У вас нет прав на запись в каталог $BUILDDIR.
mr_true
(22.10.21 22:37:03 MSK)
- Показать ответы
- Ссылка
Ответ на:
комментарий
от mr_true 22.10.21 22:37:03 MSK
В арче вики все написано. Качаешь pkgbuild в локальную папку пользователя и собираешь с makepkg без sudo.
mxfm ★★
(22.10.21 23:17:27 MSK)
- Ссылка
Ответ на:
комментарий
от IvanR 22.10.21 22:49:58 MSK
три звезды 🤦♂️
anonymous
(22.10.21 23:26:56 MSK)
- Ссылка
Ответ на:
комментарий
от mr_true 22.10.21 22:37:03 MSK
Ну и какой у тебя каталог $BUILDDIR?
Если не то, что надо, меняй в /etc/makepkg.conf на тот, который по правам подходит, либо же выставляй права на чтение и запись.
- Показать ответ
- Ссылка
Ответ на:
комментарий
от Korchevatel 22.10.21 23:38:53 MSK
еще один. какие права, ты ему еще предложи ядро пересобрать
ОПу: перенеси директорию с PKGBUILDом в свой домашний каталог
anonymous
(22.10.21 23:56:35 MSK)
- Показать ответ
- Ссылка
Ответ на:
комментарий
от anonymous 22.10.21 23:56:35 MSK
ты бы зывязывал бухать..всё товарищи выше верно советуют: либо права дать на $BUILDDIR либо изменить её на нужную в /etc/makepkg.conf.
- Показать ответ
- Ссылка
Ответ на:
комментарий
от SpaceRanger 23.10.21 15:17:01 MSK
Это вы бы завязывали советовать там где не разбираетесь. В арче $BUILDDIR это рабочий каталог, то есть тот куда перешли прежде чем вызывать makepkg.
Так что изменять его в конфиге не обязательно. TC же в каталог рута пакбилд скачал и там пытается запустить makepkg.
anonymous
(23.10.21 15:33:07 MSK)
- Показать ответ
- Ссылка
Собирай в /tmp . Будет проще и быстрее
Grapow ★
(23.10.21 16:05:37 MSK)
- Ссылка
Ответ на:
комментарий
от anonymous 23.10.21 15:33:07 MSK
ну ладно, согласен, был не прав
- Ссылка
The makepkg command refuses to work because it thinks I’m working under root even though JuNest is launched.
==> ERROR: Running makepkg as root is not allowed as it can cause permanent,
catastrophic damage to your system.
The problem was mentioned previously in the issues, and the latest solution seems to have been an inclusion of edited makepkg file:
«yogurt
has been deprecated. For now, the way to install package is by using a modified version of makepkg
in /opt/makepkg/bin/makepkg
which syntax is the same as the original.»
Originally posted by @fsquillace in #59 (comment)
However, my opt folder is empty, so something must’ve changed about it over the latest 3 years or so. Is there an opportunity to use this makepkg command now?
# |
|
Темы: 1 Сообщения: 23 Участник с: 12 сентября 2020 |
При использовании makepkg выдаёт ошибку: ERROR: Running makepkg as root is not allowed as it can cause permanent, catastrophic damage to your system. Самые умные скажут, мол запусти тогда от обычного юзера На что я отвечу: А как запустить от обычного юзера если у него прав нет? Так вот — Как заставить работать makepkg? |
cucullus |
# |
Темы: 261 Сообщения: 3475 Участник с: 06 июня 2007 |
Ну где-то же права есть? там и запускайте.
такие дела. |
jerr0ni |
# |
Темы: 1 Сообщения: 23 Участник с: 12 сентября 2020 |
Обясните «Где» |
vs220 |
# (отредактировано 2 года, 8 месяцев назад) |
Темы: 22 Сообщения: 8111 Участник с: 16 августа 2009 |
makepkg не устанавливает пакеты а только их собирает. Запускать его от рута плохая идея запускайте от пользователя, и настройте судо |
jerr0ni |
# (отредактировано 2 года, 8 месяцев назад) |
Темы: 1 Сообщения: 23 Участник с: 12 сентября 2020 |
И снова здравствуйте vs220! Я так понял что вы здесь гуру. На сколько я понял что я могу собрать его в директории с подходящими правами |
vs220 |
# (отредактировано 2 года, 8 месяцев назад) |
Темы: 22 Сообщения: 8111 Участник с: 16 августа 2009 |
Нет, просто долго сижу на арче.
Да. Если оперативки хватает лучше в tmp собирать — сборка быстрее. |
vs220 |
# (отредактировано 2 года, 8 месяцев назад) |
Темы: 22 Сообщения: 8111 Участник с: 16 августа 2009 |
И хоть официально не приветствуется но удобней aur помошника использовать. Yay например https://aur.archlinux.org/packages/yay-bin/ Ну и много собранных пакетов в китайской репе есть, можно добавить после основных(репа регулярно обновляется) https://wiki.archlinux.org/index.php/Unofficial_user_repositories#archlinuxcn |
BigOrange |
# |
Темы: 0 Сообщения: 202 Участник с: 27 апреля 2017 |
Так сборка от простого пользователя запускается, или нет? как-то не возникало с этим проблем. собирал всегда в пользовательско папке от простого пользователя. при установке уже запрашивается пароль для sudo. |
jerr0ni |
# |
Темы: 1 Сообщения: 23 Участник с: 12 сентября 2020 |
[[email protected] visual-studio-code-bin]$ makepkg PKGBUILD ==> Making package: visual-studio-code-bin 1.49.0-1 (Mon 14 Sep 2020 04:00:46 PM EEST) ==> Checking runtime dependencies… ==> Missing dependencies: -> lsof ==> Checking buildtime dependencies… ==> ERROR: Could not resolve all dependencies. Встретил следующую преграду |
BigOrange |
# |
Темы: 0 Сообщения: 202 Участник с: 27 апреля 2017 |
в официальной репе лежит
extra/lsof 4.93.2-3 [installed] |
When I try to run as superuser:
Running makepkg as root is not allowed as it can cause permanent, catastrophic damage to your system.
When I try to run as normal user:
You do not have write permission for the directory $BUILDDIR (/home/user/yay). Aborting...
I’m trying to install Yay, but I either need to use another AUR or build it myself. For some reason though, makepkg isn’t working at all. Is there any way I can build it with this issue being a thing?
Edit: only file in there is the pkgbuild file, will try cloning source code again
- Index
- » Newbie Corner
- » [SOLVED] makepkg says i use root but i use my personal user account
#1 2021-11-27 22:14:43
- shadowfok
- Member
- Registered: 2021-11-27
- Posts: 6
[SOLVED] makepkg says i use root but i use my personal user account
Hello everyone I am new to arch Linux and Linux in general.
I wanted to install yay but I got an error message that I was logged in as root and that that could cause damage to my system how do I solve this.
[shadow@archlinux yay-git]$ sudo makepkg -si
==> ERROR: Running makepkg as root is not allowed as it can cause permanent,
catastrophic damage to your system.
Last edited by shadowfok (2021-11-27 23:02:45)
#2 2021-11-27 22:18:00
- Allan
- Pacman
- From: Brisbane, AU
- Registered: 2007-06-09
- Posts: 11,294
- Website
Re: [SOLVED] makepkg says i use root but i use my personal user account
sudo is root…
#3 2021-11-27 22:19:40
- shadowfok
- Member
- Registered: 2021-11-27
- Posts: 6
Re: [SOLVED] makepkg says i use root but i use my personal user account
but if I use it without sudo it says this.
[shadow@archlinux yay-git]$ makepkg -si
==> ERROR: You do not have write permission for the directory $BUILDDIR (/home/shadow/yay-git).
Aborting…
#4 2021-11-27 22:23:45
- loqs
- Member
- Registered: 2014-03-06
- Posts: 16,000
Re: [SOLVED] makepkg says i use root but i use my personal user account
You created the directory yay-git using sudo as well?
#5 2021-11-27 22:26:30
- ewaller
- Administrator
- From: Pasadena, CA
- Registered: 2009-07-13
- Posts: 19,256
Re: [SOLVED] makepkg says i use root but i use my personal user account
Probably because you have run it as root in the past and there is a directory or file in that path you don’t have permission to read. What is the output of ls -l /home/shadow/yay-git ?
As an aside, is there any way I can mentor you and convince you not to install an AUR helper just yet? Learn to use the tools and do it the right way rather than use yay? It is kind of like trying to use a chainsaw as a crutch.
Nothing is too wonderful to be true, if it be consistent with the laws of nature — Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. — Alan Turing
—
How to Ask Questions the Smart Way
#6 2021-11-27 22:29:18
- Slithery
- Administrator
- From: Norfolk, UK
- Registered: 2013-12-01
- Posts: 5,776
Re: [SOLVED] makepkg says i use root but i use my personal user account
shadowfok wrote:
but if I use it without sudo it says this.
[shadow@archlinux yay-git]$ makepkg -si
==> ERROR: You do not have write permission for the directory $BUILDDIR (/home/shadow/yay-git).
Aborting…
Most likely because you’ve also used sudo in the past when you shouldn’t have.
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
#7 2021-11-27 22:31:21
- shadowfok
- Member
- Registered: 2021-11-27
- Posts: 6
Re: [SOLVED] makepkg says i use root but i use my personal user account
Oh i did not know I could use AUR without a helper.
If you could help me to use AUR without a helper i would really appreciate it!
#8 2021-11-27 22:32:08
- Slithery
- Administrator
- From: Norfolk, UK
- Registered: 2013-12-01
- Posts: 5,776
Re: [SOLVED] makepkg says i use root but i use my personal user account
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
#9 2021-11-27 22:32:15
- loqs
- Member
- Registered: 2014-03-06
- Posts: 16,000
Re: [SOLVED] makepkg says i use root but i use my personal user account
Have you read Arch_User_Repository#Getting_started?
Edit:
You probably also want to remove or change the ownership of anything in your users home directory not owned by that user
find ~ ! -uid `id -u` -o ! -gid `id -g`
Last edited by loqs (2021-11-27 22:41:06)
#10 2021-11-27 22:56:28
- shadowfok
- Member
- Registered: 2021-11-27
- Posts: 6
Re: [SOLVED] makepkg says i use root but i use my personal user account
Thank you!!!
I looked at the AUR wiki and it worked.
#11 2022-09-15 04:59:31
- nibazshab
- Member
- Registered: 2022-08-25
- Posts: 52
Re: [SOLVED] makepkg says i use root but i use my personal user account
ewaller wrote:
Probably because you have run it as root in the past and there is a directory or file in that path you don’t have permission to read. What is the output of ls -l /home/shadow/yay-git ?
As an aside, is there any way I can mentor you and convince you not to install an AUR helper just yet? Learn to use the tools and do it the right way rather than use yay? It is kind of like trying to use a chainsaw as a crutch.
Can you tell me why not to use the aur assistant ? I don’t understand these
#12 2022-09-15 07:47:45
- seth
- Member
- Registered: 2012-09-03
- Posts: 38,839
Re: [SOLVED] makepkg says i use root but i use my personal user account
Please don’t necro-jack threads. Your question has nothing to do w/ the subject of this old and solved thread.
ewaller wrote:
is there any way I can mentor you and convince you not to install an AUR helper just yet?
See the warning at https://wiki.archlinux.org/title/AUR_helpers — at some point you’ll run into trouble because the helper screws up (the more they abstract, the more likely) and you’re supposed to be able to deal with that.
AUR helpers are ok for convenience, not as an excuse to not understand the nature and process of the AUR.
And it gets really bad when they blend the vetted repo packages and random junk on the AUR and actively discourage you from paying attention to what you’re installaing there.
#13 2022-09-15 12:03:00
- 2ManyDogs
- Forum Moderator
- Registered: 2012-01-15
- Posts: 4,380
Re: [SOLVED] makepkg says i use root but i use my personal user account
How to post. A sincere effort to use modest and proper language and grammar is a sign of respect toward the community.