You are not logged in.

#1 2020-08-17 15:33:03

Flavoured-Goo
Member
Registered: 2020-08-17
Posts: 31

[SOLVED] Resolving dependencies via pacman

mkpkg needs to be run as a regular user and pacman needs root access to resolve the dependencies. When I try to run mkpkg -si , I get "'pacman' failed to install missing dependencies." and since running mkpkg as root isn't allowed, , how do i work around this?

Last edited by Flavoured-Goo (2020-08-18 06:09:55)

Offline

#2 2020-08-17 15:34:25

d_fajardo
Member
Registered: 2017-07-28
Posts: 1,687

Re: [SOLVED] Resolving dependencies via pacman

Offline

#3 2020-08-17 15:46:53

Flavoured-Goo
Member
Registered: 2020-08-17
Posts: 31

Re: [SOLVED] Resolving dependencies via pacman

I looked here and while the issue I mentioned is referenced, I can't see a solution in this link. Is there something i'm missing?

Offline

#4 2020-08-17 15:56:49

d_fajardo
Member
Registered: 2017-07-28
Posts: 1,687

Re: [SOLVED] Resolving dependencies via pacman

It depends what the dependencies are. As mentioned in the wiki, the dependencies need to be in configured repositories. If not,  as if the dependencies are in AUR, then I believe you have to build and install those first.

EDIT: If the dependencies are in the official repositories and you still can't build with --syncdeps, then there's probably a problem with your makepkg configuration.

Last edited by d_fajardo (2020-08-17 15:59:22)

Offline

#5 2020-08-17 16:07:47

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,456
Website

Re: [SOLVED] Resolving dependencies via pacman

The direct answer to your question is that makpkg uses `sudo` to run pacman, so it will prompt you for your password if/when needed.  If sudo is not installed, it will fallback on su, in which case you'd need to use the root password when it prompts for it.

The above will fail if sudo is installed and not configured: without being configured properly, your user will not be able to use sudo, but as it's installed, makepkg will not fallback on su.  However, none of these cases will result in the error message you presented (at least not as the first error message).

So if you wanted to understand how it's designed to work, this should answer that.  If you want  to know why your specific case is failing, please post the complete command and output.

EDIT: why did you post a new thread for this when you already had the same question in another thread?

Last edited by Trilby (2020-08-17 16:20:45)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#6 2020-08-17 17:29:07

ayekat
Member
Registered: 2011-01-17
Posts: 1,632

Re: [SOLVED] Resolving dependencies via pacman

We might be able to help more efficiently if you could show us the full output of makepkg, not just what you think is the relevant part of the information.
There is usually more errors printed before that one message you gave us.


pkgshackscfgblag

Offline

#7 2020-08-18 06:08:33

Flavoured-Goo
Member
Registered: 2020-08-17
Posts: 31

Re: [SOLVED] Resolving dependencies via pacman

Okay Thanks for all the help, I get a prompt for the root password when needed. It wasn't happening this way when I asked this question, probably because of the user logged in as.

Offline

#8 2020-08-18 11:59:02

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,456
Website

Re: [SOLVED] Resolving dependencies via pacman

I gather you were not prompted for the root password, but for your users password as this is the only thing that would explain not being prompted previously: sudo has a "timeout" - meaning if you recently successfully used sudo in the shell session, you will not be prompted again for the password for some amount of time.  su, in contrast, doesn't have a timeout as far as I know.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

Board footer

Powered by FluxBB