Need help fixing local pacman DB

Hi,

first of sorry for any questions that return obvious answers, I am a first time pacman user and I did some reading on the wiki but arch specific things are still a bit new to me.

Now to the question… I have local pacman files in a wierd state, not sure what caused it (maybe timeshift or me rsyncing my / to another partition):

when I do pacman -Dkk i get

error: missing 'linux53' dependency for 'darch-run'
error: missing 'pamac-common<9.6.0' dependency for 'pamac-qt'
error: missing 'moka-icon-theme' dependency for 'arc-icon-theme'
error: missing 'gnome-shell<1:3.37.0' dependency for 'gnome-shell-extension-arc-menu'
error: missing 'gtk-xfce-engine' dependency for 'i3-theme-dark'
error: missing 'gtk-xfce-engine' dependency for 'i3-theme-dust'
error: missing 'java-runtime=13' dependency for 'java-atk-wrapper-openjdk'
error: missing 'pmenu' dependency for 'jwmconf'
error: missing 'linux56-rt-broadcom-wl' dependency for 'linux-rt-manjaro-ndiswrapper'
error: missing 'zfs-utils=0.8.5' dependency for 'linux54-rt-zfs'
error: missing 'manjaro-browser-settings-native' dependency for 'manjaro-bspwm-mate-settings'
error: missing 'gtk-theme-stylishdark' dependency for 'manjaro-jwm-settings'
error: missing 'ultraflatorange-icon-theme' dependency for 'manjaro-jwm-settings'
error: missing 'xcursor-rezowhite' dependency for 'manjaro-jwm-settings'
error: missing 'adapta-breath-theme' dependency for 'manjaro-kde-minimal-settings-18.0'
error: missing 'adapta-breath-theme' dependency for 'manjaro-kde-settings-18.0'
error: missing 'python2-xlib' dependency for 'py-corners'
error: missing 'python2-pyenchant' dependency for 'python2-gtkspellcheck'
error: missing 'python2-unidecode>=0.04.16' dependency for 'python2-slugify'
error: missing 'qt4>=4.8' dependency for 'qt-at-spi'
error: missing 'python2-caja' dependency for 'rabbitvcs-caja'
error: missing 'faenza-green-icon-theme' dependency for 'unified-manjaro-themes-openbox'
error: missing 'lib32-qt4' dependency for 'lib32-libdbusmenu-qt'
error: missing 'lib32-qt4' dependency for 'lib32-qjson'
error: missing 'sni-qt' dependency for 'lib32-sni-qt'
error: missing 'lib32-qt4' dependency for 'lib32-sni-qt'

then I wanted to chek what darch-run is with pacman -Qi darch-run

error: duplicated database entry 'glusterfs'
error: duplicated database entry 'gst-editing-services'
error: duplicated database entry 'linux54'
error: duplicated database entry 'jre-openjdk-headless'
error: duplicated database entry 'lib32-nss'
error: duplicated database entry 'jdk-openjdk'
error: could not open file /var/lib/pacman/local/alsa-card-profiles-14.2-1/desc: No such file or directory
error: could not open file /var/lib/pacman/local/audit-2.8.5-9/desc: No such file or directory
error: could not open file /var/lib/pacman/local/autoconf-2.69-7/desc: No such file or directory
error: could not open file /var/lib/pacman/local/binutils-2.35.1-1/desc: No such file or directory
error: could not open file /var/lib/pacman/local/bison-3.7.2-1/desc: No such file or directory
error: could not open file /var/lib/pacman/local/btrfs-progs-5.9-3/desc: No such file or directory
error: could not open file /var/lib/pacman/local/ca-certificates-mozilla-3.60.1-1/desc: No such file or directory
error: could not open file /var/lib/pacman/local/caffeine-ng-3.4.2-2.4/desc: No such file or directory
error: could not open file /var/lib/pacman/local/ceph-libs-15.2.6-4/desc: No such file or directory

… and many more and at the end

error: package 'darch-run' was not found

