[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: systemctl reboot fails (doesn't reboot)



On 3/2/19, tomas@tuxteam.de <tomas@tuxteam.de> wrote:
> On Fri, Mar 01, 2019 at 06:38:33PM -0300, riveravaldez wrote:
>> Hi, I'm on debian-testing (updated), and found this issue:
>
> I have very little experience with systemd, but...
>
>> $ systemctl reboot
>> Failed to set wall message, ignoring: The name
>> org.freedesktop.PolicyKit1 was not provided by any .service files
>
> ...as other posts in this thread already seem to hint at, something
> in your PolicyKit seems broken: and as PolicyKit is the machinery
> which has to decide whether you, as a "normal user" are allowed to
> reboot...
>
>> Failed to reboot system via logind: The name
>
> ...no decision can be taken, so you aren't allowed.
>
> I'd try reinstalling whatever PolicyKit packages seem relevant.
> Perhaps start trying to locate whatever file hides behind the
> ".service file" which is supposed to "provide" the "name"
> "org.freedesktop.PolicyKit1" (goodness! the jargon alone is for
> me reason enough to stay clear of that stuff -- but I disgress).
>
> As a starting point, apt-file search [1] is usually a good help:
>
>   tomas@trotzki:~$ apt-file search PolicyKit1
>   policykit-1: /etc/dbus-1/system.d/org.freedesktop.PolicyKit1.conf
>   policykit-1:
> /usr/share/dbus-1/system-services/org.freedesktop.PolicyKit1.service
>   policykit-1-doc:
> /usr/share/doc/policykit-1-doc/html/eggdbus-interface-org.freedesktop.PolicyKit1.AuthenticationAgent.html
>   policykit-1-doc:
> /usr/share/doc/policykit-1-doc/html/eggdbus-interface-org.freedesktop.PolicyKit1.Authority.html
>
> The second line looks like right. So if I were you, I'd try
> to reinstall the package "policykit-1", e.g. by issuing:
>
>   sudo apt-get install --reinstall policykit-1
>
> or whatever you favourite reinstallation method is.

Thanks a lot, tomás!

Indeed, all hints point to PolicyKit (package: policykit-1)

Because of the errors on systemd I have it marked to hold, and I
suppose some package updated and now I have an inconsistency, see:

$ sudo apt-get --reinstall install policykit-1
Reading list of packages ... Done
Creating dependency tree
Reading the status information ... Done
Can't instal some package. This may mean that you asked for an
impossible situation or, if you are using the distribution unstable,
that some necessary packages have not yet been created or have been
removed from «Incoming».
The following information can help resolve the situation:

The following packages have unfulfilled dependencies:
  policykit-1: It depends: libpam-systemd but it will not be installed
  systemd: It depends: libsystemd0 (= 240-4) but 240-6 is going to be installed
            Recommend: libpam-systemd but it will not be installed
E: Error, pkgProblemResolver :: Resolve generated cuts, this may be
due to retained packets.


So, I guess I could try downgrading policykit-1 until the situation
gets fixed, but I don't know how.

Which would be the proper/best way to downgrade policykit-1 (or any
other package necessary) to the last working version?

It seems like I don't have the previous version available from repositories...

$ apt-cache policy policykit-1
policykit-1:
  Instalados: (ninguno)
  Candidato:  0.105-25
  Tabla de versión:
     0.105-25 500
        500 http://deb.debian.org/debian testing/main amd64 Packages
        100 /var/lib/dpkg/status

$ apt-cache showpkg policykit-1
Package: policykit-1
Versions:
0.105-25 (/var/lib/apt/lists/deb.debian.org_debian_dists_testing_main_binary-amd64_Packages)
(/var/lib/dpkg/status)
 Description Language:
                 File:
/var/lib/apt/lists/deb.debian.org_debian_dists_testing_main_binary-amd64_Packages
                  MD5: 233f6ea057dc90084c0e92b57d21a7a8
 Description Language:
                 File:
/var/lib/apt/lists/deb.debian.org_debian_dists_testing_main_binary-i386_Packages
                  MD5: 233f6ea057dc90084c0e92b57d21a7a8
 Description Language: es
                 File:
/var/lib/apt/lists/deb.debian.org_debian_dists_testing_main_i18n_Translation-es
                  MD5: 233f6ea057dc90084c0e92b57d21a7a8
 Description Language: en
                 File:
/var/lib/apt/lists/deb.debian.org_debian_dists_testing_main_i18n_Translation-en
                  MD5: 233f6ea057dc90084c0e92b57d21a7a8


Reverse Depends:
  tuned,policykit-1 0.105-17~
  udisks2,policykit-1
  systemd,policykit-1
  policykit-1:i386,policykit-1
  dbus-user-session:i386,policykit-1 0.105-12~
  zulupolkit,policykit-1
  zoneminder,policykit-1
  wicd-gtk,policykit-1
  veyon-master,policykit-1
  upower,policykit-1
  ukui-power-manager,policykit-1
  ukui-polkit,policykit-1
  udisks2,policykit-1
  gdm3,policykit-1 0.105-5~
  tails-installer,policykit-1
  systemd,policykit-1
  synaptic,policykit-1
  python-jarabe,policykit-1
  policycoreutils-gui,policykit-1
  policycoreutils-dbus,policykit-1
  gameconqueror,policykit-1
  rtkit,policykit-1
  realmd,policykit-1
  polkit-kde-agent-1,policykit-1
  policykit-1-gnome,policykit-1
  peony-admin,policykit-1
  packagekit,policykit-1
  zenmap,policykit-1
  network-manager,policykit-1
  needrestart-session,policykit-1
  modem-manager-gui,policykit-1
  mate-power-manager,policykit-1
  mate-polkit,policykit-1
  lxsession-logout,policykit-1
  lxpolkit,policykit-1
  lxde-core,policykit-1
  linssid,policykit-1
  lightdm-gtk-greeter-settings,policykit-1
  lightdm-gtk-greeter,policykit-1
  libvirt-dbus,policykit-1
  libvirt-daemon-system,policykit-1
  libgsecuredelete0,policykit-1
  isc-dhcp-server,policykit-1
  hplip,policykit-1
  hotspot,policykit-1
  guymager,policykit-1
  guidedog,policykit-1
  gufw,policykit-1
  grub-customizer,policykit-1
  gnunet-gtk,policykit-1
  gnome-system-log,policykit-1
  gnome-initial-setup,policykit-1 0.103
  gnome-control-center,policykit-1
  gnome-color-manager,policykit-1
  dbus-user-session,policykit-1 0.105-12~
  gdebi,policykit-1
  galternatives,policykit-1
  fwupd-tests,policykit-1
  fprintd,policykit-1
  flatpak,policykit-1
  firewalld,policykit-1
  ettercap-graphical,policykit-1
  elogind,policykit-1
  deja-dup,policykit-1
  gddccontrol,policykit-1
  colord,policykit-1 0.103
  arduino,policykit-1
  cockpit-system,policykit-1
  caja-admin,policykit-1
  brltty,policykit-1
  blueman,policykit-1
  bleachbit,policykit-1
  bilibop-rules,policykit-1
  backintime-qt4,policykit-1
Dependencies:
0.105-25 - dbus (0 (null)) libpam-systemd (0 (null)) libc6 (2 2.7)
libglib2.0-0 (2 2.37.3) libpam0g (2 0.99.7.1) libpolkit-agent-1-0 (5
0.105-25) libpolkit-backend-1-0 (5 0.105-25) libpolkit-gobject-1-0 (5
0.105-25) policykit-1:i386 (32 (null))
Provides:
0.105-25 - policykit-1:i386 (= 0.105-25)
Reverse Provides:
policykit-1:i386 0.105-25 (= 0.105-25)


Should I download a previous version from here [1] and try with dpkg?

I really appreciate any hint anybody can give me.

Thanks again!

[1] https://packages.debian.org/search?keywords=policykit-1&searchon=names&suite=all&section=all


Reply to: