You are not logged in.

#1 2015-01-19 19:42:59

nbd
Member
Registered: 2014-08-04
Posts: 389

Automatic upgrade of AUR packages dependent on kernel version.

I have an issue with upgrading AUR packages with pacaur. When I try to upgrade with one of the following commands:

pacaur -u [package_name]
pacaur -Su -a
pacaur -Syu

I keep getting the error 'no results found for dependencies)' 

Here an example output:

[ ~ ]$ pacaur -Syu
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...
error: failed to prepare transaction (could not satisfy dependencies)
:: spl-git: requires linux=3.17.6-1
:: zfs-git: requires linux=3.17.6-1
:: Starting AUR upgrade...
:: resolving dependencies...
:: no results found for dependencies)

As seen in this example, the system upgrade is failed due to two kernel packages which require the previous kernel version.

I wonder, does the AUR upgrade fails after the failed system upgrade because of new spl-git and zfs-git packages require the new kernel version? And the message ":: no results found for dependencies)" is caused by this?

It seems there is a kind of a circular dependency in this case - kernel doesn't upgrade because of zfs requires the older kernel, and zfs doesn't upgrade because the new version of zfs requires the new kernel.

Previously I upgraded AUR packages manually, by first removing them, then upgrading the kernel and after that installing new versions of packages.

Is it possible to automatically upgrade kernel packages? If so can this be done with pacaur?

Last edited by nbd (2015-01-19 23:39:49)


bing different

Offline

#2 2015-01-19 20:15:01

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Automatic upgrade of AUR packages dependent on kernel version.

Those AUR packages depend on linux-3.17.6-1, which is no longer available - that's what those error messages mean. The maintainer of those packages (or you) needs to update them.

Offline

#3 2015-01-19 20:20:56

nbd
Member
Registered: 2014-08-04
Posts: 389

Re: Automatic upgrade of AUR packages dependent on kernel version.

tomk wrote:

Those AUR packages depend on linux-3.17.6-1, which is no longer available - that's what those error messages mean. The maintainer of those packages (or you) needs to update them.

The new versions of those two packages already exist in the AUR repository. Is it possible to install them automatically with pacaur?


bing different

Offline

#4 2015-01-19 20:24:00

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

Re: Automatic upgrade of AUR packages dependent on kernel version.

nbd wrote:

Is it possible to automatically upgrade kernel packages? If so can this be done with pacaur?

Those aren't "kernel packages" they are just aur packages with a specific kernel dependency.

If by "automatically" you mean magically, then no.  You need to manage your AUR packages yourself.  The correct 'official' method would be as you described: remove the aur packages, upgrade your system, rebuild and install the new aur packages.

Can this be automated with <insert-favorite-tool>?  Well, you should ask the manual page or author of <insert-favorite-tool>.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#5 2015-01-19 20:24:44

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Automatic upgrade of AUR packages dependent on kernel version.

You can remove the offending packages, update the packages from the official repos and rebuild AUR packages.

Offline

#6 2015-01-19 23:16:37

whitesnow
Member
Registered: 2015-01-04
Posts: 54

Re: Automatic upgrade of AUR packages dependent on kernel version.

Hi, so I'm not the only newbie doing such things.

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

ukhippo wrote:

Afterwards I also suggest using “pacman -Syyu” to update (note the double “y”, this forces a refresh of all packages)

meaning first add the repository and the key for demz-repo-core https://wiki.archlinux.org/index.php/Un … -repo-core.

I did that today but the output was just:

[root@machine1 ~]# pacman -Syyu
:: Synchronizing package databases...
 core          121.6 KiB   599K/s 00:00 [########################################################] 100% 
 extra       1806.6 KiB   671K/s 00:03 [########################################################] 100%
community    2.5 MiB   672K/s 00:04 [########################################################] 100% 
multilib       121.2 KiB   932K/s 00:00 [########################################################] 100% 
demz-repo-archiso    5.5 KiB  37.9K/s 00:00 [########################################################] 100% 
demz-repo-archiso.sig  287.0   B  0.00B/s 00:00 [########################################################] 100% 
demz-repo-core  7.8 KiB  48.6K/s 00:00 [########################################################] 100% 
demz-repo-core.sig  287.0   B  0.00B/s 00:00 [########################################################] 100%
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...
error: failed to prepare transaction (could not satisfy dependencies)
:: spl-git: requires linux=3.17.6-1
:: zfs-git: requires linux=3.17.6-1

even though I read
https://www.archlinux.org/packages/?sor … =&flagged=
x86_64     Core     linux     3.18.2-2     The Linux kernel and modules     2015-01-15     2015-01-16

and
https://github.com/demizer/archzfs
    spl-git     Update git packages for kernel 3.18.2-2     4 days ago
    zfs-git     Update git packages for kernel 3.18.2-2     4 days ago


I don't really know if I want to remove the package first, while running the machine from a zfs filesystem.

If it runs automatically the chance of me making an error is a little smaller, don't really want to have a not bootable system.

Offline

#7 2015-01-19 23:33:46

Spyhawk
Member
Registered: 2006-07-07
Posts: 485

Re: Automatic upgrade of AUR packages dependent on kernel version.

whitesnow wrote:

If it runs automatically the chance of me making an error is a little smaller, don't really want to have a not bootable system.

There is no way an AUR helper could handle such a situation with a hard dependency by itself - if it did, you'd likely already have an unbootable system.
Don't use pacaur to fix tricky situation better than you could - it's a helper, not a magical toolbox.

Last edited by Spyhawk (2015-01-19 23:35:28)

Offline

#8 2015-01-19 23:47:11

nbd
Member
Registered: 2014-08-04
Posts: 389

Re: Automatic upgrade of AUR packages dependent on kernel version.

OK, I see that my guess that such circular dependency cannot be resolved by a tool without manually removing kernel-version-dependent packages - was right.

It seems that the easiest way to upgrade kernel-version-dependent packages is:

1. Remove version-dependent packages with 'pacman -R spl-git zfs-git';
2. Do the system upgrade with 'pacman -Syu'
3. Do the AUR upgrade (of other AUR packages) with 'pacaur -Su -a'
4. Install new versions of removed packages with 'pacaur -y spl-git zfs-git'

Is this way correct?


bing different

Offline

#9 2015-01-19 23:53:53

ukhippo
Member
From: Non-paged pool
Registered: 2014-02-21
Posts: 366

Re: Automatic upgrade of AUR packages dependent on kernel version.

Remove the demz-repo-archiso repository.

Offline

#10 2015-01-19 23:57:50

progandy
Member
Registered: 2012-05-17
Posts: 5,203

Re: Automatic upgrade of AUR packages dependent on kernel version.

Nearly the same question has been answered here:
https://bbs.archlinux.org/viewtopic.php?pid=1491827


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#11 2015-01-20 00:02:08

nbd
Member
Registered: 2014-08-04
Posts: 389

Re: Automatic upgrade of AUR packages dependent on kernel version.

progandy wrote:

Nearly the same question has been answered here:
https://bbs.archlinux.org/viewtopic.php?pid=1491827

That was where I was advised to use AUR helpers for automatically upgrading the two aforementioned kernel-versio-dependent packages. Today I installed an AUR helper and tried to do upgrade automatically, but AUR helpers seem not handle the cases with hard dependencies on kernel version.


bing different

Offline

#12 2015-01-20 00:08:11

progandy
Member
Registered: 2012-05-17
Posts: 5,203

Re: Automatic upgrade of AUR packages dependent on kernel version.

nbd wrote:

but AUR helpers seem not handle the cases with hard dependencies on kernel version.

That seems to be the case. Maybe yaourt is different, I don't know I never use it. Still, the demz-repo-core should work if you use it without demz-repo-archiso.
As ukhippo said, remove demz-repo-archiso and keep demz-repo-core, then try it again.
If it doesn't work, try to force pacman to reinstall zfs and spl. "pacman -Syu zfs-git spl-git"

Last edited by progandy (2015-01-20 00:10:17)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#13 2015-01-20 04:49:48

whitesnow
Member
Registered: 2015-01-04
Posts: 54

Re: Automatic upgrade of AUR packages dependent on kernel version.

Thank's a lot, ukhippo.

To take the demz-repo-archiso away did it.

Building the package did not succeed before, it could not download with makepkg. So whatever the solution there is/was, I don't know. Rolling back the kernel and doing  makepkg, stopped with something about wrong kernel version.

But this way without demz-repo-archiso it just worked easy.


Apart from nbd, with the original question, I did not use packaur, just pacman -Syyu

Offline

#14 2015-10-01 13:48:20

Markismus
Member
Registered: 2015-08-09
Posts: 43

Re: Automatic upgrade of AUR packages dependent on kernel version.

Thanks for the solution for updating while having the zfs-git package!

Last edited by Markismus (2015-10-01 13:48:32)

Offline

Board footer

Powered by FluxBB