LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-29-2017, 09:32 PM   #1
Barkester
Member
 
Registered: Jan 2017
Location: SE Asia
Distribution: Arch
Posts: 67

Rep: Reputation: Disabled
Question How to run makepkg? Only strangers allowed?


Strange outputs trying to install some stuff. They assure me I can't run makepkg when in root whether I am root, user, or superuser. Are only strangers allowed then?

This output happens with several programs whether I answer yes or no to the question.

tiger 3.2.3-4 (2015-10-30 19:09)
( Unsupported package: Potentially dangerous ! )
==> Edit PKGBUILD ? [Y/n] ("A" to abort)
==> ------------------------------------
==> n

==> ERROR: Running makepkg as root is not allowed as it can cause permanent,
catastrophic damage to your system.
==> ERROR: An unknown error has occurred. Exiting...


Bizarre. I was actually superuser here but its the same output regardless.

May have to invite a stranger over.

Any better ideas?

Thnx
 
Old 06-29-2017, 09:48 PM   #2
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, Debian 12, Devuan & MX Linux
Posts: 9,528
Blog Entries: 15

Rep: Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178
Take a look at this doc for makepkg it has some tips and tricks that can help.

https://wiki.archlinux.org/index.php/makepkg

What are you trying to install and is the Arch you are running?
 
Old 06-29-2017, 09:49 PM   #3
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
Which distro are you using? And which command are you running?
 
Old 06-29-2017, 09:54 PM   #4
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, Debian 12, Devuan & MX Linux
Posts: 9,528
Blog Entries: 15

Rep: Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178
https://wiki.archlinux.org/index.php/creating_packages
 
Old 06-30-2017, 12:20 AM   #5
Barkester
Member
 
Registered: Jan 2017
Location: SE Asia
Distribution: Arch
Posts: 67

Original Poster
Rep: Reputation: Disabled
I do have the man and scanned it a few times, but nothing about special privileges at all. Seems to work fine alone.

The command in the output above is yaourt -S tiger while already in superuser mode.

Identical results are given for sudo yaourt -S tiger as well as one other program, innoextract.

So its using yaourt to fire pacman which fires PKGBUILD which reaches for makepkg and fails.

Its an ArchLinux system.

As for the last post, I was rather hoping not to havta go so far into it as building my own from scratch. Not yet. Yaourt and pacman were supposed to save me that hassle for now,but are likely the ones failing on this.
So thanks for the link. It may just end up being easier doing it your way as this seems recurring.
Skip to the end of the line and get things done. Pretend pacman never happened. Hasn't Windows taught me long ago how unhelpful helpers are? Doff the crutches.

Got books and the man. I'll get to reading. Makes sense.

Thanx all.
 
Old 06-30-2017, 12:07 PM   #6
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, Debian 12, Devuan & MX Linux
Posts: 9,528
Blog Entries: 15

Rep: Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178
I heard of yaourt when I was running Apricity OS (arch based) but never used it.

Hope that doing some reading helps and gives you clarification that you need.
Let us know how things go.
 
Old 07-03-2017, 01:00 AM   #7
Barkester
Member
 
Registered: Jan 2017
Location: SE Asia
Distribution: Arch
Posts: 67

Original Poster
Rep: Reputation: Disabled
Celebratory bowl time!

That took a while. Its a pretty Arch-specific tick.

Updated all keys. Even reinstalled 'em.

Went thru pacman and yaourt settings.Discovered pacaur. Ended up skipping all of 'em.

learned to download and assemble from the UAR. With Arch it was only a matter of time.

Finally finished it up with makepkg -si innoextract and it nicely did all the lifting from there. Flawless and easy even.

Having been in the repositories, I had never really checked out the wiki until Ztcoraocat's link. Lots of really top notch Arch-specific tutorials so thanks much for that. Put me right on track. I plan to spend alot of time there.

So makepkg will work in root if you ask nice. Solved.
 
Old 07-03-2017, 01:07 AM   #8
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875
There tends to be logs of failures if you wanted to see what it's gripes were.

$ find . -iname '*log*'

The one with the timestamp of when you compiled / errored out is the applicable one. But glad you got it working. Package management stuff probably ends up in /var/log/ or $(journalctl -a) type ways.
 
Old 07-03-2017, 10:56 AM   #9
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, Debian 12, Devuan & MX Linux
Posts: 9,528
Blog Entries: 15

Rep: Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178
Quote:
Originally Posted by Barkester View Post
Celebratory bowl time!

That took a while. Its a pretty Arch-specific tick.

Updated all keys. Even reinstalled 'em.

Went thru pacman and yaourt settings.Discovered pacaur. Ended up skipping all of 'em.

learned to download and assemble from the UAR. With Arch it was only a matter of time.

Finally finished it up with makepkg -si innoextract and it nicely did all the lifting from there. Flawless and easy even.

Having been in the repositories, I had never really checked out the wiki until Ztcoraocat's link. Lots of really top notch Arch-specific tutorials so thanks much for that. Put me right on track. I plan to spend alot of time there.

So makepkg will work in root if you ask nice. Solved.
Glad the link helped.

Have a nice 4th of July!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Admin is not allowed to run sudo on localhost. This incident will be reported. nitsss Linux - Newbie 14 12-29-2015 10:52 PM
LXer: The Kindness of strangers can defeat Proprietary Cloud Computing. Free Software LXer Syndicated Linux News 0 04-29-2009 10:11 AM
Only one software management tool is allowed to run at the same time Chris.len Linux - Software 2 04-06-2009 12:20 PM
Tracking user logins that was allowed and not allowed eswanepoel Linux - Security 3 08-02-2006 05:37 AM
LXer: Desktop Linux relies on the kindness of strangers LXer Syndicated Linux News 0 06-28-2006 06:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:29 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration