Failed to prepare transaction(invalid or corrupted package)

I tried to update my system today, but couldn't due to the following error;

╭─[email protected] in repo: untitled on  master [+?] is  v0.1.0 via  v1.61.0 via  spyder-conda-forge took 2ms
╰─λ garuda-update                                                                                                                    (spyder-conda-forge) 
[sudo] password for kevin: 
:: Synchronizing package databases...
core                                                             155.3 KiB  71.9 KiB/s 00:02 [------------------------------------------------------] 100%
extra                                                           1731.1 KiB   553 KiB/s 00:03 [------------------------------------------------------] 100%
community                                                          6.7 MiB   590 KiB/s 00:12 [------------------------------------------------------] 100%
multilib                                                         170.8 KiB  59.2 KiB/s 00:03 [------------------------------------------------------] 100%
chaotic-aur                                                     1887.1 KiB   490 KiB/s 00:04 [------------------------------------------------------] 100%

--> Refreshing mirrorlists using reflector, please be patient..
[2022-06-09 13:42:56] WARNING: failed to rate http(s) download (https://archlinux.thaller.ws/community/os/x86_64/community.db): Download timed out after 5 second(s).
[2022-06-09 13:43:04] WARNING: failed to rate http(s) download (https://mirror.f4st.host/archlinux/community/os/x86_64/community.db): Download timed out after 5 second(s).
[2022-06-09 13:43:10] WARNING: failed to rate http(s) download (https://mirror.cyberbits.eu/archlinux/community/os/x86_64/community.db): Download timed outafter 5 second(s).
[2022-06-09 13:43:17] WARNING: failed to rate http(s) download (https://mirror.chaoticum.net/arch/community/os/x86_64/community.db): Download timed out after 5 second(s).
[2022-06-09 13:43:23] WARNING: failed to rate http(s) download (https://phinau.de/arch/community/os/x86_64/community.db): Download timed out after 5 second(s).
################################################################################
################# Arch Linux mirrorlist generated by Reflector #################
################################################################################

# With:       reflector --latest 5 --age 2 --fastest 5 --protocol https --sort rate --save /etc/pacman.d/mirrorlist
# When:       2022-06-09 08:13:23 UTC
# From:       https://archlinux.org/mirrors/status/json/
# Retrieved:  2022-06-09 08:12:49 UTC
# Last Check: 2022-06-09 07:39:01 UTC

Server = https://archlinux.thaller.ws/$repo/os/$arch
Server = https://mirror.f4st.host/archlinux/$repo/os/$arch
Server = https://mirror.cyberbits.eu/archlinux/$repo/os/$arch
Server = https://mirror.chaoticum.net/arch/$repo/os/$arch
Server = https://phinau.de/arch/$repo/os/$arch

:: Synchronizing package databases...
core                                                             155.3 KiB  32.6 KiB/s 00:05 [------------------------------------------------------] 100%
extra                                                           1731.1 KiB   322 KiB/s 00:05 [------------------------------------------------------] 100%
community                                                          6.7 MiB   462 KiB/s 00:15 [------------------------------------------------------] 100%
multilib                                                         170.8 KiB  53.6 KiB/s 00:03 [------------------------------------------------------] 100%
chaotic-aur                                                     1887.1 KiB   887 KiB/s 00:02 [------------------------------------------------------] 100%
spawn pacman -Su
:: Starting full system upgrade...
warning: balena-etcher: local (2:1.7.7-1) is newer than chaotic-aur (1.7.9-1)
warning: chaotic-neofetch-git: local (7.1.0.r166.gccd5d9f5-2) is newer than chaotic-aur (7.1.0.r166.gccd5d9f5-1)
error: could not open file /var/lib/pacman/local/linux-zen-headers-5.18.1.zen1-1/desc: No such file or directory
resolving dependencies...
looking for conflicting packages...
warning: could not fully load metadata for package linux-zen-headers-5.18.1.zen1-1
error: failed to prepare transaction (invalid or corrupted package)

The last installed package is as follows;

183  2022-06-06 23:44:14     frei0r-plugins 1.8.0-2
184  2022-06-06 23:44:21     gstreamer 1.20.2-2
185  2022-06-06 23:44:22     gst-plugins-base 1.20.2-2
186  2022-06-06 23:44:22     gst-plugins-base-libs 1.20.2-2
187  2022-06-06 23:44:24     gmic 3.1.2-3
188  2022-06-06 23:44:24     gst-libav 1.20.2-2
189  2022-06-06 23:44:24     opencv 4.6.0-1
190  2022-06-06 23:44:25     gst-plugins-bad 1.20.2-2
191  2022-06-06 23:44:25     gst-plugins-bad-libs 1.20.2-2
192  2022-06-06 23:44:25     gst-plugins-good 1.20.2-2
193  2022-06-06 23:44:25     gst-plugins-ugly 1.20.2-2
194  2022-06-06 23:44:25     gstreamer-vaapi 1.20.2-2
195  2022-06-06 23:44:26     mlt 7.6.0-2
196  2022-06-06 23:45:49     python-platformdirs 2.5.1-1
197  2022-06-06 23:45:50     python-pyxdg 0.28-1
198  2022-06-06 23:56:52     go 2:1.18.3-1
199  2022-06-07 00:06:17     whatscli 1.0.11-1
200          linux-zen-headers 5.18.1.zen1-1

My System Specs;

System:
  Kernel: 5.17.4-2-cacule arch: x86_64 bits: 64 compiler: gcc v: 11.2.0
    parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-cacule
    root=UUID=59a5503e-fcee-4e1c-8787-e3f6172b5eaa rw [email protected] quiet splash
    rd.udev.log_priority=3 vt.global_cursor_default=0 systemd.unified_cgroup_hierarchy=1
    loglevel=3
  Desktop: KDE Plasma v: 5.24.5 tk: Qt v: 5.15.4 info: latte-dock wm: kwin_x11 vt: 1 dm: SDDM
    Distro: Garuda Linux base: Arch Linux
Machine:
  Type: Laptop System: LENOVO product: 80XH v: Lenovo ideapad 320-15ISK
    serial: <superuser required> Chassis: type: 10 v: Lenovo ideapad 320-15ISK
    serial: <superuser required>
  Mobo: LENOVO model: LNVNB161216 v: NO DPK serial: <superuser required> UEFI-[Legacy]: LENOVO
    v: 4WCN37WW date: 12/04/2017
Battery:
  ID-1: BAT0 charge: 14.6 Wh (88.5%) condition: 16.5/30.0 Wh (55.0%) volts: 7.8 min: 7.4
    model: LGC L16L2PB2 type: Li-poly serial: <filter> status: discharging
CPU:
  Info: model: Intel Core i3-6006U bits: 64 type: MT MCP arch: Skylake family: 6
    model-id: 0x4E (78) stepping: 3 microcode: 0xF0
  Topology: cpus: 1x cores: 2 tpc: 2 threads: 4 smt: enabled cache: L1: 128 KiB
    desc: d-2x32 KiB; i-2x32 KiB L2: 512 KiB desc: 2x256 KiB L3: 3 MiB desc: 1x3 MiB
  Speed (MHz): avg: 898 high: 1649 min/max: 400/2000 scaling: driver: intel_pstate
    governor: powersave cores: 1: 1649 2: 676 3: 611 4: 656 bogomips: 16013
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3
  Vulnerabilities:
  Type: itlb_multihit status: KVM: VMX unsupported
  Type: l1tf mitigation: PTE Inversion
  Type: mds mitigation: Clear CPU buffers; SMT vulnerable
  Type: meltdown mitigation: PTI
  Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via prctl
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization
  Type: spectre_v2
    mitigation: Retpolines, IBPB: conditional, IBRS_FW, STIBP: conditional, RSB filling
  Type: srbds mitigation: Microcode
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: Intel HD Graphics 520 vendor: Lenovo driver: i915 v: kernel ports: active: eDP-1
    empty: HDMI-A-1 bus-ID: 00:02.0 chip-ID: 8086:1921 class-ID: 0300
  Device-2: Syntek EasyCamera type: USB driver: uvcvideo bus-ID: 1-8:4 chip-ID: 174f:241a
    class-ID: 0e02
  Display: x11 server: X.Org v: 21.1.3 with: Xwayland v: 22.1.2 compositor: kwin_x11 driver: X:
    loaded: intel unloaded: modesetting alternate: fbdev,vesa gpu: i915 display-ID: :0 screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 506x285mm (19.92x11.22") s-diag: 581mm (22.86")
  Monitor-1: eDP-1 mapped: eDP1 model: BOE Display 0x0729 built: 2017 res: 1920x1080 hz: 60
    dpi: 143 gamma: 1.2 size: 340x190mm (13.39x7.48") diag: 394mm (15.5") ratio: 16:9
    modes: 1920x1080
  OpenGL: renderer: Mesa Intel HD Graphics 520 (SKL GT2) v: 4.6 Mesa 22.1.1 direct render: Yes
Audio:
  Device-1: Intel Sunrise Point-LP HD Audio vendor: Lenovo driver: snd_hda_intel v: kernel
    alternate: snd_soc_skl bus-ID: 00:1f.3 chip-ID: 8086:9d70 class-ID: 0403
  Sound Server-1: ALSA v: k5.17.4-2-cacule running: yes
  Sound Server-2: sndio v: N/A running: no
  Sound Server-3: PulseAudio v: 16.0 running: no
  Sound Server-4: PipeWire v: 0.3.51 running: yes
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: Lenovo driver: r8169
    v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 1 port: 3000 bus-ID: 01:00.0 chip-ID: 10ec:8168
    class-ID: 0200
  IF: enp1s0 state: down mac: <filter>
  Device-2: Intel Dual Band Wireless-AC 3165 Plus Bluetooth driver: iwlwifi v: kernel pcie:
    gen: 1 speed: 2.5 GT/s lanes: 1 bus-ID: 02:00.0 chip-ID: 8086:3166 class-ID: 0280
  IF: wlp2s0 state: up mac: <filter>
  IF-ID-1: docker0 state: down mac: <filter>
5 Likes

When I updated my system tonight, it presented me with the following error;

error: failed to commit transaction (conflicting files)
linux-lts-headers: /usr/src/linux-lts exists in filesystem
Errors occurred, no packages were upgraded.
1 Like

This should be a different problem, and at least not related to the initial request.
You should open a new topic. I guess you updated the last post because you can't add a new post. This happened because the topic was moved to preconditions failed, because the initial request would have taken you to the tutorial with a simple search.
As regards the new problem, again, a search leads to

6 Likes

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