You are not logged in.

#1 2011-02-15 23:20:37

mycorunner
Member
Registered: 2010-01-06
Posts: 25

[SOLVED]MAKEPKG can't resolve dependencies unless I use --asroot first

Hi all,

I've been trying to install an AUR package and when I run 'makepkg -s' it said it couldn't resolve dependencies. I checked the dependencies, installed them via pacman, and still got the same message. I've been searching around everywhere and couldn't figure it out.

Then, disregarding the dire warning, I ran 'makepkg --asroot.' I got an error message saying it didn't have a required dependency that wasn't listed on the AUR site. I installed it with pacman, then ran 'makepkg -s' and it worked fine.

What gives? Why wasn't the dependency listed on the AUR page? It was the ttf-ms-fonts and has been updated on Jan 13, 2011 so it is up to date. Any ideas?

Thanks!

*quick update*
I tried installing flashplugin-prerelease and it wouldn't install the dependencies that were listed on the AUR page. No hidden dependencies this time though.

Last edited by mycorunner (2011-03-07 00:56:32)

Offline

#2 2011-02-16 00:23:05

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,472
Website

Re: [SOLVED]MAKEPKG can't resolve dependencies unless I use --asroot first

If I understand you correctly, you are trying to resolve dependencies that are only found in the AUR.  Pacman can not resolve dependencies only found in the AUR for you.

If I don't understand correctly, post some actual pacman output.

Offline

#3 2011-02-16 00:43:27

mycorunner
Member
Registered: 2010-01-06
Posts: 25

Re: [SOLVED]MAKEPKG can't resolve dependencies unless I use --asroot first

The dependencies were all in the repositories and I installed them with pacman. The makepkg wouldn't install them for me with the "-s" added like it should. I then installed the dependencies listed on the AUR package's page via pacman, but when I tried makepkg again it complained about missing dependencies. I ran "makepkg --asroot" and it said that there was another dependency (again, in the regular repositories) that wasn't listed on the AUR page.

I was under the impression that running "makepkg -s" would compile (is that the right term?) the PKGBUILD and install any needed dependencies that are available in the repos.

better? is there a makepkg log i can post? I can't find one.

Offline

#4 2011-02-16 00:49:21

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,472
Website

Re: [SOLVED]MAKEPKG can't resolve dependencies unless I use --asroot first

Just copy/paste the output from makepkg.  There is not really a log for that part of the build.

Offline

#5 2011-02-16 00:57:10

mycorunner
Member
Registered: 2010-01-06
Posts: 25

Re: [SOLVED]MAKEPKG can't resolve dependencies unless I use --asroot first

Well because I already installed the package successfully, I'll have to write it from memory. The output from makepkg was something along the lines of "error: cannot resolve dependencies" then underneath it said "could not find or read package". Then I ran makepkg --asroot and it had the same error message but TOLD me what the missing dependency was, so I just installed it from pacman. After that the makepkg command worked.

Offline

#6 2011-02-16 01:08:04

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,472
Website

Re: [SOLVED]MAKEPKG can't resolve dependencies unless I use --asroot first

I'm going to need actual cut and paste output to try and track this down further as it is not something I have ever seen before.   Remember to keep a copy of the output next time you build a package.

Offline

#7 2011-02-16 01:17:07

mycorunner
Member
Registered: 2010-01-06
Posts: 25

Re: [SOLVED]MAKEPKG can't resolve dependencies unless I use --asroot first

[myco-runner@Arch yaourt]$ makepkg -s
==> Making package: yaourt 0.9.5.1-1 (Tue Feb 15 20:15:37 EST 2011)
==> Checking Runtime Dependencies...
==> Installing missing dependencies...
error: 'error:': could not find or read package
==> ERROR: 'pacman' failed to install missing dependencies.

Offline

#8 2011-02-16 01:30:56

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,472
Website

Re: [SOLVED]MAKEPKG can't resolve dependencies unless I use --asroot first

Weird...    try running:

pacman -T fakepkgname

and see what output you get.

Offline

#9 2011-02-16 01:33:00