I have ready on the wiki that I could find duplicates in /var/lib/pacman/local/ and remove those versions that are not installed which would be tedious to do, but I think its better to first resolve the missing files problem before I continue with duplicates.

So what is the right way to resolve these errors?

Thanks for help.

Your install seems pretty out-of-date, since you have linux53 and qt4 stuff mentioned.

What does a sudo pacman-mirrors -f5 && sudo pacman -Syyu do for you?

Hey, thanks for the quick answer, I package databases get syschronized but then I get same errors and at the end:

resolving dependencies…
looking for conflicting packages…
warning: could not fully load metadata for package alsa-card-profiles-14.2-1
error: failed to prepare transaction (invalid or corrupted package)

and thats the wierd thing, I am running 5.4.95-1 and I never specifically installed linux53.
Not sure but it was maybe there when I frst installed manjaro a month ago and was wrongly restored by timeshift recently.

Also just before pacmant completely broke, I installed Genymotion and that came from AUR. Can a bad AUR package cause such a thing?

So what else can I do to fix the packages?

thanks!

Maybe this thread is helpful:

1 Like

Nice, THAT helped from the post you mentioned and the line sudo pacman-mirrors -f5 && sudo pacman -Syyu returns no errors.

So I think I managed to restore the metadata in /var/lib/pacman, everything got re-downloaded and the system got fully upgraded as far as I can tell. There was a small issue with X, but I fixed that with reinstalling linux54-nvidia.

the only thing left are the missing dependencies after running pacman -Dkk:

error: missing 'linux53' dependency for 'darch-run'
error: missing 'pamac-common<9.6.0' dependency for 'pamac-qt'
error: missing 'moka-icon-theme' dependency for 'arc-icon-theme'
error: missing 'gnome-shell<1:3.37.0' dependency for 'gnome-shell-extension-arc-menu'
error: missing 'gtk-xfce-engine' dependency for 'i3-theme-dark'
error: missing 'gtk-xfce-engine' dependency for 'i3-theme-dust'
error: missing 'java-runtime=13' dependency for 'java-atk-wrapper-openjdk'
error: missing 'pmenu' dependency for 'jwmconf'
error: missing 'linux56-rt-broadcom-wl' dependency for 'linux-rt-manjaro-ndiswrapper'
error: missing 'zfs-utils=0.8.5' dependency for 'linux54-rt-zfs'
error: missing 'manjaro-browser-settings-native' dependency for 'manjaro-bspwm-mate-settings'
error: missing 'gtk-theme-stylishdark' dependency for 'manjaro-jwm-settings'
error: missing 'ultraflatorange-icon-theme' dependency for 'manjaro-jwm-settings'
error: missing 'xcursor-rezowhite' dependency for 'manjaro-jwm-settings'
error: missing 'adapta-breath-theme' dependency for 'manjaro-kde-minimal-settings-18.0'
error: missing 'adapta-breath-theme' dependency for 'manjaro-kde-settings-18.0'
error: missing 'python2-xlib' dependency for 'py-corners'
error: missing 'python2-pyenchant' dependency for 'python2-gtkspellcheck'
error: missing 'python2-unidecode>=0.04.16' dependency for 'python2-slugify'
error: missing 'qt4>=4.8' dependency for 'qt-at-spi'
error: missing 'python2-caja' dependency for 'rabbitvcs-caja'
error: missing 'faenza-green-icon-theme' dependency for 'unified-manjaro-themes-openbox'
error: missing 'lib32-qt4' dependency for 'lib32-libdbusmenu-qt'
error: missing 'lib32-qt4' dependency for 'lib32-qjson'
error: missing 'sni-qt' dependency for 'lib32-sni-qt'
error: missing 'lib32-qt4' dependency for 'lib32-sni-qt'

Something is still not up-to-date. Where is this information comming from? As mentioned before I don’t remember ever installing linux53.

regards

It seems that darch-run needs linux53.

I think you should go through the list of packages it mentions after “dependency for” and uninstall those you don’t need.
They are likely no longer in the repo.