Electron will not upgrade due to breaking dependencies, what do I do?

Hi, I'm just having trouble updating my system because of conflicts:

:: Synchronizing package databases...
 garuda                 75.7 KiB   151 KiB/s 00:01 [----------------------] 100%
 core                  157.4 KiB   568 KiB/s 00:00 [----------------------] 100%
 extra                1721.3 KiB  3.15 MiB/s 00:01 [----------------------] 100%
 community               6.7 MiB  5.24 MiB/s 00:01 [----------------------] 100%
 multilib              172.6 KiB   568 KiB/s 00:00 [----------------------] 100%
 chaotic-aur          1889.6 KiB  1724 KiB/s 00:01 [----------------------] 100%
spawn pacman -Su
:: Starting full system upgrade...
warning: glib2: ignoring package upgrade (2.70.4-1 => 2.72.3-1)
resolving dependencies...
looking for conflicting packages...
error: failed to prepare transaction (could not satisfy dependencies)
:: installing electron (19.0.8-1) breaks dependency 'electron18' required by code

Some software that I use relies on electron18 but I still need to update my system

garuda-inxi

System:
  Kernel: 5.18.10-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc v: 12.1.0
    parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
    root=UUID=5411b7ff-d53c-4780-9b50-82a7b4183826 rw rootflags=subvol=@
    quiet splash rd.udev.log_priority=3 vt.global_cursor_default=0 loglevel=3
    ibt=off
  Desktop: KDE Plasma v: 5.25.2 tk: Qt v: 5.15.5 info: latte-dock
    wm: kwin_x11 vt: 1 dm: SDDM Distro: Garuda Linux base: Arch Linux
Machine:
  Type: Laptop System: Acer product: Nitro AN515-57 v: V1.17
    serial: <superuser required>
  Mobo: TGL model: Scala_TLS v: V1.17 serial: <superuser required>
    UEFI: Insyde v: 1.17 date: 06/02/2022
Battery:
  ID-1: BAT1 charge: 54.0 Wh (100.0%) condition: 54.0/57.5 Wh (93.9%)
    volts: 17.4 min: 15.4 model: LGC AP18E8M type: Li-ion serial: <filter>
    status: full cycles: 227
  Device-1: hidpp_battery_0 model: Logitech Wireless Mouse serial: <filter>
    charge: 55% (should be ignored) rechargeable: yes status: discharging
