You are not logged in.

#1 2016-11-12 18:45:50

anonworldusr
Member
Registered: 2015-12-19
Posts: 20

[SOLVED] pacman error: "failed to prepare transaction" (kdelibs)

Every time I try to run pacman for an update I end up getting this error:

error: could not open file /var/lib/pacman/local/kdelibs-4.14.25-1/desc: No such file or directory
resolving dependencies...
looking for conflicting packages...
warning: could not fully load metadata for package kdelibs-4.14.25-1
error: failed to prepare transaction (invalid or corrupted package)

I have tried to clear the cache with

 pacman -Scc 

I have also cleared the .part files from /var/cache/pacman/pkg/ (there weren't any in there when I checked)

The file /var/lib/pacman/local/kdelibs-4.14.25-1/desc is not there.

Not sure how else to approach the issue. I have previously tried to remove and reinstall the kdelibs package to no avail.

Last edited by anonworldusr (2016-11-12 21:30:08)


2<x<1

Offline

#2 2016-11-12 19:19:49

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,061
Website

Re: [SOLVED] pacman error: "failed to prepare transaction" (kdelibs)

Remove the /var/lib/pacman/local/kdelibs-4.14.25-1 directory, then reinstall that version of kdelibs with the --dbonly flag. You'll need to obtain that version of kdelibs from the ALA, since you've purged your cache for some reason.

After the db has been recreated, do a full system update.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2016-11-12 21:29:29

anonworldusr
Member
Registered: 2015-12-19
Posts: 20

Re: [SOLVED] pacman error: "failed to prepare transaction" (kdelibs)

Thanks for the help. I cleared the cache because it solved a problem for a user with a very similar issue.
I have done what you suggested and it seems to have worked.
Thanks again, marking as solved.


2<x<1

Offline

#4 2020-06-10 21:28:51

bandithijo
Member
From: Indonesia
Registered: 2016-07-30
Posts: 7
Website

Re: [SOLVED] pacman error: "failed to prepare transaction" (kdelibs)

WorMzy wrote:

Remove the /var/lib/pacman/local/kdelibs-4.14.25-1 directory, then reinstall that version of kdelibs with the --dbonly flag. You'll need to obtain that version of kdelibs from the ALA, since you've purged your cache for some reason.

After the db has been recreated, do a full system update.

Thank you. It solved my problem. ?


Technical Blog:Journal | BanditHijo.Dev

Offline

#5 2020-06-10 21:38:18

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,501

Re: [SOLVED] pacman error: "failed to prepare transaction" (kdelibs)

bandithijo:  Watch the age of threads to which you post.  This is almost 4 years old.

Using this opportunity to close this old thread.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

Board footer

Powered by FluxBB