You are not logged in.

#1 2024-03-03 20:36:33

babel_f1sh
Member
Registered: 2023-09-28
Posts: 31

[SOLVED] Cannot replace libblockdev-utils with libblockdev

When attempting to update my packages, I get the prompt "Replace libblockdev-utils with extra/libblockdev? [Y/n]." Selecting either option (y or n) gives the output:

"error: unresolvable package conflicts detected
error: failed to prepare transaction (conflicting dependencies)
:: libblockdev and libblockdev-utils are in conflict"

How can I approach this package conflict? I can see here that "libblockdev" is meant to replace the utils version, but my system lists "libblockdev-utils" as a dependency for "libblockdev." Is there a way to update this dependency issue on my system? Is this a result of a different issue?

Last edited by babel_f1sh (2024-03-04 05:33:40)

Offline

#2 2024-03-03 21:08:53

srwalter
Member
Registered: 2024-03-03
Posts: 1

Re: [SOLVED] Cannot replace libblockdev-utils with libblockdev

I am seeing the same issue.  Also, removing either libblockdev or libblockdev-utils requires removing a pretty large dependency chain

Offline

#3 2024-03-03 21:14:48

Kisuke-CZE
Member
Registered: 2017-03-16
Posts: 13
Website

Re: [SOLVED] Cannot replace libblockdev-utils with libblockdev

For me issuing this manually fixed dependencies:

sudo pacman -S libblockdev-crypto libblockdev-fs libblockdev-loop libblockdev-mdraid libblockdev-nvme libblockdev-part libblockdev-swap udisks2

Offline

#4 2024-03-03 21:30:38

tilman.rassy
Member
Registered: 2024-03-03
Posts: 1

Re: [SOLVED] Cannot replace libblockdev-utils with libblockdev

Kisuke-CZE wrote:

For me issuing this manually fixed dependencies:

sudo pacman -S libblockdev-crypto libblockdev-fs libblockdev-loop libblockdev-mdraid libblockdev-nvme libblockdev-part libblockdev-swap udisks2

Thank you, that solved the problem for me! smile

Offline

#5 2024-03-03 22:11:49

firekage
Member
From: Eastern Europe, Poland
Registered: 2013-06-30
Posts: 623

Re: [SOLVED] Cannot replace libblockdev-utils with libblockdev

Kisuke-CZE wrote:

For me issuing this manually fixed dependencies:

sudo pacman -S libblockdev-crypto libblockdev-fs libblockdev-loop libblockdev-mdraid libblockdev-nvme libblockdev-part libblockdev-swap udisks2

Sorry for stupid question but how did you know that exacly theese packages had to be reinstalled in order to fix conflicts? It works of course.

Offline

#6 2024-03-03 22:52:32

meowxiik
Member
Registered: 2018-12-05
Posts: 11

Re: [SOLVED] Cannot replace libblockdev-utils with libblockdev

firekage wrote:
Kisuke-CZE wrote:

For me issuing this manually fixed dependencies:

sudo pacman -S libblockdev-crypto libblockdev-fs libblockdev-loop libblockdev-mdraid libblockdev-nvme libblockdev-part libblockdev-swap udisks2

Sorry for stupid question but how did you know that exacly theese packages had to be reinstalled in order to fix conflicts? It works of course.

These packages are required by libblockdev. I don't like this solution though, because it marks all of these as explicitly installed, which prevents them from being uninstalled when they are no longer needed.

I use

pacman -Rdd libblockdev-utils # Force uninstalling of package, ignore dependency issues
pacman -Syu # lets goo

I think this should work. I myself did a little more complicated variant, but the core thing is, that libblockdev is evidently replacing ( or absorbing) libblockdev-utils and causing issues

EDIT: The issues were created by this commit https://gitlab.archlinux.org/archlinux/ … 18924994e6

Last edited by meowxiik (2024-03-03 22:54:06)

Offline

#7 2024-03-04 00:14:37

skunktrader
Member
From: Brisbane, Australia
Registered: 2010-02-14
Posts: 1,576

Re: [SOLVED] Cannot replace libblockdev-utils with libblockdev

My workaround for the dependency issue was

sudo pacman -Syu --ignore libblockdev-utils

you will then be able to remove libblockdev-utils when prompted

Last edited by skunktrader (2024-03-04 00:42:18)

Offline

#8 2024-03-04 04:04:28

babel_f1sh
Member
Registered: 2023-09-28
Posts: 31

Re: [SOLVED] Cannot replace libblockdev-utils with libblockdev

skunktrader wrote:

My workaround for the dependency issue was

sudo pacman -Syu --ignore libblockdev-utils

you will then be able to remove libblockdev-utils when prompted

Due to a storm, my internet is pretty slow right now but I will try running this and report back. Thank you!

Offline

#9 2024-03-04 04:06:00

babel_f1sh
Member
Registered: 2023-09-28
Posts: 31

Re: [SOLVED] Cannot replace libblockdev-utils with libblockdev

EDIT: The issues were created by this commit https://gitlab.archlinux.org/archlinux/ … 18924994e6

Thank you for posting the source of the issue!

Offline

#10 2024-03-04 05:32:41

babel_f1sh
Member
Registered: 2023-09-28
Posts: 31

Re: [SOLVED] Cannot replace libblockdev-utils with libblockdev

babel_f1sh wrote:
skunktrader wrote:

My workaround for the dependency issue was

sudo pacman -Syu --ignore libblockdev-utils

you will then be able to remove libblockdev-utils when prompted

Due to a storm, my internet is pretty slow right now but I will try running this and report back. Thank you!

This worked, thanks!

Offline

#11 2024-03-04 05:49:51

Kisuke-CZE
Member
Registered: 2017-03-16
Posts: 13
Website

Re: [SOLVED] Cannot replace libblockdev-utils with libblockdev

meowxiik wrote:

I don't like this solution though, because it marks all of these as explicitly installed, which prevents them from being uninstalled when they are no longer needed.

Actually I was not thinking about it much, just found the fast solution without thinking about these consequences. But it seems for me, that all packages remained marked as dependencies (they are not listed in pacman -Qe, but they are in pacman -Qd) - correct me if I am wrong.

I am sorry if this caused issue for someone. I believe this should unmark packages as explicitly installed, if someone need it:

pacman -S --asdeps libblockdev-crypto libblockdev-fs libblockdev-loop libblockdev-mdraid libblockdev-nvme libblockdev-part libblockdev-swap udisks2

Last edited by Kisuke-CZE (2024-03-04 05:50:11)

Offline

#12 2024-03-04 12:48:41

alaudet
Member
Registered: 2022-01-08
Posts: 6

Re: [SOLVED] Cannot replace libblockdev-utils with libblockdev

babel_f1sh wrote:
babel_f1sh wrote:
skunktrader wrote:

My workaround for the dependency issue was

sudo pacman -Syu --ignore libblockdev-utils

you will then be able to remove libblockdev-utils when prompted

Due to a storm, my internet is pretty slow right now but I will try running this and report back. Thank you!

This worked, thanks!

Confirmed here.  This works perfectly.

Offline

Board footer

Powered by FluxBB