Pacman not responding

Suddenly pacman has stopped responding. It doesn’t give me any response at all. Also, the default terminal stopped working (I’m using Manjaro XFCE). I could use pacman-static to install alacritty using the tty2. But I cannot make pacman work. Running yay gives me the following error:

yay : error while loading shared libraries: /usr/lib/libalpm.so.12: file too short

Please help me out. My system info is as follows:

inxi -Fazy

System:
  Kernel: 5.11.19-1-MANJARO x86_64 bits: 64 compiler: gcc v: 10.2.0 
  parameters: BOOT_IMAGE=/boot/vmlinuz-5.11-x86_64 
  root=UUID=96cbf077-2c45-4acc-b876-4bbd6b670707 ro quiet udev.log_priority=3 
  Desktop: Xfce 4.16.0 tk: Gtk 3.24.24 info: xfce4-panel wm: xfwm4 vt: 7 
  dm: LightDM 1.30.0 Distro: Manjaro Linux base: Arch Linux 
Machine:
  Type: Desktop Mobo: Gigabyte model: H81M-S v: x.x serial: <filter> 
  UEFI: American Megatrends v: F1 date: 06/11/2014 
CPU:
  Info: Dual Core model: Intel Core i3-4130 bits: 64 type: MT MCP 
  arch: Haswell family: 6 model-id: 3C (60) stepping: 3 microcode: 28 cache: 
  L2: 3 MiB 
  flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx 
  bogomips: 27146 
  Speed: 3380 MHz min/max: 800/3400 MHz Core speeds (MHz): 1: 3380 2: 2506 
  3: 3393 4: 2891 
  Vulnerabilities: Type: itlb_multihit status: KVM: VMX disabled 
  Type: l1tf 
  mitigation: PTE Inversion; VMX: conditional cache flushes, SMT vulnerable 
  Type: mds mitigation: Clear CPU buffers; SMT vulnerable 
  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: conditional, RSB filling 
  Type: srbds mitigation: Microcode 
  Type: tsx_async_abort status: Not affected 
Graphics:
  Device-1: Intel 4th Generation Core Processor Family Integrated Graphics 
  vendor: Gigabyte driver: i915 v: kernel bus-ID: 00:02.0 chip-ID: 8086:041e 
  class-ID: 0300 
  Display: x11 server: X.Org 1.20.11 driver: loaded: intel 
  unloaded: modesetting alternate: fbdev,vesa display-ID: :0.0 screens: 1 
  Screen-1: 0 s-res: 1366x768 s-dpi: 96 s-size: 361x203mm (14.2x8.0") 
  s-diag: 414mm (16.3") 
  OpenGL: renderer: Mesa DRI Intel HD Graphics 4400 (HSW GT2) 
  v: 4.5 Mesa 21.0.3 compat-v: 3.0 direct render: Yes 
Audio:
  Device-1: Intel Xeon E3-1200 v3/4th Gen Core Processor HD Audio 
  driver: snd_hda_intel v: kernel bus-ID: 00:03.0 chip-ID: 8086:0c0c 
  class-ID: 0403 
  Device-2: Intel 8 Series/C220 Series High Definition Audio vendor: Gigabyte 
  driver: snd_hda_intel v: kernel bus-ID: 00:1b.0 chip-ID: 8086:8c20 
  class-ID: 0403 
  Sound Server-1: ALSA v: k5.11.19-1-MANJARO running: yes 
  Sound Server-2: JACK v: 0.125.0 running: no 
  Sound Server-3: PulseAudio v: 14.2 running: yes 
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet 
  vendor: Gigabyte driver: r8169 v: kernel port: e000 bus-ID: 02:00.0 
  chip-ID: 10ec:8168 class-ID: 0200 
  IF: enp2s0 state: up speed: 100 Mbps duplex: full mac: <filter> 
Drives:
  Local Storage: total: 931.51 GiB used: 367.78 GiB (39.5%) 
  SMART Message: Required tool smartctl not installed. Check --recommends 
  ID-1: /dev/sda maj-min: 8:0 vendor: Seagate model: ST1000DM003-1ER162 
  size: 931.51 GiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s 
  rotation: 7200 rpm serial: <filter> rev: CC45 scheme: MBR 
Partition:
  ID-1: / raw-size: 48.83 GiB size: 47.81 GiB (97.92%) used: 14.41 GiB (30.1%) 
  fs: ext4 dev: /dev/sda5 maj-min: 8:5 
  ID-2: /boot/efi raw-size: 500 MiB size: 499 MiB (99.80%) 
  used: 312 KiB (0.1%) fs: vfat dev: /dev/sda8 maj-min: 8:8 
  ID-3: /home raw-size: 366.38 GiB size: 359.63 GiB (98.16%) 
  used: 49.32 GiB (13.7%) fs: ext4 dev: /dev/sda7 maj-min: 8:7 
Swap:
  Alert: No swap data was found. 
Sensors:
  System Temperatures: cpu: 29.8 C mobo: 27.8 C 
  Fan Speeds (RPM): N/A 
Info:
  Processes: 184 Uptime: 21m wakeups: 0 Memory: 3.71 GiB 
  used: 1.02 GiB (27.5%) Init: systemd v: 247 tool: systemctl Compilers: 
  gcc: 10.2.0 Packages: pacman: 0 snap: 4 Shell: Bash v: 5.1.8 
  running-in: alacritty inxi: 3.3.04

Have you tried using pacman-static to reinstall the regular pacman?

That should take care of the “file to short” error.

It’s not working. It’s listing tons of packages as already present. --force doesn’t work either.

Can you post the entire output of sudo pacman-static -S pacman?

If it complains about files existing, do sudo pacman-static -S pacman --overwrite "*"

2 Likes

--overwrite "*" did the trick! Thanks.

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