Another Failed Update

My Package Manager failed to update. I tried updating a few packages at a time, in the hopes that I’d be able to find out which bit wasn’t working. Updated quite a few, then it failed again. Then the Package Manager disappeared completely. Looking in the forum I have tried a few suggestions, but still failed to get things back to work. I can’t read pdfs, nor does Libreoffice open, along with several other apps, but some do open. Presumably those that use libxml2 fail, but…:

[katherine@katherine-labtop ~]$ sudo pacman -Syu
[sudo] password for katherine: 
:: Synchronising package databases...
 core is up to date
 extra is up to date
 multilib is up to date
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...
error: failed to prepare transaction (could not satisfy dependencies)
:: installing libxml2 (2.14.3-1) breaks dependency libxml2.so=2-64 required by electron32
:: installing libxml2 (2.14.3-1) breaks dependency libxml2.so=2-64 required by electron33
:: installing libxml2 (2.14.3-1) breaks dependency libxml2.so=2-64 required by rest

Mod Edit: Fixed formatting

That’s a bad idea, because it’s guaranteed to break your system.

Also, you are probably better off updating by way of pacman — not pamac — from within a tty environment, and rebooting right away after the process has finished.

For now, I will leave you with these two HowTos, hoping they may be of help… :point_down:

2 Likes

You could try removing those packages. If they’re still required by something then you’ll get another error, if not then update.

sudo pacman -R electron32 electron33 rest
sudo pacman -Syu
4 Likes

Just to add, electron32 & electron33 are both AUR packages. rest no longer exists in Manjaro’s repos or the AUR

pamac info electron32 electron33 rest | grep -E 'Name|Version|Repository|not found'
Name                  : electron32
Version               : 32.3.3-1
Repository            : AUR
Name                  : electron33
Version               : 33.4.11-2
Repository            : AUR
Error: target not found: rest

You can check what foreign packages (i.e. those not currently in Manjaro’s repos) you have on your system by running the following command:

pamac list -m
3 Likes

I was able to remove electron32 and electron33 but when I tried to remove “rest” I got the message:

sudo pacman -R rest
checking dependencies...
error: failed to prepare transaction (could not satisfy dependencies)
:: removing rest breaks dependency 'rest' required by lib32-rest

I fear I’ve played too much with trying out different apps, which probably accounts for probably dormant, unnecessary dependencies - but Linux, in its various forms, is so much more fun Windows!

Then try removing lib32-rest.

It really is. :slight_smile:

3 Likes

I think I tried that correctly, but obviously not completely correctly:

sudo pacman -R lib32-rest
[sudo] password for katherine: 
checking dependencies...

Packages (1) lib32-rest-0.8.1-4

Total Removed Size:  0.13 MiB

:: Do you want to remove these packages? [Y/n] y
:: Processing package changes...
(1/1) removing lib32-rest                          [######################] 100%
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...
[katherine@katherine-labtop ~]$ sudo pacman -Syu
:: Synchronising package databases...
 core is up to date
 extra is up to date
 multilib is up to date
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...
error: failed to prepare transaction (could not satisfy dependencies)
:: installing libxml2 (2.14.3-1) breaks dependency libxml2.so=2-64 required by rest

Mod Edit: Fixed formatting

Looks like you didn’t remove rest

sudo pacman -R rest
sudo pacman -Syu
1 Like

Looks like things are happening now, but I’ve got a bit of waiting to do (currently at 11/505 - so I’m obviously a bit behind with my upgrades.
Thank you so much for your guidance.

1 Like

Not sure where the html tags came from, but the way the output was formatted kept cutting off the package that was causing the trouble.

In future please format the output by putting three backticks around it, like so:

```
output
```

which gives you this:

output

Alternatively paste the text, then select it and press </>


You’re welcome. :slight_smile:

Update has now finished, laptop restarted, and all is working! So thank you.
Sorry about the formatting - I copied the Terminal output using the “HTML” option, and pasted that, thinking that would do the job correctly!
There are so many ways one can be wrong! Challenge is to remember the right ways in future.

2 Likes