mycorunner
Member
Registered: 2010-01-06
Posts: 25

Re: [SOLVED]MAKEPKG can't resolve dependencies unless I use --asroot first

[myco-runner@Arch yaourt]$ sudo pacman -T fakepkgname
fakepkgname

Offline

#10 2011-02-16 01:34:08

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,472
Website

Re: [SOLVED]MAKEPKG can't resolve dependencies unless I use --asroot first

and without sudo?

Offline

#11 2011-02-16 01:35:04

mycorunner
Member
Registered: 2010-01-06
Posts: 25

Re: [SOLVED]MAKEPKG can't resolve dependencies unless I use --asroot first

[myco-runner@Arch yaourt]$ pacman -T fakepkname
error: config file /etc/pacman.d/mirrorlist could not be read.
error: config file /etc/pacman.d/mirrorlist could not be read.
error: config file /etc/pacman.d/mirrorlist could not be read.
fakepkname

Offline

#12 2011-02-16 01:39:27

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,472
Website

Re: [SOLVED]MAKEPKG can't resolve dependencies unless I use --asroot first

Ah...  there comes the failure.  Try:

chmod 644 /etc/pacman.d/mirrorlist

to get the permissions back to standard.

Offline

#13 2011-02-16 01:54:25

mycorunner
Member
Registered: 2010-01-06
Posts: 25

Re: [SOLVED]MAKEPKG can't resolve dependencies unless I use --asroot first

I forgot about the permissions when I changed the mirrorlist, thanks!

The makepkg is still giving me an error, this time its:

[myco-runner@Arch yaourt]$ makepkg -s
==> Making package: yaourt 0.9.5.1-1 (Tue Feb 15 20:50:09 EST 2011)
==> Checking Runtime Dependencies...
==> Installing missing dependencies...
error: 'package-query>=0.4': could not find or read package
==> ERROR: 'pacman' failed to install missing dependencies.

At least this time it tells me what package is missing, but it won't install it because it's an AUR package. I suspect it will work for other non-AUR packages though.

Just confirmed it, it works! Thanks!

Last edited by mycorunner (2011-02-16 02:05:31)

Offline

#14 2011-02-16 01:58:35

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,472
Website

Re: [SOLVED]MAKEPKG can't resolve dependencies unless I use --asroot first

Correct.  pacman knows nothing about packages in the AUR.

Offline

#15 2011-03-03 13:22:05

thedude85
Member
From: Berlin
Registered: 2011-02-24
Posts: 16

Re: [SOLVED]MAKEPKG can't resolve dependencies unless I use --asroot first

when i'm installing yaourt in command line the follow message appear:

[thedude@myhost yaourt]$ makepkg PKGBUILD
==> Making package: yaourt 0.9.5.1-1 (Thu Mar  3 14:17:35 CET 2011)
==> Checking Runtime Dependencies...
==> Missing Dependencies:
  -> package-query>=0.4
==> Checking Buildtime Dependencies...
==> ERROR: Could not resolve all dependencies.

i install package-query and the problem persist...


Grid

Offline

#16 2011-03-03 13:43:37

thedude85
Member
From: Berlin
Registered: 2011-02-24
Posts: 16

Re: [SOLVED]MAKEPKG can't resolve dependencies unless I use --asroot first

Done wink


Grid

Offline

#17 2015-07-20 12:00:31

wandy
Member
Registered: 2015-02-27
Posts: 20

Re: [SOLVED]MAKEPKG can't resolve dependencies unless I use --asroot first

I just update the

 sudo pacman -Syy 

then, it works. I hope it will be helpful.

Offline

#18 2015-07-20 12:11:24

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 12,406
Website

Re: [SOLVED]MAKEPKG can't resolve dependencies unless I use --asroot first

It won't. That is awful advice. Never update package lists (-Sy or -Syy) unless you immediately follow it up with a system upgrade (-Su or -Syu).

https://bbs.archlinux.org/viewtopic.php?id=89328

Regardless, I don't see what this has to do with a four year old [SOLVED] thread. Please don't necrobump.

Closing.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

Board footer

Powered by FluxBB