Gnome and pamac totally corrupted after upgrade

Hello. A while back I was trying to upgrade my manjaro distro and there were some file conflicts with GStreamer and its plugins, so I tought maybe if I remove those files it will be replaced after upgrading; there were some locale files and some config files, I don’t have a list of those files.
Now after restarting, Gnome isn’t working, and it shows me this message:

A problem has occurred and the system can't recover. Please contact a system administrator.

and even when I completely uninstalled gnome using pacman -Sgq gnome | sudo pacman -Rs and reinstalled it I still get this message.

also when I run pamac, I don’t get any result, for example, when I run pamac search google-crhome it returns nothing.

what could it be? and how can I resolve it?

My system information:

Manjaro version: ManjaroLinux 21.3.7 Ruah
The following kernels are installed in your system:
   * linux510
   * linux515

also whenever I use pacman I get this long message, which doesn’'t corrupt anything but it’s still a warning:

sudo pacman -S --overwrite "*" 

and also whenever I’m using pacman, I get following warning:

ldconfig: File /usr/lib/octave/7.2.0/liboctgui.so.8 is empty, not checked.
ldconfig: File /usr/lib/octave/7.2.0/liboctave.so.9 is empty, not checked.
ldconfig: File /usr/lib/octave/7.2.0/liboctinterp.so.10.0.0 is empty, not checked.
ldconfig: File /usr/lib/octave/7.2.0/liboctinterp.so.10 is empty, not checked.
ldconfig: File /usr/lib/octave/7.2.0/liboctave.so.9.0.0 is empty, not checked.
ldconfig: File /usr/lib/octave/7.2.0/liboctgui.so.8.0.0 is empty, not checked.
ldconfig: File /usr/lib/octave/7.2.0/liboctave.so is empty, not checked.
ldconfig: File /usr/lib/octave/7.2.0/liboctgui.so is empty, not checked.
ldconfig: File /usr/lib/octave/7.2.0/liboctinterp.so is empty, not checked.
ldconfig: File /usr/lib/libpoppler-qt5.so is empty, not checked.
ldconfig: File /usr/lib/libsndio.so.7.0 is empty, not checked.
ldconfig: File /usr/lib/libostree-1.so.1.0.0 is empty, not checked.
ldconfig: File /usr/lib/libnetsnmp.so.40 is empty, not checked.
ldconfig: File /usr/lib/libGraphicsMagick.so.3.24.0 is empty, not checked.
ldconfig: File /usr/lib/libwavpack.so.1.2.4 is empty, not checked.
ldconfig: File /usr/lib/libpoppler-qt5.so.1 is empty, not checked.
ldconfig: File /usr/lib/libWPEBackend-fdo-1.0.so.1 is empty, not checked.
ldconfig: File /usr/lib/libges-1.0.so.0.cache is empty, not checked.
ldconfig: File /usr/lib/libnetsnmp.so.40.1.0 is empty, not checked.
ldconfig: File /usr/lib/libusbredirhost.so.1 is empty, not checked.
ldconfig: File /usr/lib/libnetsnmphelpers.so.40.1.0 is empty, not checked.
ldconfig: File /usr/lib/libusbredirparser.so.1.2.1 is empty, not checked.
ldconfig: File /usr/lib/libusbredirhost.so.1.0.3 is empty, not checked.
ldconfig: File /usr/lib/libXpm.so.4.11.0 is empty, not checked.
ldconfig: File /usr/lib/libgupnp-av-1.0.so is empty, not checked.
ldconfig: File /usr/lib/libgmock.so.1.11.0 is empty, not checked.
ldconfig: File /usr/lib/libgupnp-av-1.0.so.3.14.1 is empty, not checked.
ldconfig: File /usr/lib/libGraphicsMagickWand.so.2.9.7 is empty, not checked.
ldconfig: File /usr/lib/libnetsnmphelpers.so.40 is empty, not checked.
ldconfig: File /usr/lib/libGraphicsMagick++.so.12.6.0 is empty, not checked.
ldconfig: File /usr/lib/libsnmp.so.40 is empty, not checked.
ldconfig: File /usr/lib/libvulkan_radeon.so is empty, not checked.
ldconfig: File /usr/lib/libusbredirhost.so is empty, not checked.
ldconfig: File /usr/lib/libSDL2_image-2.0.so.0 is empty, not checked.
ldconfig: File /usr/lib/libunbound.so.8 is empty, not checked.
ldconfig: File /usr/lib/libvulkan_intel.so is empty, not checked.
ldconfig: File /usr/lib/libSDL2_image.so is empty, not checked.
ldconfig: File /usr/lib/libnetsnmpagent.so is empty, not checked.
ldconfig: File /usr/lib/libhunspell-1.7.so.0 is empty, not checked.
ldconfig: File /usr/lib/libSDL2_image-2.0.so.0.600.1 is empty, not checked.
ldconfig: File /usr/lib/libtumbler-1.so.0 is empty, not checked.
ldconfig: File /usr/lib/libpoppler-glib.so.8.24.0 is empty, not checked.
ldconfig: File /usr/lib/libgtest.so.1.11.0 is empty, not checked.
ldconfig: File /usr/lib/libnetsnmpmibs.so.40.1.0 is empty, not checked.
ldconfig: File /usr/lib/libhunspell.so is empty, not checked.
ldconfig: File /usr/lib/libGraphicsMagick++.so is empty, not checked.
ldconfig: File /usr/lib/libWPEBackend-fdo-1.0.so is empty, not checked.
ldconfig: File /usr/lib/libGraphicsMagick.so.3 is empty, not checked.
ldconfig: File /usr/lib/libsnmp.so is empty, not checked.
ldconfig: File /usr/lib/libGraphicsMagickWand.so is empty, not checked.
ldconfig: File /usr/lib/libGraphicsMagick++.so.12 is empty, not checked.
ldconfig: File /usr/lib/libgtest_main.so.1.11.0 is empty, not checked.
ldconfig: File /usr/lib/libusbredirparser.so is empty, not checked.
ldconfig: File /usr/lib/libunbound.so is empty, not checked.
ldconfig: File /usr/lib/libpoppler-glib.so.8 is empty, not checked.
ldconfig: File /usr/lib/libnetsnmptrapd.so.40.1.0 is empty, not checked.
ldconfig: File /usr/lib/libsndio.so.7.2 is empty, not checked.
ldconfig: File /usr/lib/libsndio.so is empty, not checked.
ldconfig: File /usr/lib/libnetsnmphelpers.so is empty, not checked.
ldconfig: File /usr/lib/libtumbler-1.so.0.0.0 is empty, not checked.
ldconfig: File /usr/lib/libwavpack.so is empty, not checked.
ldconfig: File /usr/lib/libnetsnmptrapd.so is empty, not checked.
ldconfig: File /usr/lib/libnetsnmpmibs.so is empty, not checked.
ldconfig: File /usr/lib/libostree-1.so is empty, not checked.
ldconfig: File /usr/lib/libostree-1.so.1 is empty, not checked.
ldconfig: File /usr/lib/libsnmp.so.40.1.0 is empty, not checked.
ldconfig: File /usr/lib/libGraphicsMagick.so is empty, not checked.
ldconfig: File /usr/lib/libpoppler-glib.so is empty, not checked.
ldconfig: File /usr/lib/libgupnp-av-1.0.so.3 is empty, not checked.
ldconfig: File /usr/lib/libnetsnmpagent.so.40.1.0 is empty, not checked.
ldconfig: File /usr/lib/libtumbler-1.so is empty, not checked.
ldconfig: File /usr/lib/libnetsnmptrapd.so.40 is empty, not checked.
ldconfig: File /usr/lib/libnetsnmpmibs.so.40 is empty, not checked.
ldconfig: File /usr/lib/libunbound.so.8.1.18 is empty, not checked.
ldconfig: File /usr/lib/libgmock_main.so.1.11.0 is empty, not checked.
ldconfig: File /usr/lib/libhunspell-1.7.so is empty, not checked.
ldconfig: File /usr/lib/libges-1.0.so.0.2002.0 is empty, not checked.
ldconfig: File /usr/lib/libXpm.so.4 is empty, not checked.
ldconfig: File /usr/lib/libXpm.so is empty, not checked.
ldconfig: File /usr/lib/libwavpack.so.1 is empty, not checked.
ldconfig: File /usr/lib/libWPEBackend-fdo-1.0.so.1.8.1 is empty, not checked.
ldconfig: File /usr/lib/libpoppler-qt5.so.1.31.0 is empty, not checked.
ldconfig: File /usr/lib/libusbredirparser.so.1 is empty, not checked.
ldconfig: File /usr/lib/libGraphicsMagickWand.so.2 is empty, not checked.
ldconfig: File /usr/lib/libnetsnmpagent.so.40 is empty, not checked.
ldconfig: File /usr/lib/libsndio.so.7 is empty, not checked.
ldconfig: File /usr/lib/libnetsnmp.so is empty, not checked.
ldconfig: File /usr/lib/libhunspell-1.7.so.0.0.1 is empty, not checked.

