You are not logged in.

#1 2018-06-05 06:58:33

Cinbu
Member
Registered: 2016-12-27
Posts: 29

[Solved] libmozjs-52.so.0 not reinstalled after removal

I think I messed something up in the last update.
Before updating I had to remove /usr/lib/libmozjs-52.so.0. So I thought I should also remove the symlink on it in the same directory. Apparently that was wrong. Now the polkit service is not working anymore as it can't find the library anymore:

$ systemctl status polkit
● polkit.service - Authorization Manager
   Loaded: loaded (/usr/lib/systemd/system/polkit.service; static; vendor preset: disabled)
   Active: failed (Result: exit-code) since Tue 2018-06-05 08:48:34 CEST; 13s ago
     Docs: man:polkit(8)
  Process: 16604 ExecStart=/usr/lib/polkit-1/polkitd --no-debug (code=exited, status=127)
 Main PID: 16604 (code=exited, status=127)

Jun 05 08:48:34 yogArch systemd[1]: Starting Authorization Manager...
Jun 05 08:48:34 yogArch polkitd[16604]: /usr/lib/polkit-1/polkitd: error while loading shared libraries: >
Jun 05 08:48:34 yogArch systemd[1]: polkit.service: Main process exited, code=exited, status=127/n/a
Jun 05 08:48:34 yogArch systemd[1]: polkit.service: Failed with result 'exit-code'.
Jun 05 08:48:34 yogArch systemd[1]: Failed to start Authorization Manager.

I checked the /usr/lib directory, and there is no libmozjs version anymore. How can I reinstall it?

Last edited by Cinbu (2018-06-05 07:48:44)

Offline

#2 2018-06-05 07:02:27

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [Solved] libmozjs-52.so.0 not reinstalled after removal

┌─[Shiv ~]
└─╼ pacman -Qo /usr/lib/libmozjs-52.so.0                                                                                                                      
/usr/lib/libmozjs-52.so.0 is owned by js52 52.7.3-2

Seeing you removed it, you would:

pacman -Fo /usr/lib/libmozjs-52.so.0                                                                                                                      
usr/lib/libmozjs-52.so.0 is owned by extra/js52 52.7.3-2

Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2018-06-05 07:06:06

Cinbu
Member
Registered: 2016-12-27
Posts: 29

Re: [Solved] libmozjs-52.so.0 not reinstalled after removal

Thank you jason. I couldn't find the package that contained the library. After installing js52 everything works again.
Just out of curiosity, how could I have figured out the package containing libmozjs without the pacman -Qo command, since I couldn't have done that without having the file?

Offline

#4 2018-06-05 07:10:27

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [Solved] libmozjs-52.so.0 not reinstalled after removal

See my edit.

Please remember to mark your thread as [Solved] by editing your first post and prepending it to the title.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2020-10-24 19:00:16

alexzk
Member
Registered: 2014-11-02
Posts: 25

Re: [Solved] libmozjs-52.so.0 not reinstalled after removal

Sorry for necro, google pushed me here, in 2020 fix is:

pacman -S js52
sudo ln -s /usr/lib/libmozjs-52.so /usr/lib/libmozjs-52.so.0

Offline

#6 2020-10-24 19:04:03

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,738

Re: [Solved] libmozjs-52.so.0 not reinstalled after removal

Closing this old thread.

Offline

Board footer

Powered by FluxBB