You are not logged in.

#1 2016-07-30 09:10:03

OdinEidolon
Member
From: Belluno - Italy
Registered: 2011-01-31
Posts: 498

[SOLVED] Pacman error: could not open file ...

When trying to update one of my systems, which has been recently installed, I get this:

:: Synchronizing package databases...
 core                     137.7 KiB   599K/s 00:00 [########################] 100%
 extra                   1923.6 KiB  1329K/s 00:01 [########################] 100%
 community                  3.9 MiB  1336K/s 00:03 [########################] 100%
 multilib                 186.3 KiB  1330K/s 00:00 [########################] 100%
:: Starting full system upgrade...
error: could not open file /var/lib/pacman/local/kio-5.23.0-1/desc: No such file or directory
resolving dependencies...
looking for conflicting packages...
warning: could not fully load metadata for package kio-5.23.0-1
error: failed to prepare transaction (invalid or corrupted package)

I cannot install or upgrade anything, and trying to --force does not do anything. Pacman database has been cleaned with -Scc, mirrors refreshed with -Syy and generally I tried all the usual advices (I think!). What to try next?
Thanks in advance.

Last edited by OdinEidolon (2016-07-30 13:48:53)


Hardware: 2016 Dell XPS15 - matte FullHD - i5-6300HQ - 32GB DDR4 - Nvidia GTX960M - Samsung 840EVO 250GB SSD - 56Wh
Software: Plasma 5 - rEFInd - linux-ck - preload - prelink - verynice - psd - bumblebee

Offline

#2 2016-07-30 09:58:50

shulamy
Member
From: israel
Registered: 2010-09-11
Posts: 468

Re: [SOLVED] Pacman error: could not open file ...

try --ignore kio    to upgrade the system.

then try to fix the problem with kio.

ezik

Offline

#3 2016-07-30 10:20:53

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

Re: [SOLVED] Pacman error: could not open file ...

Pacman database has been cleaned with -Scc

No it hasn't, this command cleaned the cache. It may have removed the cache file for this package in the process. If that's the case, redownload it from http://seblu.net/a/archive/packages/k/kio/, and try to fix the database with

# pacman -U --dbonly kio-5.23.0-1-x86_64.pkg.tar.xz

. If you still get errors when attempting this transaction, then try removing /var/lib/pacman/local/kio-5.23.0-1, then trying again.

Once kio's db entry has been fixed, run the full upgrade.


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

#4 2016-07-30 13:48:20

OdinEidolon
Member
From: Belluno - Italy
Registered: 2011-01-31
Posts: 498

Re: [SOLVED] Pacman error: could not open file ...

WorMzy wrote:

Pacman database has been cleaned with -Scc

No it hasn't, this command cleaned the cache. It may have removed the cache file for this package in the process. If that's the case, redownload it from http://seblu.net/a/archive/packages/k/kio/, and try to fix the database with

# pacman -U --dbonly kio-5.23.0-1-x86_64.pkg.tar.xz

. If you still get errors when attempting this transaction, then try removing /var/lib/pacman/local/kio-5.23.0-1, then trying again.

Once kio's db entry has been fixed, run the full upgrade.

Looks like this worked wonderfully, thanks. I had to remove /var/lib/pacman/local/kio-5.23.0-1.

Thanks.


Hardware: 2016 Dell XPS15 - matte FullHD - i5-6300HQ - 32GB DDR4 - Nvidia GTX960M - Samsung 840EVO 250GB SSD - 56Wh
Software: Plasma 5 - rEFInd - linux-ck - preload - prelink - verynice - psd - bumblebee

Offline

#5 2025-05-17 14:56:00

unfa
Member
From: Warsaw/Poland
Registered: 2016-11-07
Posts: 19
Website

Re: [SOLVED] Pacman error: could not open file ...

I just wanted to say this has helped me fix a problem with `ffmpeg4.4` package that broke in a similar way for me. Thank you!


I make videos about audio production using Linux & FOSS: YouTube · Odysee · PeerTube

Offline

#6 2025-05-17 15:31:22

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 24,929

Re: [SOLVED] Pacman error: could not open file ...

Glad to hear, seeing the thread is 9 years old, I'll close this at this point. https://wiki.archlinux.org/title/Genera … bumping%22

Offline

Board footer

Powered by FluxBB