You are not logged in.

#1 2026-05-12 07:50:29

jonaash
Member
Registered: 2026-05-12
Posts: 1

Pacman randomly stops while downloading, no error messages given.

Hello there,

I've been dealing with this problem for quite some time. I have to run 'pacman -Syu' like five times every time, each time removing the db.lock manually, as it doesn't unlock itself after this crash, until it finally succeeds. My typical output of pacman looks like this:

jonaash ~ 
> sudo pacman -Syu
Enter Password or Place finger on fingerprint reader: 
Failed to match fingerprint
:: 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...

Packages (239) aria2-1.37.0-3  at-spi2-core-2.60.3-1  attica-6.26.0-1  baloo-6.26.0-1
               baloo-widgets-26.04.1-1  binutils-2.46+r70+g155188ea10a7-1
               blender-17:5.1.1-8  bluez-5.86-6  bluez-libs-5.86-6  bluez-obex-5.86-6
               bluez-utils-5.86-6  breeze-icons-6.26.0-1  btrfs-progs-7.0-1
               chromium-148.0.7778.96-1  clang-22.1.5-1  code-1.119.0-1
               compiler-rt-22.1.5-1  containerd-2.3.0-1  cpupower-7.0.3-1  curl-8.20.0-6
               debugedit-5.3-1  dhcpcd-10.3.2-1  discord-1:1.0.138-1  dkms-3.4.1-1
               dnsmasq-2.92.rel2-1  docker-1:29.4.3-1  dolphin-26.04.1-1
               easyeffects-8.2.2-1  efibootmgr-18-4  efivar-39-2  electron39-39.8.10-1
               elfutils-0.195-1  expat-2.8.1-1  ffmpeg-2:8.1.1-1  filezilla-3.70.5-2
               firefox-150.0.2-1  fish-4.7.1-1  frameworkintegration-6.26.0-1
               freerdp-2:3.26.0-1  fzssh-1.2.1-1  gcc-16.1.1+r12+g301eb08fa2c5-1
               gcc-libs-16.1.1+r12+g301eb08fa2c5-1  glib2-2.88.1-1  glib2-devel-2.88.1-1
               glib2-docs-2.88.1-1  glibc-2.43+r22+g8362e8ce10b2-2  gnutls-3.8.13-2
               go-2:1.26.3-1  gradle-9.5.0-1  gst-plugins-bad-libs-1.28.2-2
               gst-plugins-base-1.28.2-2  gst-plugins-base-libs-1.28.2-2
               gst-plugins-good-1.28.2-2  gstreamer-1.28.2-2  gwenview-26.04.1-1
               hunspell-1.7.3-1  hwdata-0.407-1  hyprland-0.55.0-3  hyprtoolkit-0.5.4-1
               hyprutils-0.13.1-1  inkscape-1.4.4-2  isoimagewriter-26.04.1-1
               js140-140.10.2-1  kaccounts-integration-26.04.1-1  karchive-6.26.0-1
               kate-26.04.1-1  kauth-6.26.0-1  kbookmarks-6.26.0-1  kcmutils-6.26.0-1
               kcodecs-6.26.0-1  kcolorscheme-6.26.0-1  kcompletion-6.26.0-1
               kconfig-6.26.0-1  kconfigwidgets-6.26.0-1  kcontacts-1:6.26.0-1
               kcoreaddons-6.26.0-1  kcrash-6.26.0-1  kdbusaddons-6.26.0-1
               kdeclarative-6.26.0-1  kdeconnect-26.04.1-1  kdnssd-6.26.0-1
               kfilemetadata-6.26.0-1  kglobalaccel-6.26.0-1  kguiaddons-6.26.0-1
               ki18n-6.26.0-1  kiconthemes-6.26.0-1  kidletime-6.26.0-1  kio-6.26.0-1
               kio-extras-26.04.1-1  kirigami-6.26.0-1  kitemmodels-6.26.0-1
               kitemviews-6.26.0-1  kjobwidgets-6.26.0-1  kmines-26.04.1-1
               knewstuff-6.26.0-1  knotifications-6.26.0-1  kompare-26.04.1-1
               kpackage-6.26.0-1  kparts-6.26.0-1  kpeople-6.26.0-1  kservice-6.26.0-1
               kstatusnotifieritem-6.26.0-1  ksvg-6.26.0-1  ktexteditor-6.26.0-1
               ktextwidgets-6.26.0-1  kuserfeedback-6.26.0-1  kwallet-6.26.0-1
               kwidgetsaddons-6.26.0-1  kwindowsystem-6.26.0-1  kxmlgui-6.26.0-1
               lcms2-2.19.1-1  lib32-at-spi2-core-2.60.3-1  lib32-curl-8.20.0-6
               lib32-expat-2.8.1-1  lib32-gcc-libs-16.1.1+r12+g301eb08fa2c5-1
               lib32-glib2-2.88.1-1  lib32-glibc-2.43+r22+g8362e8ce10b2-2
               lib32-gnutls-3.8.13-3  lib32-libdrm-2.4.133-1  lib32-libelf-0.195-1
               lib32-libgpg-error-1.61-1  lib32-llvm-libs-1:22.1.5-1  lib32-nettle-4.0-1
               lib32-nspr-4.39-1  lib32-sdl2-compat-2.32.68-1  lib32-sdl3-3.4.8-1
               lib32-sqlite-3.53.1-1  libasan-16.1.1+r12+g301eb08fa2c5-1
               libatomic-16.1.1+r12+g301eb08fa2c5-1  libdrm-2.4.133-1  libelf-0.195-1
               libfido2-1.17.0-1  libfilezilla-1:0.55.5-1
               libgcc-16.1.1+r12+g301eb08fa2c5-1  libgfortran-16.1.1+r12+g301eb08fa2c5-1
               libgit2-1:1.9.3-1  libgomp-16.1.1+r12+g301eb08fa2c5-1  libgpg-error-1.61-1
               libical-4.0.0-2  libkdcraw-26.04.1-1  libkdegames-26.04.1-1
               libkexiv2-26.04.1-1  libkomparediff2-26.04.1-1
               liblsan-16.1.1+r12+g301eb08fa2c5-1  libmd-1.2.0-1
               libobjc-16.1.1+r12+g301eb08fa2c5-1  libquadmath-16.1.1+r12+g301eb08fa2c5-1
               libreoffice-fresh-26.2.3-2  libstdc++-16.1.1+r12+g301eb08fa2c5-1
               libsysprof-capture-50.0-2  libtool-2.6.0+r23+gb08cb0a0-1
               libtsan-16.1.1+r12+g301eb08fa2c5-1  libubsan-16.1.1+r12+g301eb08fa2c5-1
               libvirt-1:12.3.0-1  libvirt-python-1:12.3.0-1  libwslay-1.1.1-7
               linux-7.0.5.arch1-1  linux-headers-7.0.5.arch1-1
               linux-rt-6.14.0.rt3.arch1-8  lld-22.1.5-3  llvm-22.1.5-1  llvm-libs-22.1.5-1
               maven-3.9.15-1  modemmanager-qt-6.26.0-1  nanobind-2.12.0-2  nettle-4.0-1
               nodejs-26.1.0-1  npm-11.14.1-1  nspr-4.39-1  nwg-look-1.1.1-1
               obs-studio-32.1.2-2  okular-26.04.1-1  onetbb-2023.0.0-1  openjph-0.27.2-1
               openmp-22.1.5-1  openscenegraph-3.6.5-32  openucx-1.20.1-1  openvdb-13.0.0-1
               openxr-1.1.59.1-1  pacman-7.1.0.r9.g54d9411-2  perf-7.0.3-1  podofo-0.10.6-1
               poppler-26.05.0-1  poppler-glib-26.05.0-1  poppler-qt6-26.05.0-1
               prusa-slicer-2.9.4-10  purpose-6.26.0-2  pyenv-1:2.6.31-1
               python-cryptography-48.0.0-1  python-gobject-3.56.3-1  python-idna-3.14-1
               python-pip-26.1.1-1  python-pipx-1.12.0-1  python-pydantic-2.13.4-1
               python-pydantic-core-3:2.46.4-1  python-pypdf-6.11.0-1
               python-regex-2026.5.9-1  python-requests-2.34.0-1  python-urllib3-2.7.0-1
               python-wcwidth-0.7.0-1  qbittorrent-5.2.0-1  qca-qt6-2.3.10-6
               qjackctl-1.0.6-1  qqc2-desktop-style-6.26.0-1  qt6-base-6.11.0-4
               rdma-core-63.0-1  reaper-7.72-1  robin-map-1.4.1-1  scribus-1.6.6-4
               sdl2-compat-2.32.68-1  sdl2_image-2.8.12-1  sdl3-3.4.8-1  semver-7.8.0-1
               signon-kwallet-extension-26.04.1-1  simdjson-1:4.6.4-1  solid-6.26.0-1
               sonnet-6.26.0-1  sqlite-3.53.1-1  srt-1.5.5-1  syndication-6.26.0-1
               syntax-highlighting-6.26.0-1  taglib-2.3-1  threadweaver-6.26.0-1
               uriparser-1.0.2-1  usd-26.05-3  vapoursynth-75-2  vim-9.2.0450-1
               vim-runtime-9.2.0450-1  virglrenderer-1.3.0-2  vtk-9.6.1-5  wget-1.25.0-4
               wine-mono-11.1.0-1  xfsprogs-7.0.0-1  xorg-server-21.1.22-2
               xorg-server-common-21.1.22-2  xorg-xwayland-24.1.11-2  yara-4.5.6-1
               yazi-26.5.6-2  zathura-2026.05.11-1

