Lib32-expat dependency issue

[svetlana@HAL-9000 ~]$ sudo pacman -Syu 
[sudo] password for svetlana:  
:: Synchronizing package databases... 
endeavouros is up to date
core is up to date
extra is up to date
multilib is up to date
:: Starting full system upgrade... 
resolving dependencies... 
warning: cannot resolve "expat=2.10.0", a dependency of "lib32-expat" 
warning: cannot resolve "expat=2.10.0", a dependency of "lib32-expat" 
:: The following package cannot be upgraded due to unresolvable dependencies: lib32-expat 
:: Do you want to skip the above package for this upgrade? [y/N] y 
looking for conflicting packages... 
:: plasma-workspace-6.8.1-1and plasma-x11-session-6.7.4-3 are in conflict. Remove plasma-x11-session? [y/N] y
error: failed to prepare transaction (could not satisfy dependencies) 
:: installing expat (2.9.0-1) breaks dependency 'expat=2.8.3' required by lib32-expat 
[svetlana@HAL-9000 ~]$

I’ve looked in other spaces, but they don’t seem to solve my problems. I moved in with my partner about two months ago and this is the first time I’ve booted up my computer in that time.

Remove lib32-expat then update

[svetlana@HAL-9000 ~]$ sudo pacman -R lib32-expat
[sudo] password for svetlana: 
checking dependencies...
error: failed to prepare transaction (could not satisfy dependencies)
:: removing lib32-expat breaks dependency 'lib32-expat' required by lib32-fontconfig
:: removing lib32-expat breaks dependency 'libexpat.so=1-32' required by lib32-fontconfig
:: removing lib32-expat breaks dependency 'lib32-expat' required by lib32-mesa
:: removing lib32-expat breaks dependency 'lib32-expat' required by lib32-wayland
[svetlana@HAL-9000 ~]$ 

Try removing orphans

Remove that X11 crap.

I’m confused because the text shows that’s what I was attempting to do. Is that what’s causing me the problem?

[svetlana@HAL-9000 ~]$ sudo pacman -Qqd | pacman -Rsu -
error: you cannot perform this operation unless you are root.
[svetlana@HAL-9000 ~]$

Ok, so I’m trying to remove orphans and for some reason it will not let me. I know sudo gives root privileges, so why won’t it remove them?

ETA: I figured out my root problems and removed the orphans, however I still get the same error message

sudo pacman -Qqd | sudo pacman -Rsu -

sudo does not make it through the pipe.

Thank you, I ended up logging directly into root to do it.

Never do that!

Why not just use yay -Yc I wonder.

I’m unfamiliar with that command

Do this sudo pacman -Rdd lib32-expat

Then update, then reinstall it

@Flannel_Bear

Use it all the time to remove orphans, or paru -c (if I have paru installed that is).

You may want to consider some EndeavourOS Maintenance, @Flannel_Bear. It couldn’t hurt.

Ok, I used that command and everything updated as expected. I went to re-install and I got this:

[svetlana@HAL-9000 ~]$ sudo pacman -S lib32-expat
[sudo] password for svetlana: 
resolving dependencies...
warning: cannot resolve "expat=2.10.0", a dependency of "lib32-expat"
:: The following package cannot be upgraded due to unresolvable dependencies:
      lib32-expat

:: Do you want to skip the above package for this upgrade? [y/N] 
error: failed to prepare transaction (could not satisfy dependencies)
:: unable to satisfy dependency 'expat=2.10.0' required by lib32-expat
[svetlana@HAL-9000 ~]$

Try reranking your mirrors from the welcome app

I updated my mirrors via the welcome app. Nothing happens when I click on the arch mirrors, but it does update the endeavourOS mirrors.

Do this:

sudo pacman -S rate-mirrors
rate-mirrors arch --max-delay 7200 | sudo tee /etc/pacman.d/mirrorlist
sudo pacman -Syu lib32-expat

That seems to have worked! Thank you so much for your help!