Pamac update fails in i3 Community Edition with certain NVIDIA cards

Hello all!

I am reasonably certain that this is a bug, but I do not know where to report bugs in the Community Editions. Maybe someone here can point me in the right direction.

I will briefly state the problem and solution first for anyone who comes across this on Google; a full bug report is below.

Setting
Fresh install of i3 community edition with proprietary drivers on a GTX1650.
First thing I do after booting the new system is a pamac update.

Expected Result
Update of some 200 preinstalled packages.

Actual Result
Pamac fails to find some files (see below) and aborts the entire operation. I am unable to update or install any packages.

Workaround
Manually reinstall the packages that pamac does not like. This resolves the file conflicts. The relevant commands are:
pamac reinstall mhwd-nvidia
pamac reinstall linux59-nvidia

So much for the short version. For the developers, here is a full bug report:

System Specs

System:
  Kernel: 5.9.16-1-MANJARO x86_64 bits: 64 compiler: gcc v: 10.2.0 
  parameters: BOOT_IMAGE=/boot/vmlinuz-5.9-x86_64 
  root=UUID=8e531136-cb5e-482b-b408-f4a908c97701 rw quiet apparmor=1 
  security=apparmor resume=UUID=6d2fd7aa-1851-4511-88ad-250de514cdc6 
  udev.log_priority=3 
  Desktop: i3 4.19 info: i3bar dm: LightDM 1.30.0 Distro: Manjaro Linux 
Machine:
  Type: Desktop System: ASUS product: All Series v: N/A serial: <filter> 
  Mobo: ASUSTeK model: H87-PLUS v: Rev X.0x serial: <filter> 
  UEFI: American Megatrends v: 0502 date: 07/16/2013 
CPU:
  Info: Quad Core model: Intel Core i5-4570 bits: 64 type: MCP arch: Haswell 
  family: 6 model-id: 3C (60) stepping: 3 microcode: 28 L2 cache: 6 MiB 
  flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 bogomips: 25609 
  Speed: 801 MHz min/max: 800/3600 MHz Core speeds (MHz): 1: 801 2: 800 3: 800 
  4: 800 
  Vulnerabilities: Type: itlb_multihit status: KVM: VMX unsupported 
  Type: l1tf mitigation: PTE Inversion 
  Type: mds mitigation: Clear CPU buffers; SMT disabled 
  Type: meltdown mitigation: PTI 
  Type: spec_store_bypass 
  mitigation: Speculative Store Bypass disabled via prctl and seccomp 
  Type: spectre_v1 
  mitigation: usercopy/swapgs barriers and __user pointer sanitization 
  Type: spectre_v2 mitigation: Full generic retpoline, IBPB: conditional, 
  IBRS_FW, STIBP: disabled, RSB filling 
  Type: srbds mitigation: Microcode 
  Type: tsx_async_abort status: Not affected 