Total Download Size:   2149.34 MiB
Total Installed Size:  7483.19 MiB
Net Upgrade Size:      -167.66 MiB

:: Proceed with installation? [Y/n] Y
:: Retrieving packages...
 libreoffice-fresh-26....   147.2 MiB  1293 KiB/s 01:57 [#############################] 100%
 gradle-9.5.0-1-any         131.1 MiB  1144 KiB/s 01:57 [#############################] 100%
 linux-7.0.5.arch1-1-x...   147.1 MiB  1262 KiB/s 01:59 [#############################] 100%
 linux-rt-6.14.0.rt3.a...   138.9 MiB  1113 KiB/s 02:08 [#############################] 100%
 blender-17:5.1.1-8-x86_64  177.7 MiB  1327 KiB/s 02:17 [#############################] 100%
 chromium-148.0.7778.9...   125.2 MiB  4.43 MiB/s 00:28 [#############################] 100%
 linux-headers-7.0.5.a...    60.3 MiB  3.60 MiB/s 00:17 [#############################] 100%
 gcc-16.1.1+r12+g301eb...    57.3 MiB  3.10 MiB/s 00:18 [#############################] 100%
 vtk-9.6.1-5-x86_64          57.3 MiB  2.70 MiB/s 00:21 [#############################] 100%
 clang-22.1.5-1-x86_64       56.6 MiB  2.82 MiB/s 00:20 [#############################] 100%
 prusa-slicer-2.9.4-10...    54.6 MiB  2.83 MiB/s 00:19 [#############################] 100%
 scribus-1.6.6-4-x86_64      50.3 MiB  2.56 MiB/s 00:20 [#############################] 100%
 hyprland-0.55.0-3-x86_64    48.8 MiB  3.03 MiB/s 00:16 [#############################] 100%
 wine-mono-11.1.0-1-x86_64   44.1 MiB  3.07 MiB/s 00:14 [#############################] 100%
 lib32-llvm-libs-1:22....    42.3 MiB  3.11 MiB/s 00:14 [#############################] 100%
 llvm-libs-22.1.5-1-x86_64   41.0 MiB  3.10 MiB/s 00:13 [#############################] 100%
 go-2:1.26.3-1-x86_64        39.2 MiB  2.93 MiB/s 00:13 [#############################] 100%
 docker-1:29.4.3-1-x86_64    27.4 MiB  2.80 MiB/s 00:10 [#############################] 100%
 usd-26.05-3-x86_64          27.0 MiB  4.00 MiB/s 00:07 [#############################] 100%
 inkscape-1.4.4-2-x86_64     24.6 MiB  3.61 MiB/s 00:07 [#############################] 100%
 llvm-22.1.5-1-x86_64        23.2 MiB  3.59 MiB/s 00:06 [#############################] 100%
 containerd-2.3.0-1-x86_64   19.5 MiB  3.46 MiB/s 00:06 [#############################] 100%
 nodejs-26.1.0-1-x86_64      17.0 MiB  3.47 MiB/s 00:05 [#############################] 100%
 qt6-base-6.11.0-4-x86_64    15.6 MiB  3.48 MiB/s 00:04 [#############################] 100%
 js140-140.10.2-1-x86_64     15.5 MiB  3.48 MiB/s 00:04 [#############################] 100%
 ffmpeg-2:8.1.1-1-x86_64     14.8 MiB  3.44 MiB/s 00:04 [#############################] 100%
 reaper-7.72-1-x86_64        13.3 MiB  3.49 MiB/s 00:04 [#############################] 100%
 openvdb-13.0.0-1-x86_64     11.4 MiB  3.47 MiB/s 00:03 [#############################] 100%
 lib32-gcc-libs-16.1.1...    10.8 MiB  4.18 MiB/s 00:03 [#############################] 100%
 kate-26.04.1-1-x86_64       10.6 MiB  4.61 MiB/s 00:02 [#############################] 100%
 glibc-2.43+r22+g8362e...    10.3 MiB  4.73 MiB/s 00:02 [#############################] 100%
 libvirt-1:12.3.0-1-x86_64    9.2 MiB  4.39 MiB/s 00:02 [#############################] 100%
 maven-3.9.15-1-any           8.5 MiB  4.04 MiB/s 00:02 [#############################] 100%
 qbittorrent-5.2.0-1-x...     8.2 MiB  3.37 MiB/s 00:02 [#############################] 100%
 binutils-2.46+r70+g15...     8.2 MiB  3.63 MiB/s 00:02 [#############################] 100%
 breeze-icons-6.26.0-1...     7.9 MiB  4.33 MiB/s 00:02 [#############################] 100%
 vim-runtime-9.2.0450-...     7.6 MiB  4.02 MiB/s 00:02 [#############################] 100%
 openscenegraph-3.6.5-...     7.1 MiB  3.95 MiB/s 00:02 [#############################] 100%
 yazi-26.5.6-2-x86_64         7.0 MiB  4.84 MiB/s 00:01 [#############################] 100%
 okular-26.04.1-1-x86_64      6.9 MiB  4.20 MiB/s 00:02 [#############################] 100%
 obs-studio-32.1.2-2-x...     6.6 MiB  4.07 MiB/s 00:02 [#############################] 100%
 gwenview-26.04.1-1-x86_64    6.6 MiB  3.52 MiB/s 00:02 [#############################] 100%
 libkdegames-26.04.1-1...     5.8 MiB  3.75 MiB/s 00:02 [#############################] 100%
 glib2-2.88.1-1-x86_64        5.1 MiB  3.89 MiB/s 00:01 [#############################] 100%
 electron39-39.8.10-1-...    71.2 MiB  5.63 MiB/s 00:01 [#########################----]  88%
 code-1.119.0-1-x86_64       51.6 MiB   263 KiB/s 02:02 [#################------------]  62%
 firefox-150.0.2-1-x86_64    51.5 MiB   284 KiB/s 01:48 [##################-----------]  63%
 dolphin-26.04.1-1-x86_64  1280.0 KiB   348 KiB/s 00:10 [#######----------------------]  25%
jonaash ~ 
> 

Just a sudden stop, no error, no nothing. No internet disconnect at this time either. I even tried turning the wifi router off and back on, which didn't interrupt it, so that can't be it.

and my pacman.conf is like this:

#
# /etc/pacman.conf
#
# See the pacman.conf(5) manpage for option and repository directives

#
# GENERAL OPTIONS
#
[options]
# The following paths are commented out with their default values listed.
# If you wish to use different paths, uncomment and update the paths.
#RootDir     = /
#DBPath      = /var/lib/pacman/
#CacheDir    = /var/cache/pacman/pkg/
#LogFile     = /var/log/pacman.log
#GPGDir      = /etc/pacman.d/gnupg/
#HookDir     = /etc/pacman.d/hooks/
HoldPkg     = pacman glibc
#XferCommand = /usr/bin/curl -L -C - -f -o %o %u
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
#XferCommand = /usr/bin/aria2c --allow-overwrite=true --continue=true --file-allocation=none --log-level=error --max-tries=10 --max-connection-per-server=2 --max-file-not-found=5 --min-split-size=5M --no-conf --remote-time=true --summary-interval=60 --timeout=500 --dir=/ --out %o %u
#CleanMethod = KeepInstalled
Architecture = auto

# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
IgnorePkg   = rocm-llvm rocblas composable-kernel hipblaslt magma-hip miopen-hip intel-oneapi-mkl rocfft hipfft rocm-hip-libraries rocm-hip-sdk rccl python-pytorch-rocm rocsolver hipblas hipsolver rocalution supertuxcart python-torchaudio-rocm python-torchvision-rocm 
#IgnoreGroup =

#NoUpgrade   =
#NoExtract   =

# Misc options
#UseSyslog
#Color
#NoProgressBar
CheckSpace
#VerbosePkgLists
DisableDownloadTimeout
ParallelDownloads = 5
DownloadUser = alpm
#DisableSandbox

# By default, pacman accepts packages signed by keys that its local keyring
# trusts (see pacman-key and its man page), as well as unsigned packages.
SigLevel    = Required DatabaseOptional
LocalFileSigLevel = Optional
#RemoteFileSigLevel = Required

# NOTE: You must run `pacman-key --init` before first using pacman; the local
# keyring can then be populated with the keys of all official Arch Linux
# packagers with `pacman-key --populate archlinux`.

#
# REPOSITORIES
#   - can be defined here or included from another file
#   - pacman will search repositories in the order defined here
#   - local/custom mirrors can be added here or in separate files
#   - repositories listed first will take precedence when packages
#     have identical names, regardless of version number
#   - URLs will have $repo replaced by the name of the current repo
#   - URLs will have $arch replaced by the name of the architecture
#
# Repository entries are of the format:
#       [repo-name]
#       Server = ServerName
#       Include = IncludePath
#
# The header [repo-name] is crucial - it must be present and
# uncommented to enable the repo.
#

# The testing repositories are disabled by default. To enable, uncomment the
# repo name header and Include lines. You can add preferred servers immediately
# after the header, and they will be used before the default mirrors.

#[core-testing]
#Include = /etc/pacman.d/mirrorlist

[core]
Include = /etc/pacman.d/mirrorlist

#[extra-testing]
#Include = /etc/pacman.d/mirrorlist

[extra]
Include = /etc/pacman.d/mirrorlist

# If you want to run 32 bit applications on your x86_64 system,
# enable the multilib repositories as required here.

#[multilib-testing]
#Include = /etc/pacman.d/mirrorlist

[multilib]
Include = /etc/pacman.d/mirrorlist

# An example of a custom package repository.  See the pacman manpage for
# tips on creating your own repositories.
#[custom]
#SigLevel = Optional TrustAll
#Server = file:///home/custompkgs

Even when I use the --debug flag it doesn't show any errors. My internet connection is stable and it does the same thing on multiple connections. I tried changing the XferCommand to curl, wget, aria2c, neither of which helped. I've disabled the download timeout, increased parallel downloads (it does the same thing, when I leave it at one), I've tried clearing the pacman cache, removing unnecessary big packages (which helped, but only because my pc had more chance to download everything in time until it borked itself) I've tried quitting every app and just staying at the pacman window, staring at it, but none of that fixed it. I also tried running paru instead of pacman, even though it just runs pacman as a part of the process afaik. I don't really know what to do anymore. Google doesn't show me anything.

Thanks in advance for any and all help and have a nice day.

Last edited by jonaash (2026-05-12 07:55:07)

Offline

#2 2026-05-12 09:54:35

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,303

Re: Pacman randomly stops while downloading, no error messages given.

…
 libkdegames-26.04.1-1...     5.8 MiB  3.75 MiB/s 00:02 [#############################] 100%
 glib2-2.88.1-1-x86_64        5.1 MiB  3.89 MiB/s 00:01 [#############################] 100%
 electron39-39.8.10-1-...    71.2 MiB  5.63 MiB/s 00:01 [#########################----]  88%
 code-1.119.0-1-x86_64       51.6 MiB   263 KiB/s 02:02 [#################------------]  62%
 firefox-150.0.2-1-x86_64    51.5 MiB   284 KiB/s 01:48 [##################-----------]  63%
 dolphin-26.04.1-1-x86_64  1280.0 KiB   348 KiB/s 00:10 [#######----------------------]  25%

throughput comes to a screeching halt.
What does your mirrorlist look like (and when using -v / --debug, what mirrors are being used)?
mirrors.kernel.org has recently flared up a lot (probably LLMDOS)

Online

#3 2026-05-12 09:55:21

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 14,973

Re: Pacman randomly stops while downloading, no error messages given.

Have you tried running pacman while logged in to a root terminal ?
If not, CTRL+ALT+F2 , login as root and test.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#4 2026-05-12 14:04:04

twelveeighty
Member
Registered: 2011-09-04
Posts: 1,450

Re: Pacman randomly stops while downloading, no error messages given.

jonaash wrote:

I even tried turning the wifi router off and back on, which didn't interrupt it,

Can you elaborate on this? You turned the router off *during* a pacman download? Because then either a) pacman download speeds craters while it times out on a connection or b) you are connected to a different network than you think you are and the download happily continues.

Offline

#5 Yesterday 19:13:36

NuSkool
Member
Registered: 2015-03-23
Posts: 293

Re: Pacman randomly stops while downloading, no error messages given.

A couple things come to mind.

Just a sudden stop, no error, no nothing.

1) How long are you giving it?
If network bandwidth is saturated, perhaps this is causing an output pause?
Possibly try waiting longer?

2) What filesystem is this on?
Pacman checks for space. IIRC some fs are not able to be properly checked. If this is the case and you're out of space, perhaps this would cause a hang?
Although this wouldn't explain the eventual completion.

It also doesn't make sense pacman would freeze, then exit/halt without throwing some kind of error message.
Are you stopping pacman manually, which would account for the bd.lock?

Last edited by NuSkool (Yesterday 19:19:24)


Scripts I Use                                                 :  https://github.com/Cody-Learner
grep -m1 'model name' /proc/cpuinfo    : AMD Ryzen 7 8745HS w/ Radeon 780M Graphics
grep -m1 'model name' /proc/cpuinfo    : Intel(R) N95
grep -m1 'model name' /proc/cpuinfo    : AMD Ryzen 5 PRO 2400GE w/ Radeon Vega Graphics

Offline

Board footer

Powered by FluxBB