[arch-general] PKGBUILD ERROR
I got the following errors in "yaourt -S sublime-text-dev" : sublime-text-dev 3.3083-2 (2015-07-07 21:14) ( Unsupported package: Potentially dangerous ! ) ==> Edit PKGBUILD ? [Y/n] ("A" to abort) ==> ------------------------------------ ==> y Please add $VISUAL to your environment variables for example: export VISUAL="vim" (in ~/.bashrc) (replace vim with your favorite editor) ==> Edit PKGBUILD with: vim ==> ERROR: Running makepkg as root is not allowed as it can cause permanent, catastrophic damage to your system. Unable to read PKGBUILD Waiting for help.Thank you all! - mudongliang
Hi On Fri, Sep 11, 2015 at 12:28 AM, mudongliang <mudongliangabcd@outlook.com> wrote:
==> ERROR: Running makepkg as root is not allowed as it can cause permanent, catastrophic damage to your system.
What exactly in the message above is not clear for you?
On 09/11/2015 03:38 PM, Anatol Pomozov wrote:
Hi
On Fri, Sep 11, 2015 at 12:28 AM, mudongliang <mudongliangabcd@outlook.com> wrote:
==> ERROR: Running makepkg as root is not allowed as it can cause permanent, catastrophic damage to your system.
What exactly in the message above is not clear for you? I am newbie to Archlinux. Today I installed archlinux in my notebook. I don't know how to fix this problem. I searched , but found no useful solutions. - mudongliang
On 11 September 2015 08:50:35 BST, mudongliang <mudongliangabcd@outlook.com> wrote:
On 09/11/2015 03:38 PM, Anatol Pomozov wrote:
Hi
On Fri, Sep 11, 2015 at 12:28 AM, mudongliang <mudongliangabcd@outlook.com> wrote:
==> ERROR: Running makepkg as root is not allowed as it can cause permanent, catastrophic damage to your system.
What exactly in the message above is not clear for you? I am newbie to Archlinux. Today I installed archlinux in my notebook. I don't know how to fix this problem. I searched , but found no useful solutions. - mudongliang
Read the relevant docs and ensure you understanging what the process you are trying to follow is doing. -- Dave GPG/PGP ID: CDB94DA1
On 09/11/2015 03:59 PM, Dave wrote:
On 11 September 2015 08:50:35 BST, mudongliang <mudongliangabcd@outlook.com> wrote:
On 09/11/2015 03:38 PM, Anatol Pomozov wrote:
Hi On Fri, Sep 11, 2015 at 12:28 AM, mudongliang <mudongliangabcd@outlook.com> wrote:
==> ERROR: Running makepkg as root is not allowed as it can cause permanent, catastrophic damage to your system.
What exactly in the message above is not clear for you?
I am newbie to Archlinux. Today I installed archlinux in my notebook. I don't know how to fix this problem. I searched , but found no useful solutions. - mudongliang
Read the relevant docs and ensure you understanging what the process you are trying to follow is doing.
I think that installing package always needs root privilege by default. So I don't know why this error happens! I remove "sudo" in my command. It is successful now. - mudongliang
-- Dave
GPG/PGP ID: CDB94DA1
On Fri, Sep 11, 2015 at 4:14 AM, mudongliang <mudongliangabcd@outlook.com> wrote:
Read the relevant docs and ensure you understanging what the process you
are trying to follow is doing.
I think that installing package always needs root privilege by default. So I don't know why this error happens! I remove "sudo" in my command. It is successful now. - mudongliang
yaourt homepage, with examples: https://archlinux.fr/yaourt-en One of the reasons for yaourt (aside for transparently handling AUR) is that you don't need to use sudo -- yaourt knows when to use sudo, and wraps that too. And yaourt doesn't *just* install packages... Which was your problem. yaourt was acting as a wrapper around downloading the AUR PKGBUILD and running makepkg. Which was why you decided to use it. ;) It is advisable to get familiar with the process of building and installing AUR packages by hand, and only when you are sure of what you are doing, then use a convenience wrapper. -- Eli Schwartz
On 09/11/2015 05:05 PM, Eli Schwartz wrote:
On Fri, Sep 11, 2015 at 4:14 AM, mudongliang <mudongliangabcd@outlook.com> wrote:
Read the relevant docs and ensure you understanging what the process you
are trying to follow is doing.
I think that installing package always needs root privilege by default. So I don't know why this error happens! I remove "sudo" in my command. It is successful now. - mudongliang
yaourt homepage, with examples: https://archlinux.fr/yaourt-en
One of the reasons for yaourt (aside for transparently handling AUR) is that you don't need to use sudo -- yaourt knows when to use sudo, and wraps that too.
Yes , this wrapper is very good and "clever". When I remove the sudo and install softwares, I see in the last steps , it requests me to input my password.
And yaourt doesn't *just* install packages... Which was your problem. yaourt was acting as a wrapper around downloading the AUR PKGBUILD and running makepkg. Which was why you decided to use it. ;)
It is advisable to get familiar with the process of building and installing AUR packages by hand, and only when you are sure of what you are doing, then use a convenience wrapper.
It is essential to understand the internal theory and operate it by hands. Then I will have a deep understanding! Besides, I first use pacman , but there are some softwares in aur which needs yaourt. So I install and use it as the wiki tells me. - mudongliang
-- Eli Schwartz
On Fri, 11 Sep 2015 20:55:10 +0800, mudongliang wrote:
Besides, I first use pacman , but there are some softwares in aur which needs yaourt. So I install and use it as the wiki tells me.
Nothing provided by AUR needs yaourt. In some exceptional cases it could be, that building with yaourt fails. The classical approach is to download the snapshot from AUR, to extract it and to run makepkg -s. If libraries provided by the official repositories changed and software provided by a package you build from AUR depends on a dedicated version of such an upgraded lib, then even yaourt not necessarily will inform you about upgraded PKGBUILDS, since especially PKGBUILD that clone from git seldom will be upgraded. You need to care about such changes on your own. However, not only packages build from AUR are tricky, always care about the news on the Arch homepage and read what pacman wants to do, when upgrading. You should take a deeper look into the Arch Wiki. There are Arch Wikis in different languages. Regards, Ralf
On 09/11/2015 09:23 PM, Ralf Mardorf wrote:
On Fri, 11 Sep 2015 20:55:10 +0800, mudongliang wrote:
Besides, I first use pacman , but there are some softwares in aur which needs yaourt. So I install and use it as the wiki tells me.
Nothing provided by AUR needs yaourt. In some exceptional cases it could be, that building with yaourt fails.
The classical approach is to download the snapshot from AUR, to extract it and to run makepkg -s.
If libraries provided by the official repositories changed and software provided by a package you build from AUR depends on a dedicated version of such an upgraded lib, then even yaourt not necessarily will inform you about upgraded PKGBUILDS, since especially PKGBUILD that clone from git seldom will be upgraded. You need to care about such changes on your own. However, not only packages build from AUR are tricky, always care about the news on the Arch homepage and read what pacman wants to do, when upgrading.
You should take a deeper look into the Arch Wiki. There are Arch Wikis in different languages. OK, thank you! I will read it again. - mudongliang
Regards, Ralf
On Fri, Sep 11, 2015 at 8:55 AM, mudongliang <mudongliangabcd@outlook.com> wrote:
It is essential to understand the internal theory and operate it by hands. Then I will have a deep understanding!
Besides, I first use pacman , but there are some softwares in aur which needs yaourt. So I install and use it as the wiki tells me. - mudongliang
Never just install something because the Wiki tells you! (eek!) Install it because (and when) you know what problem it is solving. If you had first become familiar with the manual usage of makepkg, then you would've known something was wrong with using sudo for yaourt, and you would've discovered on your own that yaourt is not meant to be run using sudo. How could it, if one of the things it does is run makepkg -- unless it does loopy and redundant things to delevate your permissions back down to user level. As Ralf said, nothing *requires* yaourt, and indeed some things will blow up when you try installling via yaourt -- but standard makepkg handles fine, and indeed so do most AUR wrappers, in the AUR Helpers comparison chart [1] see the "Clean build" entry for yaourt. ;) [2] -- Eli Schwartz [1] https://wiki.archlinux.org/index.php/AUR_helpers#Comparison_table [2] https://lists.archlinux.org/pipermail/aur-general/2015-August/031314.html
On Fri, 11 Sep 2015 16:14:29 +0800, mudongliang wrote:
I think that installing package always needs root privilege by default.
It does, but building doesn't (fakeroot). At the right time yaourt will ask you for the password. A while back makepkg provided the --asroot option, but it was dropped.
On 09/11/2015 05:39 PM, Ralf Mardorf wrote:
On Fri, 11 Sep 2015 16:14:29 +0800, mudongliang wrote:
I think that installing package always needs root privilege by default.
It does, but building doesn't (fakeroot). At the right time yaourt will ask you for the password. A while back makepkg provided the --asroot option, but it was dropped.
I can see it in the installing software. I don't know the internal knowledge of yaourt. So when the problem occurs, I don't know the point. Thank you for help! - mudongliang
On Fri, Sep 11, 2015 at 3:50 AM, mudongliang <mudongliangabcd@outlook.com> wrote:
I am newbie to Archlinux. Today I installed archlinux in my notebook. I don't know how to fix this problem. I searched , but found no useful solutions. - mudongliang
Have you tried *obeying the message* and running makepkg as a non-root user? -- Eli Schwartz
On 09/11/2015 04:04 PM, Eli Schwartz wrote:
On Fri, Sep 11, 2015 at 3:50 AM, mudongliang <mudongliangabcd@outlook.com> wrote:
I am newbie to Archlinux. Today I installed archlinux in my notebook. I don't know how to fix this problem. I searched , but found no useful solutions. - mudongliang
Have you tried *obeying the message* and running makepkg as a non-root user? Yes, you're right! I run yaourt with "sudo". I have finished installing by removing sudo. - mudongliang
-- Eli Schwartz
On 11/09/15, mudongliang wrote:
Please add $VISUAL to your environment variables for example: export VISUAL="vim" (in ~/.bashrc) (replace vim with your favorite editor)
==> Edit PKGBUILD with: vim Edit your ~/.bashrc and add the suggested env variable.
==> ERROR: Running makepkg as root is not allowed as it can cause permanent, catastrophic damage to your system. Unable to read PKGBUILD
You are running makepkg as root. Start using a user. -- Sent using mutt
participants (6)
-
Anatol Pomozov
-
Dave
-
Eli Schwartz
-
Leonidas Spyropoulos
-
mudongliang
-
Ralf Mardorf