Pamac Manager stuck updating for days

On the 15th, I saw there were some updates available for my computer. Mostly Flatpak stuff, a couple programs, and two AUR packages. I let the updates run and head out to the store. Usually the updating would be done in the amount of time I was gone. But when I came back, I saw that the updating was still going on. I wait some more and nothing changes. I go to bed and the next day still no change. This continued on and today, four days later, the computer is still stuck on updating. Right now, it looks like it finished building the files but it’s stuck on “Cleaning up…”.

I haven’t had anything like this happen to me before and I’m not sure what I’m supposed to do. I considered using System Monitor to force close Pamac Manager, but I don’t know if that would cause any problems. I have a few external hard drives, but for some reason the computer won’t register them at the moment, despite being detected just fine before the 15th.

Any suggestions?

What is the process thats hung?

Building an AUR package?

Which package?

It is likely you can cancel this operation.

Before reboot we can try to make sure … by using pacman;

sudo pacman -Syu

We may also want to look at your foreign packages (and possibly remove some);

pacman -Qmq

Here is the last few lines from the terminal output from Pamac Manager:

==> Tidying install...
  -> Removing libtool files...
  -> Purging unwanted files...
  -> Removing static library files...
  -> Stripping unneeded symbols from binaries and libraries...
  -> Compressing man and info pages...
==> Checking for packaging issues...
==> WARNING: Package contains reference to $srcdir
usr/lib/libshiboken2.cpython-312-x86_64-linux-gnu.so.5.15.16
==> Creating package "python-shiboken2"...
  -> Generating .PKGINFO file...
  -> Generating .BUILDINFO file...
  -> Generating .MTREE file...
  -> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: pyside2 5.15.16-1 (Sun 15 Dec 2024 12:36:45 PM EST)
==> Cleaning up...

I’ve run the Syu command and found that there are many more packages that have updates. These don’t show up in Pamac at the moment as it’s stuck on either Pyside2 or Python-Shiboken2 or both.

Here is the output for the Qmq command:

pacman -Qmq                                                    ✔ 
aiksaurus
canon-pixma-mg2500-complete
compiler-rt15
gtkmathview
jstest-gtk-git
kdelibs4support
kdesignerplugin
kemoticons
kfilemetadata5
khotkeys
khtml
kjs
kpeople5
kpeoplevcard
kquickcharts5
kross
krunner5
lib32-libva-vdpau-driver
libglade
libkcddb5
libots
manjaro-hotfixes
manjaro-settings-manager-kcm
minecraft-launcher
modemmanager-qt5
opencollada
openssl-1.0
pcsxr
plasma-simplemenu
pyside2
python-hid-parser
python-manjaro-sdk
python-pyrsistent
python-shiboken2
qgpgme-qt5
simplescreenrecorder
spectre-meltdown-checker
systemd-kcm
teamviewer
v86d
web-installer-url-handler
youtube-dl

Looks like you have a ton of deprecated (manjaro and plasma5 and other) packages.

sudo pacman -Rns web-installer-url-handler v86d systemd-kcm python-manjaro-sdk plasma-simplemenu manjaro-settings-manager-kcm manjaro-hotfixes lib32-libva-vdpau-driver khotkeys 

Those should all definitely be gone.

You may also want to try and remove as much old kf5 as possible;

sudo pacman -Run kf5

And same goes for orphans. To print them

pacman -Qdt

To remove them

sudo pacman -Rns $(pacman -Qdtq)

When finished review your foreign packages again. Remove any you dont need.

Then go for an update once more;

sudo pacman -Syu

We may wish to double check your foreign packages.
Really it should only be a handful you need, like teamviewer.
We can manually remove any that are not needed.

(show again pacman -Qmq ?)

3 Likes

Before I use those commands, should I try to force close Pamac Manager or is it safe to run the commands while Pamac is still stuck updating Pyside2?

I would exit pamac. It seems hung.

I also think you probably dont need pyside2 … that will be handled by orphan removal if true.

We can likewise cleanup the build directory whenever pamac has been closed with

pamac clean -b

PS.

While we wait on the next development … I’ll also mention youtube-dl is defunct.
And yt-dlp is in the repos.

1 Like

Okay I was able to close Pamac and run the suggested commands. Here is the current output for Qmq:

pacman -Qmq                                                                                        ✔ 
canon-pixma-mg2500-complete
jstest-gtk-git
libglade
minecraft-launcher
pcsxr
simplescreenrecorder
spectre-meltdown-checker
teamviewer

1 Like

That looks pretty good.
I dont think I have any further suggestions for those outside of your own needs.

If you are synced and happy with your remaining AUR packages then you can follow up with

pamac update -a

to try and update those AUR packages.

Note: Sometimes software needs a rebuild against current system libraries. This can be necessary even if the package itself does not have an update. This means from time to time you will need to rebuild those AUR packages. If using pamac its just pamac build $package again.

And to be double sure you have initram and grub updated (as in settings synced) and all do these things;

sudo mkinitcpio -P && sudo update-grub

Note: Manjaro provides a script install-grub which can be used to truly upgrade the grub installed to your boot partition. update-grub only syncs settings. The package also includes hooks to do this as needed in the future. If you opt to install this package (sudo pacman -Syu install-grub) just run once sudo install-grub.

I think you should be ok to reboot now. :slight_smile:

3 Likes

Thanks for the help! The computer was successfully updated and there’s been no issues with functionality.

3 Likes

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