You are not logged in.

#1 2024-08-19 05:54:49

jpc
Member
Registered: 2024-07-27
Posts: 2

[Solved] Unsatisfied Package Dependency After Kernel Downgrade

I am trying to install a package (zfs-linux-lts) which cannot satisfy a dependency, yet that dependency is for the kernel that I am currently booted into. The system is otherwise up-to-date except for the kernel, which I intentionally downgraded in an attempt to make this work. I downgraded it with

 pacman -U https://archive.archlinux.org/packages/l/linux-lts/linux-lts-6.6.36-1-x86_64.pkg.tar.zst 

Here is what I am seeing. Is pacman unaware of the kernel downgrade?

Arch Linux 6.6.36-1-lts (ttyS0)

citrine-qemu login: root
Password: 
Last login: Mon Aug 19 00:36:34 on ttyS0
Syu zfs-linux-ltsarchlipacman -Syu zfs-linux-lts
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 archzfs is up to date
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...
error: failed to prepare transaction (could not satisfy dependencies)
:: unable to satisfy dependency 'linux-lts=6.6.36-1' required by zfs-linux-lts

Last edited by jpc (2024-08-19 16:34:27)

Offline

#2 2024-08-19 06:51:57

mpan
Member
Registered: 2012-08-01
Posts: 1,597
Website

Re: [Solved] Unsatisfied Package Dependency After Kernel Downgrade

-Syu updates the system, which also includes updating linux-lts to the current version (6.6.46-1). In other words: pacman is aware of the version more than you want it to be. You want to ignore the package update with `--ignore=linux-lts`.

Obligatory note on partial upgrades being unsupported. I do understand you probably need it only for testing and unupdated kernels are not generally frowned upon, but be aware this shouldn’t become the normal way your system operate.


Paperclips in avatars? | Sometimes I seem a bit harsh — don’t get offended too easily!

Offline

#3 2024-08-19 16:31:38

jpc
Member
Registered: 2024-07-27
Posts: 2

Re: [Solved] Unsatisfied Package Dependency After Kernel Downgrade

Thanks! This fixed it

pacman -Syu zfs-linux-lts --ignore=linux-lts

The intentional downgrade is only needed for the install. Going forward, the kernel will just not update until the zfs package is updated for that kernel. Theoretically using LTS will reduce the frequency of this ZFS Installation. Hopefully this doesn't break later.

Offline

#4 2024-08-20 17:22:13

NuSkool
Member
Registered: 2015-03-23
Posts: 293

Re: [Solved] Unsatisfied Package Dependency After Kernel Downgrade

Hopefully this doesn't break later.

May want to take a look at: `IgnorePkg` in `man pacman.conf` to consider adding pkg/s to it.

Last edited by NuSkool (2024-08-20 17:25:08)


Scripts I Use                                                 :  https://github.com/Cody-Learner
grep -m1 'model name' /proc/cpuinfo    : AMD Ryzen 7 8745HS w/ Radeon 780M Graphics
grep -m1 'model name' /proc/cpuinfo    : Intel(R) N95
grep -m1 'model name' /proc/cpuinfo    : AMD Ryzen 5 PRO 2400GE w/ Radeon Vega Graphics

Offline

Board footer

Powered by FluxBB