CPU:
  Info: model: 11th Gen Intel Core i7-11800H bits: 64 type: MT MCP
    arch: Tiger Lake gen: core 11 built: 2020 process: Intel 10nm family: 6
    model-id: 0x8D (141) stepping: 1 microcode: 0x3E
  Topology: cpus: 1x cores: 8 tpc: 2 threads: 16 smt: enabled cache:
    L1: 640 KiB desc: d-8x48 KiB; i-8x32 KiB L2: 10 MiB desc: 8x1.2 MiB
    L3: 24 MiB desc: 1x24 MiB
  Speed (MHz): avg: 919 high: 1282 min/max: 800/4600 scaling:
    driver: intel_pstate governor: powersave cores: 1: 1019 2: 1025 3: 1282
    4: 813 5: 1060 6: 801 7: 870 8: 786 9: 800 10: 769 11: 847 12: 800
    13: 801 14: 762 15: 1259 16: 1016 bogomips: 73728
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
  Vulnerabilities:
  Type: itlb_multihit status: Not affected
  Type: l1tf status: Not affected
  Type: mds status: Not affected
  Type: meltdown status: Not affected
  Type: mmio_stale_data status: Not affected
  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: Enhanced IBRS, IBPB: conditional, RSB filling
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: Intel TigerLake-H GT1 [UHD Graphics]
    vendor: Acer Incorporated ALI driver: i915 v: kernel arch: Gen12.1
    process: Intel 10nm built: 2020-21 ports: active: eDP-1 empty: DP-1,DP-2
    bus-ID: 0000:00:02.0 chip-ID: 8086:9a60 class-ID: 0300
  Device-2: NVIDIA GA107M [GeForce RTX 3050 Mobile]
    vendor: Acer Incorporated ALI driver: nvidia v: 515.57
    alternate: nouveau,nvidia_drm non-free: 515.xx+
    status: current (as of 2022-06) arch: Ampere process: TSMC n7 (7nm)
    built: 2020-22 bus-ID: 0000:01:00.0 chip-ID: 10de:25a2 class-ID: 0300
  Device-3: Quanta HD User Facing type: USB driver: uvcvideo bus-ID: 3-9:3
    chip-ID: 0408:a061 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,nvidia
    unloaded: modesetting,nouveau,vesa alternate: fbdev,nv gpu: i915
    display-ID: :0 screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.00x11.22")
    s-diag: 582mm (22.93")
  Monitor-1: eDP-1 mapped: eDP1 model: ChiMei InnoLux 0x1521 built: 2020
    res: 1920x1080 hz: 144 dpi: 143 gamma: 1.2 size: 340x190mm (13.39x7.48")
    diag: 394mm (15.5") ratio: 16:9 modes: 1920x1080
  OpenGL: renderer: Mesa Intel UHD Graphics (TGL GT1) v: 4.6 Mesa 22.1.3
    direct render: Yes
Audio:
  Device-1: Intel Tiger Lake-H HD Audio vendor: Acer Incorporated ALI
    driver: snd_hda_intel v: kernel alternate: snd_sof_pci_intel_tgl
    bus-ID: 0000:00:1f.3 chip-ID: 8086:43c8 class-ID: 0403
  Device-2: NVIDIA vendor: Acer Incorporated ALI driver: snd_hda_intel
    v: kernel bus-ID: 0000:01:00.1 chip-ID: 10de:2291 class-ID: 0403
  Sound Server-1: ALSA v: k5.18.10-zen1-1-zen running: yes
  Sound Server-2: sndio v: N/A running: no
  Sound Server-3: PulseAudio v: 16.1 running: no
  Sound Server-4: PipeWire v: 0.3.54 running: yes
Network:
  Device-1: Intel Tiger Lake PCH CNVi WiFi vendor: Rivet Networks
    driver: iwlwifi v: kernel bus-ID: 0000:00:14.3 chip-ID: 8086:43f0
    class-ID: 0280
  IF: wlp0s20f3 state: up mac: <filter>
  Device-2: Realtek vendor: Acer Incorporated ALI driver: r8169 v: kernel
    port: 3000 bus-ID: 0000:2c:00.0 chip-ID: 10ec:2600 class-ID: 0200
  IF: enp44s0 state: down mac: <filter>
Bluetooth:
  Device-1: Intel AX201 Bluetooth type: USB driver: btusb v: 0.8
    bus-ID: 3-14:4 chip-ID: 8087:0026 class-ID: e001
  Report: bt-adapter ID: hci0 rfk-id: 3 state: up address: <filter>
RAID:
  Hardware-1: Intel Volume Management Device NVMe RAID Controller driver: vmd
    v: 0.6 port: N/A bus-ID: 0000:00:0e.0 chip-ID: 8086:9a0b rev:
    class-ID: 0104
Drives:
  Local Storage: total: 2.29 TiB used: 1.15 TiB (50.1%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: SK Hynix model: HFM512GD3JX016N
    size: 476.94 GiB block-size: physical: 512 B logical: 512 B
    speed: 31.6 Gb/s lanes: 4 type: SSD serial: <filter> rev: 41020C20
    temp: 42.9 C scheme: GPT
  ID-2: /dev/sda maj-min: 8:0 vendor: Samsung model: SSD 870 QVO 2TB
    size: 1.82 TiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
    type: SSD serial: <filter> rev: 2B6Q scheme: MBR
Partition:
  ID-1: / raw-size: 297.4 GiB size: 297.4 GiB (100.00%)
    used: 254.99 GiB (85.7%) fs: btrfs dev: /dev/nvme0n1p4 maj-min: 259:4
  ID-2: /boot/efi raw-size: 100 MiB size: 96 MiB (96.00%)
    used: 50.6 MiB (52.7%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1
  ID-3: /home raw-size: 297.4 GiB size: 297.4 GiB (100.00%)
    used: 254.99 GiB (85.7%) fs: btrfs dev: /dev/nvme0n1p4 maj-min: 259:4
  ID-4: /var/log raw-size: 297.4 GiB size: 297.4 GiB (100.00%)
    used: 254.99 GiB (85.7%) fs: btrfs dev: /dev/nvme0n1p4 maj-min: 259:4
  ID-5: /var/tmp raw-size: 297.4 GiB size: 297.4 GiB (100.00%)
    used: 254.99 GiB (85.7%) fs: btrfs dev: /dev/nvme0n1p4 maj-min: 259:4
Swap:
  Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
  ID-1: swap-1 type: zram size: 15.41 GiB used: 0 KiB (0.0%) priority: 100
    dev: /dev/zram0
Sensors:
  Message: No sensor data found. Is lm-sensors configured?
Info:
  Processes: 364 Uptime: 10m wakeups: 4 Memory: 15.41 GiB
  used: 4.33 GiB (28.1%) Init: systemd v: 251 default: graphical
  tool: systemctl Compilers: gcc: 12.1.0 clang: 14.0.6 Packages: pacman: 2077
  lib: 528 Shell: Bash v: 5.1.16 running-in: terminator inxi: 3.3.19
Garuda (2.6.4-2):
  System install date:     2022-02-16
  Last full system update: 2022-07-09
  Is partially upgraded:   No
  Relevant software:       NetworkManager
  Windows dual boot:       Probably (Run as root to verify)
  Snapshots:               Snapper
  Failed units:       

This seems like a bad idea.

Install electron18 and then try updating again.

2 Likes

I ignore the package upgrade because foliate doesn’t work with the upgraded version. But if you think I should upgrade it I will.

I have tried that, it breaks the electron dependency.

Please share the terminal output from trying that so we can see what is happening.

Holding back glib2 is unwise but it probably isn’t your problem here.

I am not sure if that breaks foliate but if it does, I would switch to the flatpak until it is resolved instead of holding back glib2

2 Likes

The two packages are in direct conflict

resolving dependencies...
looking for conflicting packages...
:: electron18 and electron are in conflict. Remove electron? [y/N] y
error: failed to prepare transaction (could not satisfy dependencies)
:: removing electron breaks dependency 'electron' required by bitburner
:: removing electron breaks dependency 'electron' required by react-native-debugger

Try this:

sudo pacman -Syu electron18
6 Likes

Whoops, yeah, I should've thought of that.
Thank you.

2 Likes

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