Can't apply last march update. Warning: could not fully load metadata for package linux-firmware

Hi There,
I’m trying to apply the last March update, but pamac fails. I fear this is a side effect of the file system full I got last month during the previous system update. But I can’t force reinstall (in the pamac GUI) linux firmware.

I tried the following:

[manjaro log]# pamac update
Preparing...
Synchronizing package databases...
Resolving dependencies...
Checking inter-conflicts...
Warning: could not fully load metadata for package linux-firmware-20240115.9b6d0b08-2
Error: Failed to prepare transaction: invalid or corrupted package
[manjaro log]# find /var/cache/pacman/pkg/ -iname "*.part"
[manjaro log]# sudo paccheck --list-broken --files
[manjaro log]# df
Filesystem     1K-blocks     Used Available Use% Mounted on
dev              4012588        0   4012588   0% /dev
run              4027576     1364   4026212   1% /run
efivarfs             100       40        56  42% /sys/firmware/efi/efivars
/dev/mmcblk0p2  60967284 12262608  46057476  22% /
tmpfs            4027576   121580   3905996   4% /dev/shm
tmpfs            4027576     6740   4020836   1% /tmp
tmpfs             805512      128    805384   1% /run/user/1002

Suggestions?

Thx

Force reload of mirror metadata

sudo pacman -Syyu
1 Like

Hi @rednose,

See:

https://wiki.archlinux.org/title/Pacman/Restore_local_database

If I apply the above I get:

[manjaro log]# sudo pacman -Syyu
:: Synchronizing package databases...
 core                                                                                              150,3 KiB   616 KiB/s 00:00 [#############################################################################] 100%
 extra                                                                                               8,7 MiB  3,03 MiB/s 00:03 [#############################################################################] 100%
 multilib                                                                                          143,8 KiB  2,23 MiB/s 00:00 [#############################################################################] 100%
:: Starting full system upgrade...
error: could not open file /var/lib/pacman/local/linux-firmware-20240115.9b6d0b08-2/desc: No such file or directory
resolving dependencies...
looking for conflicting packages...
warning: could not fully load metadata for package linux-firmware-20240115.9b6d0b08-2
error: failed to prepare transaction (invalid or corrupted package)

There may be filesystem errors covering /var/lib/pacman/local.

If you cannot reinstall the package using

pacman -S linux-firmware

then you may have to use a live system to check for filesystem errors.

Did you check with the wiki link provided above?

  1. I looked at the wiki link. The “files.list” created on fisrt step is empty. Not sure if that is right
  2. The output of the above command is:
resolving dependencies...
looking for conflicting packages...
error: could not open file /var/lib/pacman/local/linux-firmware-20240115.9b6d0b08-2/desc: No such file or directory
warning: could not fully load metadata for package linux-firmware-20240115.9b6d0b08-2
error: failed to prepare transaction (invalid or corrupted package)
  1. Filesystem errors: system is on a sdxc. I took the card and run a fsck from another linux, all is ok

What happened a few weeks ago here: Link

You seem to have problems with your local database.

sudo touch /var/lib/pacman/local/linux-firmware-20240115.9b6d0b08-2/desc
sudo pacman -Syu

Hi bill_t,
I get:

[manjaro log]# pacman -S linux-firmware
resolving dependencies...
looking for conflicting packages...
error: could not open file /var/lib/pacman/local/linux-firmware-20240115.9b6d0b08-2/desc: No such file or directory
warning: could not fully load metadata for package linux-firmware-20240115.9b6d0b08-2
error: failed to prepare transaction (invalid or corrupted package)
[manjaro log]# sudo touch /var/lib/pacman/local/linux-firmware-20240115.9b6d0b08-2/desc
[manjaro log]# sudo pacman -Syu
:: Synchronizing 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: could not open file /var/lib/pacman/local/linux-firmware-20240115.9b6d0b08-2/files: No such file or directory
warning: could not fully load metadata for package linux-firmware-20240115.9b6d0b08-2
error: failed to prepare transaction (invalid or corrupted package)

Is there no way to remove/force install a package regardless of its status?

Thx

Hi.

Do the same for the other file shown in the output called files:

sudo touch /var/lib/pacman/local/linux-firmware-20240115.9b6d0b08-2/files

Then try again to update your system:

sudo pacman -Syu

… now I moved forward, download happened, but then:

(145/145) checking for file conflicts                                                                                          [#############################################################################] 100%
error: failed to commit transaction (conflicting files)
linux-firmware: /usr/lib/firmware/3com/typhoon.bin exists in filesystem
linux-firmware: /usr/lib/firmware/INT8866RCA2.bin exists in filesystem
linux-firmware: /usr/lib/firmware/acenic/tg1.bin exists in filesystem
linux-firmware: /usr/lib/firmware/acenic/tg2.bin exists in filesystem
....
linux-firmware: /usr/lib/firmware/ositech/Xilinx7OD.bin exists in filesystem
linux-firmware: /usr/lib/firmware/phanfw.bin exists in filesystem
Errors occurred, no packages were upgraded.

Check this tutorial for the “filename exists in filesystem” errors you get:

In your case, and from the output you posted, it’s:

sudo pacman -Syu --overwrite "usr/lib/firmware/*"

… and the oscar for support goes to bill_t! :smile:
job done i reached the prompt!

Many many thanks!

1 Like

Moved solve to the first touch in the db … as follow-up solutions to ‘exist on the filesystem’ are secondary and separate from the title query of this thread.

1 Like

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.