You are not logged in.

#1 2025-08-25 06:22:15

ttc0419
Member
Registered: 2024-02-09
Posts: 7

[solved] makepkg always failed to resolve dependencies

[build@archlinux xxx]$ makepkg -s
==> Making package: xxx 0-1 (Mon Aug 25 14:18:22 2025)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Installing missing dependencies...
[sudo] password for build: 
build is not in the sudoers file.
==> ERROR: 'pacman' failed to install missing dependencies.
==> Missing dependencies:
  -> go
==> ERROR: Could not resolve all dependencies.

pacman.conf:

[options]
HoldPkg     = pacman glibc
Architecture = auto
CheckSpace
ParallelDownloads = 5
DownloadUser = alpm
SigLevel    = Required DatabaseOptional
LocalFileSigLevel = Optional

[core-x86-64-v4]
Server = http://mirror.twds.com.tw/alhp/$repo/os/$arch/

[extra-x86-64-v4]
Server = http://mirror.twds.com.tw/alhp/$repo/os/$arch/

[core]
Include = /etc/pacman.d/mirrorlist

[extra]
Include = /etc/pacman.d/mirrorlist

Last edited by ttc0419 (2025-08-25 06:40:25)

Offline

#2 2025-08-25 06:30:38

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,053

Re: [solved] makepkg always failed to resolve dependencies

The critical part is here

[sudo] password for build: 
build is not in the sudoers file.

pacman can't install things without root privileges.

Offline

Board footer

Powered by FluxBB