Graphics:
  Device-1: NVIDIA TU116 [GeForce GTX 1650] driver: nvidia v: 455.45.01 
  alternate: nouveau,nvidia_drm bus ID: 01:00.0 chip ID: 10de:2188 
  Display: x11 server: X.Org 1.20.10 compositor: picom v: git-dac85 
  driver: nvidia display ID: :0 screens: 1 
  Screen-1: 0 s-res: 1920x1080 s-dpi: 92 s-size: 530x301mm (20.9x11.9") 
  s-diag: 610mm (24") 
  Monitor-1: HDMI-0 res: 1920x1080 hz: 60 dpi: 93 size: 527x296mm (20.7x11.7") 
  diag: 604mm (23.8") 
  OpenGL: renderer: GeForce GTX 1650/PCIe/SSE2 v: 4.6.0 NVIDIA 455.45.01 
  direct render: Yes 
Audio:
  Device-1: Intel 8 Series/C220 Series High Definition Audio vendor: ASUSTeK 
  driver: snd_hda_intel v: kernel bus ID: 00:1b.0 chip ID: 8086:8c20 
  Device-2: NVIDIA TU116 High Definition Audio driver: snd_hda_intel v: kernel 
  bus ID: 01:00.1 chip ID: 10de:1aeb 
  Device-3: Logitech QuickCam Communicate MP/S5500 type: USB 
  driver: snd-usb-audio,uvcvideo bus ID: 1-3:3 chip ID: 046d:09a1 
  serial: <filter> 
  Device-4: Kingston HyperX Cloud Stinger Wireless type: USB 
  driver: hid-generic,snd-usb-audio,usbhid bus ID: 1-12:5 chip ID: 0951:16da 
  Sound Server: ALSA v: k5.9.16-1-MANJARO 
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet 
  vendor: ASUSTeK driver: r8169 v: kernel port: d000 bus ID: 03:00.0 
  chip ID: 10ec:8168 
  IF: enp3s0 state: up speed: 100 Mbps duplex: full mac: <filter> 
Drives:
  Local Storage: total: 596.17 GiB used: 9.12 GiB (1.5%) 
  SMART Message: Required tool smartctl not installed. Check --recommends 
  ID-1: /dev/sda maj-min: 8:0 vendor: Western Digital model: WD6400AAKS-65A7B2 
  size: 596.17 GiB block size: physical: 512 B logical: 512 B speed: 3.0 Gb/s 
  serial: <filter> rev: 3B01 
Partition:
  ID-1: / raw size: 585.24 GiB size: 575.05 GiB (98.26%) used: 9.12 GiB (1.6%) 
  fs: ext4 dev: /dev/sda2 maj-min: 8:2 
  ID-2: /boot/efi raw size: 300 MiB size: 299.4 MiB (99.80%) 
  used: 312 KiB (0.1%) fs: vfat dev: /dev/sda1 maj-min: 8:1 
Swap:
  Kernel: swappiness: 60 (default) cache pressure: 100 (default) 
  ID-1: swap-1 type: partition size: 10.64 GiB used: 0 KiB (0.0%) priority: -2 
  dev: /dev/sda3 maj-min: 8:3 
Sensors:
  System Temperatures: cpu: 29.8 C mobo: 27.8 C gpu: nvidia temp: 30 C 
  Fan Speeds (RPM): N/A gpu: nvidia fan: 35% 
Info:
  Processes: 172 Uptime: 16m wakeups: 0 Memory: 9.67 GiB 
  used: 1.49 GiB (15.4%) Init: systemd v: 247 Compilers: gcc: 10.2.0 Packages: 
  pacman: 1058 lib: 299 Shell: Bash v: 5.1.0 running in: urxvtd inxi: 3.2.01 

How to Reproduce

  • On a system with an NVIDIA GTX1650 (that’s a card from 2019, so it is definitely supported), install the i3 Community Edition with proprietary drivers.
  • Boot the new system.
  • Issue a pamac update (or a pamac install of any package).

Expected Behavior
Pamac updates all packages.

Observed Behavior
Pamac downloads all packages, then fails the file conflict checks as follows:

Checking keyring...                                                                                                                                                                                        [250/250]
Checking integrity...                                                                                                                                                                                      [250/250]
Loading packages files...                                                                                                                                                                                  [250/250]
Checking file conflicts...                                                                                                                                                                                 [177/250]
Error: could not open file /var/lib/pacman/local/linux59-nvidia-455xx-455.45.01-4/files: No such file or directory
Error: could not open file /var/lib/pacman/local/nvidia-455xx-utils-455.45.01-1/files: No such file or directory
Checking file conflicts...                                                                                                                                                                                 [250/250]
Warning: mhwd-nvidia: /var/lib/mhwd/ids/pci/nvidia.ids already existed in filesystem
It has been backup to /var/lib/mhwd/ids/pci/nvidia.ids.old
Warning: mhwd-db: /var/lib/mhwd/db/pci/graphic_drivers/hybrid-amd-nvidia-prime/MHWDCONFIG already existed in filesystem
It has been backup to /var/lib/mhwd/db/pci/graphic_drivers/hybrid-amd-nvidia-prime/MHWDCONFIG.old
Warning: mhwd-db: /var/lib/mhwd/db/pci/graphic_drivers/hybrid-intel-nvidia-prime/MHWDCONFIG already existed in filesystem
It has been backup to /var/lib/mhwd/db/pci/graphic_drivers/hybrid-intel-nvidia-prime/MHWDCONFIG.old
Warning: mhwd-db: /var/lib/mhwd/db/pci/graphic_drivers/nvidia/MHWDCONFIG already existed in filesystem
It has been backup to /var/lib/mhwd/db/pci/graphic_drivers/nvidia/MHWDCONFIG.old
Warning: lib32-nvidia-utils: /usr/share/licenses/lib32-nvidia-utils already existed in filesystem
It has been backup to /usr/share/licenses/lib32-nvidia-utils.old
Error: Failed to commit transaction: transaction not prepared

Workaround
Manually reinstall mhwd-nvidia and linux59-nvidia to resolve the file conflicts.

Is there any other place I should report this? Or is this not a bug and I somehow managed to screw up the installation?

@BettaGeorge Report it here: Stable Updates - Manjaro Linux Forum

But anyway, this is not i3 related, but have to do with dropping older drivers and the NVIDIA policies.

That makes sense, but I did not bother to try with other editions, so I cannot confirm that it happens there.

I shall report in the place you linked, thank you!