Possibly Corrupted?

Relatively new to the Linux scene, so some stupid mistakes were made. I had recently switched my default terminal emulator to CoolRetroTerm, but unknown to me when using CRT as your default, right-clicking inside a folder and clicking “Open terminal here” does not actually open the terminal there. It just opens to root. I used ‘rm -rf’ to clear the folder I thought I was in and quickly realized my mistake. I cancelled it and everything seems fine now but whenever I try to update my packages it returns this:

[klobberz@manjaro ~]$ sudo pacman -Syyu
[sudo] password for klobberz: 
:: Synchronizing package databases...
 core                                              163.2 KiB   225 KiB/s 00:01 [############################################] 100%
 extra                                            1652.3 KiB  3.75 MiB/s 00:00 [############################################] 100%
 community                                           6.8 MiB  19.2 MiB/s 00:00 [############################################] 100%
 multilib                                          167.9 KiB  1806 KiB/s 00:00 [############################################] 100%
:: Starting full system upgrade...
error: could not open file /var/lib/pacman/local/nodejs-nopt-7.0.0-1/desc: No such file or directory
:: Replace tbb with extra/onetbb? [Y/n] y
resolving dependencies...
error: could not open file /var/lib/pacman/local/node-gyp-9.3.1-1/desc: No such file or directory
error: could not open file /var/lib/pacman/local/semver-7.3.8-1/desc: No such file or directory
looking for conflicting packages...
warning: could not fully load metadata for package nodejs-nopt-7.0.0-1
error: failed to prepare transaction (invalid or corrupted package)

No idea if that has anything to do with my mistake but any help would be appreciated.

Hi,

You can try deleting the folder containing the desc file and then recreate the database entry the packages causing errors, wih the cached version : (got this from here)

sudo rm -rI /var/lib/pacman/local/nodejs-nopt-7.0.0-1
sudo pacman -U --dbonly /var/cache/pacman/pkg/nodejs-nopt-7.0.0-1
# then, update
sudo pacman -Syu

It just opens to root.

Do you mean it opened the terminal as root (superuser) or to / ? Where did it open it exactly ?
And btw, always double check when using rm -r, especially when you wanna delete critical files, also you can use the -I option instead of -f, it will ask for confirmation.

Without using “sudo” you can only do damage to files that belong to you with a recursive removal command.
If you where not running the file manager as root, the terminal can’t have been running as root either - so whatever problems you have do not originate from your episode.

I believe it only opened to the home folder ‘~’. My apologies.

I followed the instructions and it looks like it did try to update but the partition is too small.

[klobberz@manjaro ~]$ sudo rm -rI /var/lib/pacman/local/nodejs-nopt-7.0.0-1
[sudo] password for klobberz: 
rm: remove 1 argument recursively? y
[klobberz@manjaro ~]$ sudo pacman -U --dbonly /var/cache/pacman/pkg/nodejs-nopt-7.0.0-1
loading packages...
error: '/var/cache/pacman/pkg/nodejs-nopt-7.0.0-1': could not find or read package
[klobberz@manjaro ~]$ sudo pacman -Syu
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
 multilib is up to date
:: Starting full system upgrade...
:: Replace tbb with extra/onetbb? [Y/n] y
resolving dependencies...
error: could not open file /var/lib/pacman/local/node-gyp-9.3.1-1/desc: No such file or directory
error: could not open file /var/lib/pacman/local/semver-7.3.8-1/desc: No such file or directory
looking for conflicting packages...
warning: dependency cycle detected:
warning: libcamera-ipa will be installed before its libcamera dependency
warning: dependency cycle detected:
warning: mhwd-nvidia will be installed before its mhwd dependency
warning: dependency cycle detected:
warning: mhwd-nvidia-390xx will be installed before its mhwd dependency
warning: dependency cycle detected:
warning: mhwd-nvidia-470xx will be installed before its mhwd dependency

Packages (669) abseil-cpp-20230125.1-2  accountsservice-23.13.9-1  adlplug-1.0.2-8  adlplug-lv2-1.0.2-8
               adlplug-standalone-1.0.2-8  adlplug-vst-1.0.2-8  adobe-source-code-pro-fonts-2.040u+1.060i+1.024vf-1
               adobe-source-sans-fonts-3.052-1  alsa-card-profiles-1:0.3.70-0  alsa-firmware-1.2.4-3  alsa-oss-1.1.8-5
               alsa-plugins-1:1.2.7.1-2  alsa-topology-conf-1.2.5.1-3  amd-ucode-20230310.588dd07-1  android-udev-20230303-1
               apparmor-3.1.3-1  appstream-0.16.1-2  appstream-glib-0.8.2-2  appstream-qt-0.16.1-2
               archlinux-appstream-data-20230220-1  ark-22.12.3-1  aspnet-targeting-pack-7.0.3.sdk103-1  asunder-2.9.7-6
               at-spi2-core-2.48.0-1  attica-5.104.0-1  attr-2.5.1-3  audacious-plugins-4.2-4  audacity-1:3.2.5-2  audit-3.1-1
               autoconf-2.71-4  automake-1.16.5-2  babl-0.1.102-1  baloo-5.104.0-1  baloo-widgets-22.12.3-1  bison-3.8.2-5
               bluedevil-1:5.27.4-1  bluez-qt-5.104.0-1  breeze-5.27.4-1  breeze-gtk-5.27.4-2.1  breeze-icons-5.104.0-1
               brotli-1.0.9-10  btrfs-progs-6.2.2-1  bubblewrap-0.8.0-1  ca-certificates-mozilla-3.89-1  cabextract-1.11-1
               calf-0.90.3-6  chromaprint-1.5.1-7  cifs-utils-7.0-3  ckbcomp-1.215-1  clang-15.0.7-2  clinfo-3.0.21.02.21-1
               cmake-3.26.3-1  containerd-1.7.0-1  coreutils-9.2-3  cpupower-6.2-1  cryptsetup-2.6.1-3.1  cups-1:2.4.2-6
               cups-filters-1.28.17-2  curl-8.0.1-1  dav1d-1.1.0-1  dbus-1.14.6-2  dbus-python-1.2.18-4  debugedit-5.0-5
               device-mapper-2.03.20-1  discord-0.0.27-1  dmidecode-3.5-1  docker-1:23.0.3-1  dolphin-22.12.3-1
               dolphin-emu-1:5.0.r18498.46b99671d9-2  dolphin-plugins-22.12.3-1  dotnet-host-7.0.3.sdk103-1
               dotnet-runtime-7.0.3.sdk103-1  dotnet-sdk-7.0.3.sdk103-1  dotnet-targeting-pack-7.0.3.sdk103-1  efibootmgr-18-2
               efivar-38-3  egl-wayland-2:1.1.11-4  electron-22.3.3-1  electron17-17.4.11-6  electron19-19.1.9-5
               elfutils-0.189-1  enchant-2.3.4-1  extra-cmake-modules-5.104.0-1  faac-1.30-4  faudio-23.04-1  ffmpeg-2:6.0-4
               ffmpeg4.4-4.4.3-1  ffmpegthumbs-22.12.3-2  fftw-3.3.10-4  file-5.44-3  filelight-22.12.3-1
               filesystem-2023.03.21-1  findutils-4.9.0-3  firefox-112.0-1  flatpak-1:1.15.4-1  flex-2.6.4-5  fltk-1.3.8-2
               fluidsynth-2.3.2-1  foomatic-db-3:20230402-1  foomatic-db-nonfree-3:20230402-1
               foomatic-db-nonfree-ppds-3:20230402-1  foomatic-db-ppds-3:20230402-1  frameworkintegration-5.104.0-1
               freeimage-3.18.0-18  fuse-common-3.14.1-1  fuse3-3.14.1-1  fwupd-1.8.14-1  game-devices-udev-0.21-1
               garcon-4.18.1-1  gavl-1.4.0-7  gawk-5.2.1-2  gdb-13.1-2  gdb-common-13.1-2  gdbm-1.23-2  gegl-0.4.44-1
               geocode-glib-3.26.4-3  geocode-glib-common-3.26.4-3  gettext-0.21.1-5  ghostscript-10.01.1-1  gimp-2.10.34-1
               git-2.40.0-1  glib-networking-1:2.76.0-1  glib2-2.76.1-1  glib2-docs-2.76.1-1  glibmm-2.66.6-1
               glibmm-2.68-2.76.0-1  glslang-12.1.0-1  gnupg-2.2.41-1  gnutls-3.8.0-1  go-2:1.20.3-1
               gobject-introspection-1.76.1-1  gobject-introspection-runtime-1.76.1-1  gparted-1.5.0-1  gpgme-1.19.0-3
               graphviz-8.0.1-1  grep-3.10-1  groff-1.22.4-10  grub-2.06.r456.g65bc45963-6  grub-theme-manjaro-20.2-15
               gsettings-desktop-schemas-44.0-1  gsfonts-20200910-3  gst-libav-1.22.1-2  gst-plugin-pipewire-1:0.3.70-0
               gst-plugins-bad-1.22.1-2  gst-plugins-bad-libs-1.22.1-2  gst-plugins-base-1.22.1-2  gst-plugins-base-libs-1.22.1-2
               gst-plugins-good-1.22.1-2  gst-plugins-ugly-1.22.1-2  gstreamer-1.22.1-2  gtk-update-icon-cache-1:4.10.1-2
               gtk3-1:3.24.37-1  gtk4-1:4.10.1-2  gvfs-1.50.4-1  gvfs-afc-1.50.4-1  gvfs-gphoto2-1.50.4-1  gvfs-mtp-1.50.4-1
               gvfs-nfs-1.50.4-1  gvfs-smb-1.50.4-1  gwenview-22.12.3-1  handbrake-1.6.1-2  harfbuzz-7.1.0-1
               harfbuzz-icu-7.1.0-1  hicolor-icon-theme-0.17-3  hidapi-0.13.1-2  highway-1.0.4-1  hwdata-0.369-1  hwloc-2.9.0-1
               iana-etc-20230306-1  imagemagick-7.1.1.5-1  imath-3.1.7-1  imlib2-1.11.0-1  inetutils-2.4-1  inxi-3.3.26.1-1
               iproute2-6.2.0-2  iso-codes-4.13.0-1  kaccounts-integration-22.12.3-1  kaccounts-providers-22.12.3-1
               kactivities-5.104.0-1  kactivities-stats-5.104.0-1  kactivitymanagerd-5.27.4-1  kamera-22.12.3-1
               karchive-5.104.0-1  kate-22.12.3-1  kauth-5.104.0-1  kbookmarks-5.104.0-1  kcalc-22.12.3-1  kcmutils-5.104.0-1
               kcodecs-5.104.0-1  kcompletion-5.104.0-1  kconfig-5.104.0-1  kconfigwidgets-5.104.0-1  kcontacts-1:5.104.0-1
               kcoreaddons-5.104.0-1  kcrash-5.104.0-1  kdbusaddons-5.104.0-1  kde-cli-tools-5.27.4-1  kde-gtk-config-5.27.4-1
               kdeclarative-5.104.0-1  kdeconnect-22.12.3-1  kdecoration-5.27.4-1  kded-5.104.0-1
               kdegraphics-mobipocket-22.12.3-1  kdegraphics-thumbnailers-22.12.3-1  kdelibs4support-5.104.0-1
               kdenetwork-filesharing-22.12.3-1  kdeplasma-addons-5.27.4-1  kdesu-5.104.0-1  kdialog-22.12.3-1  kdnssd-5.104.0-1
               kdoctools-5.104.0-1  keditbookmarks-22.12.3-1  kemoticons-5.104.0-1  kfilemetadata-5.104.0-1  kfind-22.12.3-1
               kgamma5-5.27.4-1  kget-22.12.3-1  kglobalaccel-5.104.0-1  kguiaddons-5.104.0-1  khelpcenter-22.12.3-1
               kholidays-1:5.104.0-1  khotkeys-5.27.4-1  khtml-5.104.0-1  ki18n-5.104.0-1  kiconthemes-5.104.0-2  kid3-3.9.3-2
               kid3-common-3.9.3-2  kidletime-5.104.0-1  kimageannotator-0.6.1-1  kimageformats-5.104.0-1  kinfocenter-5.27.4-1
               kinit-5.104.0-1  kio-5.104.0-1  kio-extras-22.12.3-1  kirigami2-5.104.0-1  kitemmodels-5.104.0-1
               kitemviews-5.104.0-1  kjobwidgets-5.104.0-1  kjs-5.104.0-1  kmenuedit-5.27.4-1  knewstuff-5.104.0-1
               knotifications-5.104.0-1  knotifyconfig-5.104.0-1  konsole-22.12.3-1  kpackage-5.104.0-1  kparts-5.104.0-1
               kpeople-5.104.0-1  kpipewire-5.27.4-1  kpmcore-22.12.3-1  kpty-5.104.0-1  kquickcharts-5.104.0-1
               krunner-5.104.0-1  ksanecore-22.12.3-1  kscreen-5.27.4-1  kscreenlocker-5.27.4-1  kservice-5.104.0-1
               ksshaskpass-5.27.4-1  ksystemlog-22.12.3-1  ksystemstats-5.27.4-1  ktexteditor-5.104.0-1  ktextwidgets-5.104.0-1
               kunitconversion-5.104.0-1  kwallet-5.104.0-1  kwallet-pam-5.27.4-1  kwalletmanager-22.12.3-1  kwayland-5.104.0-1
               kwayland-integration-5.27.4-1  kwidgetsaddons-5.104.0-1  kwin-5.27.4-1  kwindowsystem-5.104.0-1  kwrited-5.27.4-1
               kxmlgui-5.104.0-1  l-smash-2.14.5-3  ladspa-1.17-2  layer-shell-qt-5.27.4-1  lcms2-2.15-1  ldb-2:2.7.2-1
               lib32-alsa-plugins-1.2.7.1-2  lib32-curl-8.0.1-1  lib32-dbus-1.14.6-2  lib32-faudio-23.03-1
               lib32-glib-networking-2.76.0-1  lib32-glib2-2.76.1-1  lib32-gnutls-3.8.0-2  lib32-gst-plugins-base-libs-1.22.1-1
               lib32-gstreamer-1.22.1-1  lib32-gtk3-1:3.24.37-1  lib32-harfbuzz-7.1.0-1  lib32-lcms2-2.15-1  lib32-libcap-2.68-1
               lib32-libdrm-2.4.115-1  lib32-libelf-0.189-1  lib32-libjpeg-turbo-2.1.5.1-1  lib32-libldap-2.6.4-1
               lib32-libltdl-2.4.7-3  lib32-libpsl-0.21.2-1  lib32-libpulse-16.1-6  lib32-librsvg-2:2.56.0-1
               lib32-libtiff-4.5.0-3  lib32-libusb-1.0.26-2  lib32-libva-mesa-driver-23.0.2-2  lib32-libx11-1.8.4-1
               lib32-libxss-1.2.3-3  lib32-mesa-23.0.2-2  lib32-mesa-vdpau-23.0.2-2  lib32-mpg123-1.31.3-1  lib32-nss-3.89-1
               lib32-nvidia-utils-530.41.03-1  lib32-openssl-1:3.0.8-1  lib32-openssl-1.1-1.1.1.t-1  lib32-pango-1:1.50.14-1
               lib32-sdl2-2.26.4-1  lib32-sqlite-3.41.1-1  lib32-systemd-252.9-1  lib32-tdb-1.4.8-1  lib32-vkd3d-1.6-1
               lib32-vulkan-icd-loader-1.3.245-1  lib32-vulkan-intel-23.0.2-2  lib32-vulkan-radeon-23.0.2-2  lib32-xz-5.4.2-1
               lib32-zstd-1.5.4-1  libadwaita-1:1.3.1-1  libaio-0.3.113-2  libao-1.2.2-6  libass-0.17.1-1  libassuan-2.5.5-2
               libavc1394-0.5.4-5  libavtp-0.2.0-2  libbpf-1.1.0-1  libcamera-0.0.4-3  libcamera-ipa-0.0.4-3  libcap-2.68-1
               libcbor-0.10.2-1  libcue-2.2.1-3  libcups-1:2.4.2-6  libcurl-gnutls-8.0.1-1  libde265-1.0.11-2  libdecor-0.1.1-2
               libdiscid-0.6.4-2  libdrm-2.4.115-1  libdv-1.0.0-10  libedit-20221030_3.1-1  libelf-0.189-1  libgig-4.3.0-4
               libgirepository-1.76.1-1  libgit2-1:1.6.3-1  libgme-0.6.3-2  libhandy-1.8.2-1  libheif-1.15.2-1  libibus-1.5.28-3
               libice-1.1.1-2  libid3tag-0.15.1b-12  libimagequant-4.1.1-1  libinput-1.23.0-1  libinstpatch-1.1.6-2
               libjcat-0.1.13-2  libjpeg-turbo-2.1.5.1-1  libkate-0.4.1-9  libkdcraw-22.12.3-1  libkexiv2-22.12.3-1
               libksane-22.12.3-1  libkscreen-5.27.4-1  libksysguard-5.27.4-1  libktorrent-22.12.3-1  liblc3-1.0.2-1
               libldap-2.6.4-1  liblo-1:0.31-3  liblsp-r3d-glx-lib-1.2.6-1  libmad-0.15.1b-10  libmalcontent-0.11.1-1
               libmanette-0.2.6-4  libmbim-1.28.4-1  libmfx-23.1.3-2  libmgba-0.10.1-2  libmm-glib-1.20.6-1  libmms-0.6.4-4
               libmpdclient-2.20-3  libmysofa-1.3.1-2  libnftnl-1.2.5-1  libnghttp2-1.52.0-2  libnm-1.42.4-2  libnotify-0.8.2-1
               libnsl-2.0.0-3  libopenmpt-0.6.9-2  libpamac-11.5.2-3  libpamac-flatpak-plugin-11.5.2-3
               libpamac-snap-plugin-11.5.2-3  libpaper-2.0.10-2  libpipewire-1:0.3.70-0  libplacebo-5.229.2-2  libpulse-16.1-6
               libqalculate-4.6.0-1  libqmi-1.32.4-1  libratbag-0.17-1  librsvg-2:2.56.0-1  libsamplerate-0.2.2-2
               libsoup3-3.4.0-1  libsysprof-capture-3.48.0-1  libtiff-4.5.0-3  libtraceevent-1:1.7.2-1  libtracefs-1.6.4-2
               libupnp-1.14.16-1  liburcu-0.14.0-1  libusb-1.0.26-2  libva-mesa-driver-23.0.2-2  libvpx-1.13.0-1
               libwacom-2.6.0-2  libwbclient-4.18.1-1  libwpe-1.14.1-2  libx86emu-3.5-3  libxau-1.0.11-2  libxaw-1.0.15-1
               libxdmcp-1.1.4-2  libxfce4ui-4.18.3-1  libxfont2-2.0.6-2  libxi-1.8-3  libxklavier-5.4-4  libxmlb-0.3.11-1
               libxnvctrl-530.41.03-3  libxvmc-1.0.13-2  licenses-20220125-2  linux-firmware-20230310.588dd07-1
               linux-firmware-whence-20230310.588dd07-1  linux515-5.15.108-1  linux515-nvidia-530.41.03-5  llvm-15.0.7-2
               llvm-libs-15.0.7-2  lmdb-0.9.30-3  lsp-plugins-1.2.6-1  lsp-plugins-clap-1.2.6-1  lsp-plugins-ladspa-1.2.6-1
               lsp-plugins-lv2-1.2.6-1  lsp-plugins-standalone-1.2.6-1  lsp-plugins-vst-1.2.6-1
               luajit-2.1.0.beta3.r471.g505e2c03-1  lvm2-2.03.20-1  m4-1.4.19-3  make-4.4.1-2  man-pages-6.04-1
               manjaro-hello-0.7.0-6  manjaro-kde-settings-20230404-1  manjaro-release-22.1.0-1  manjaro-zsh-config-0.25-1
               mariadb-libs-10.11.2-2  mesa-23.0.2-2  mesa-demos-9.0.0-2  mesa-utils-9.0.0-2  mesa-vdpau-23.0.2-2  meson-1.0.1-1
               mhwd-0.6.5-25  mhwd-db-0.6.5-25  mhwd-nvidia-530.41.03-4  mhwd-nvidia-390xx-390.157-5
               mhwd-nvidia-470xx-470.182.03-1  milou-5.27.4-1  minizip-ng-3.0.9-1  mkinitcpio-35.2-2  mlt-7.14.0-2
               modemmanager-1.20.6-1  modemmanager-qt-5.104.0-1  mono-addins-1.3.3-4  mpg123-1.31.3-1  mpv-1:0.35.1-4
               mujs-1.3.3-1  ndctl-76.1-1  netpbm-10.73.43-1  netstandard-targeting-pack-7.0.3.sdk103-1  networkmanager-1.42.4-2
               networkmanager-pptp-1.2.12-1  networkmanager-qt-5.104.0-1  nftables-1:1.0.7-1  nodejs-19.8.1-1
               noto-fonts-20230401-1  npth-1.6-4  nss-3.89-1  nvidia-utils-530.41.03-4  obs-studio-29.0.2-2  okular-22.12.3-1
               onetbb-2021.8.0-2  onlyoffice-desktopeditors-7.3.3-1  openal-1.23.0-2  openexr-3.1.7-1  openmpi-4.1.5-1
               openpmix-4.2.3-2  openssh-9.3p1-1  openvpn-2.6.2-1  ostree-2023.2-1  oxygen-5.27.4-1  oxygen-icons-1:5.104.0-1
               oxygen-sounds-5.27.4-1  p7zip-1:17.05-1  packagekit-qt5-1.1.1-1  pacman-6.0.2-10  pamac-cli-10.5.0-2
               pamac-gtk-10.5.0-2  pango-1:1.50.14-1  partitionmanager-22.12.3-1  pcsclite-1.9.9-3  perl-alien-build-2.78-1
               perl-http-daemon-6.16-1  pipewire-1:0.3.70-0  pipewire-alsa-1:0.3.70-0  pipewire-audio-1:0.3.70-0
               pipewire-jack-1:0.3.70-0  pipewire-media-session-1:0.4.2-2  pipewire-pulse-1:0.3.70-0  pipewire-v4l2-1:0.3.70-0
               pipewire-x11-bell-1:0.3.70-0  pipewire-zeroconf-1:0.3.70-0  pkgconf-1.8.1-1  plasma-browser-integration-5.27.4-1
               plasma-desktop-5.27.4-1  plasma-framework-5.104.0-1  plasma-integration-5.27.4-1  plasma-nm-5.27.4-1
               plasma-pa-5.27.4-1  plasma-systemmonitor-5.27.4-1  plasma-workspace-5.27.4.1-1
               plasma-workspace-wallpapers-5.27.4.1-1  polkit-gnome-0.105-10  polkit-kde-agent-5.27.4.1-1  poppler-23.03.0-1
               poppler-glib-23.03.0-1  poppler-qt5-23.03.0-1  portaudio-1:19.7.0-2  portmidi-1:2.0.4-1  postgresql-libs-15.2-1
               powerdevil-5.27.4.1-1  print-manager-22.12.3-1  prison-5.104.0-1  purpose-5.104.0-1  pyside6-6.4.3-1
               python-3.10.10-1  python-cryptography-40.0.1-1  python-dnspython-1:2.3.0-1  python-docutils-1:0.19-3
               python-fastjsonschema-2.16.3-1  python-fonttools-4.39.3-1  python-gobject-3.44.1-1
               python-jaraco.functools-3.6.0-1  python-magic-1:0.4.27-2  python-markdown-3.4.3-1  python-markdown-it-py-2.2.0-1
               python-matplotlib-3.7.1-1  python-more-itertools-9.1.1-1  python-numpy-1.24.2-1  python-pip-23.0.1-1
               python-platformdirs-3.1.1-1  python-pooch-1.7.0-1  python-pydantic-1.10.7-2  python-pyopenssl-23.1.1-1
               python-requests-2.28.2-1  python-rich-13.3.3-1  python-scipy-1.10.1-1  python-setuptools-1:67.6.1-1
               python-tenacity-8.2.2-1  python-trove-classifiers-2023.3.9-1  python-typing_extensions-4.5.0-1
               python-urllib3-1.26.13-1  python-validate-pyproject-0.12.2-1  python-wheel-0.40.0-1  python-zipp-3.15.0-1
               qbittorrent-4.5.2-1  qgpgme-1.19.0-3  qmmp-2.1.2-2  qpdf-11.3.0-1  qpwgraph-0.4.1-1  qqc2-desktop-style-5.104.0-1
               qt5-base-5.15.8+kde+r185-1  qt5-location-5.15.8+kde+r4-2  qt5-wayland-5.15.8+kde+r63-1  qt5-webengine-5.15.13-1
               qt5pas-2.6.2.2.4-1  qt6-5compat-6.4.3-1  qt6-base-6.4.3-1  qt6-declarative-6.4.3-1  qt6-imageformats-6.4.3-1
               qt6-shadertools-6.4.3-1  qt6-svg-6.4.3-1  qt6-tools-6.4.3-2  qt6-translations-6.4.3-1  qt6-wayland-6.4.3-1
               rapidyaml-0.5.0-2  raptor-2.0.16-2  re2-1:20230301-1  rsync-3.2.7-4  rubberband-3.2.1-1  runc-1.1.5-1
               samba-4.18.1-1  sane-1.2.1-4  sddm-kcm-5.27.4.1-1  sdl2-2.26.4-1  sed-4.9-3  shaderc-2023.3-1  shiboken6-6.4.3-1
               signon-kwallet-extension-22.12.3-1  skanlite-22.12.3-1  smbclient-4.18.1-1  snapd-2.59.1-1  solid-5.104.0-1
               sonnet-5.104.0-1  spectacle-22.12.3-1  sqlite-3.41.2-1  squashfs-tools-4.6.1-1  steam-1.0.0.76-2  stk-4.6.2-2
               sudo-1.9.13.p3-1  syndication-5.104.0-1  syntax-highlighting-5.104.0-1  systemd-252.9-1  systemd-libs-252.9-1
               systemd-sysvcompat-252.9-1  systemsettings-5.27.4.1-1  tar-1.34-2  tbb-2021.5.0-2 [removal]
               telegram-desktop-4.7.1-1  texinfo-7.0.3-1  thin-provisioning-tools-1.0.3-1  threadweaver-5.104.0-1
               thunar-4.18.4-1  timidity++-2.15.0-10  tinycompress-1.2.8-2  tracker3-3.5.0-1  transcode-1.1.7-41  tzdata-2023c-1
               util-linux-2.38.1-3  util-linux-libs-2.38.1-3  v4l-utils-1.24.1-1  vpnc-1:0.5.3.r526.r213-1  vte-common-0.72.0-1
               vte3-0.72.0-1  vulkan-headers-1:1.3.246-1  vulkan-icd-loader-1.3.245-1  vulkan-intel-23.0.2-2
               vulkan-radeon-23.0.2-2  vulkan-tools-1.3.245-1  wayland-1.22.0-1  webkit2gtk-2.40.0-2  webkit2gtk-4.1-2.40.0-2
               wine-8.5-1  wireless-regdb-2023.02.13-1  wpebackend-fdo-1.14.2-1  xapian-core-1:1.4.22-1  xapp-2.4.2-2
               xbitmaps-1.1.3-1  xdg-desktop-portal-kde-5.27.4.1-1  xf86-input-libinput-1.3.0-1  xf86-video-amdgpu-23.0.0-1
               xfce4-notifyd-0.8.2-1  xfce4-panel-4.18.3-1  xfce4-session-4.18.2-1  xfsprogs-6.2.0-1
               xorg-fonts-alias-misc-1.0.5-1  xorg-fonts-encodings-1.0.7-1  xorg-fonts-misc-1.0.4-1  xorg-server-21.1.8-1
               xorg-server-common-21.1.8-1  xorg-setxkbmap-1.3.3-2  xterm-379-1  xxhash-0.8.1-4  xz-5.4.2-1  yakuake-22.12.3-1
               yay-12.0.4-1  zenity-3.44.0-3  zita-resampler-1.10.1-1  zsh-theme-powerlevel10k-1.17.0+23+g1cff2249-1
               zstd-1.5.4-1  zvbi-0.2.41-1  zxing-cpp-2.0.0-2

Total Download Size:   2847.17 MiB
Total Installed Size:  9682.02 MiB
Net Upgrade Size:      -195.01 MiB

:: Proceed with installation? [Y/n] y
error: Partition / too full: 734347 blocks needed, 468528 blocks free
error: failed to commit transaction (not enough free disk space)
Errors occurred, no packages were upgraded.

I did, in fact, use “sudo”. I forgot to mention that in the original post. My mistake.

then you are in a state where you definitely did some damage, you just don’t know what and where or what will blow up next
not worth investing time in - IMO

1 Like

run sudo paccach -rvk2, it will clean your cache and make some room (assuming it’s full of old packages versions), if it’s not avaiable, you’ll need to install pacman-contrib

Also you’ll need to to the previous commands with node-gyp and semver since pacman complains about them as well

From time to time this may happen to everyone :man_shrugging:

1. Backup what you really need NOW

2. Reinstall

3. Use Timeshift or snapper in the future

So that you can undo such problems
:footprints:

1 Like

probably,
no, certainly … a typo -
but the commands name is
paccache
and to gain max space
paccache -rvk0 could be used
or the contents of
/var/cache/pacman/pkg
completely deleted

sudo tune2fs -m 0 /dev/your_root_device
could also significantly increase the available space, depending on the size of the disk
… one would gain up to 5% of the disk capacity

But since @Klobberz
a) definitely did some damage
and
b) do not know to where or to what
he should restore from snapshot or reinstall

everything else is gambling and may and probably will be a huge waste of time

2 Likes