Hi @artinzareie, and welcome!

Are you familiar with chroot? Because I think that would be the best/easiest way to fix this, if what I want to suggest is a fix for it.

1 Like

I am familiar, and also I have kde as a rescue to access my files and network, so I think it’s not a problem

Cool, then I suggest the following:

  1. Boot into a live environment, but with a relatively new ISO, one with a kernel that’s not EOL. 5.4, 5.10 or 5.15 would work well, seeing as they’re the latest LTS versions.
  2. Enter a chroot environment.
  3. From the chroot environment, run an upgrade forcing replacing of all files:
pamac upgrade --enable-downgrade --aur --devel

This should sync everything again. It doesn’t touch your $HOME directory’s files though, so if the problem is there, it’d persist after this.

If there are no errors, it’s safe to reboot. If, however, there were errors, do not reboot, rather post them here from the live environment.


How to chroot

  1. Ensure you’ve got a relatively new ISO or at least one with an LTS kernel.

  2. Write/copy/dd the ISO to a USB thumb drive.

  3. When done, boot with the above mentioned USB thumb drive into the live environment.

  4. Once booted, open a terminal and enter the following command to enter the chroot encironment:

manjaro-chroot -a
  1. If you have more than one Linux installation, select the correct one to use from the list provided.

When done, you should now be in the chroot environment.

But, be careful, as you’re now in an actual root environment on your computer, so any changes you make will persist after a restart.

2 Likes

Hello again, I just tested this method, but still nothing happens. Actually pamac is completely broken and chroot doesn’t change it anyways

do you want to actually fix it, since you didnt respond for 9 days?
can you boot normally into your system?

YEah actually I didn’t have access to my system, anyways, I can boot to my system, and kde also works, but pamac and gnome and a lot of packages doesn’t

ok so provide first output of what you uninstalled:
cat /var/log/pacman.log | grep removed | tail -40