How can I install Policykit with System V?












1















I created a minimal install on my Raspbian Raspberry Pi running Debian Jessie. Among other things, I removed libx11-.* and dependencies, which included removal of policykit-1. I'm trying to reinstall policykit-1, but hit the following errors.



$ sudo apt-get install policykit-1
...
The following packages will be REMOVED:
sysvinit-core
...
dpkg: sysvinit-core: dependency problems, but removing anyway as you requested:
sysvinit depends on sysvinit-core | upstart | systemd-sysv; however:
Package sysvinit-core is to be removed.
Package upstart is not installed.
Package systemd-sysv is not installed.


After this, booting now hangs, and I have to restore the SD card to an image before this install command. (N.B. booting worked fine before the creation of the minimal install, and after the removal of libx11-.* and dependencies.) How can I reinstall policykit-1?





Edit



This worked for a little while, but no longer.



There is a long thread here discussing how policykit-1 can break your system in Debian. I didn't read it all, but this (closed) bug report suggests that systemd-shim might be helpful.



Running the following command allowed me to reboot the computer, although I'm unsure as to how functional policykit-1 is.



sudo apt-get install systemd-shim policykit-1


However, a recent update to Debian Jessie prevents this from working. policykit-1 was uninstalled after sudo apt-get dist-upgrade, and running this command still asks you to uninstall sysvinit-core.










share|improve this question
















bumped to the homepage by Community 13 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
















  • Please provide the output of apt-rdepends -r policykit-1

    – eyoung100
    Jul 17 '15 at 0:33






  • 1





    If that doesn't work try: apt-cache --installed rdepends policykit-1

    – eyoung100
    Jul 17 '15 at 0:38











  • @eyoung100 Only the seconds works, with udisks libpolkit-gobject-1-0

    – Sparhawk
    Jul 20 '15 at 14:21











  • My hunch here is that the packages need to be reinstalled in the proper order. Remove udisks and libpolkit-gobject then reinstall policykit-1. Policykit-1 should reinstall sysvinit-core and sysvinit. You may need to do this in rescue mode, as X may no longer work.

    – eyoung100
    Jul 20 '15 at 16:31











  • @eyoung100 As per the question, I don't have X installed. I also don't understand how the order of installation might help here, as (AFAIK) there are no conflicting files installed across the packages. Also, as per the question, policykit-1 seems to require the removal of sysvinit-core, so I'm not sure why we'd expect it to reinstall sysvinit-core instead? (It's non-trivial to restore my system when it breaks, so I'd prefer more certain answers.)

    – Sparhawk
    Jul 25 '15 at 4:54
















1















I created a minimal install on my Raspbian Raspberry Pi running Debian Jessie. Among other things, I removed libx11-.* and dependencies, which included removal of policykit-1. I'm trying to reinstall policykit-1, but hit the following errors.



$ sudo apt-get install policykit-1
...
The following packages will be REMOVED:
sysvinit-core
...
dpkg: sysvinit-core: dependency problems, but removing anyway as you requested:
sysvinit depends on sysvinit-core | upstart | systemd-sysv; however:
Package sysvinit-core is to be removed.
Package upstart is not installed.
Package systemd-sysv is not installed.


After this, booting now hangs, and I have to restore the SD card to an image before this install command. (N.B. booting worked fine before the creation of the minimal install, and after the removal of libx11-.* and dependencies.) How can I reinstall policykit-1?





Edit



This worked for a little while, but no longer.



There is a long thread here discussing how policykit-1 can break your system in Debian. I didn't read it all, but this (closed) bug report suggests that systemd-shim might be helpful.



Running the following command allowed me to reboot the computer, although I'm unsure as to how functional policykit-1 is.



sudo apt-get install systemd-shim policykit-1


However, a recent update to Debian Jessie prevents this from working. policykit-1 was uninstalled after sudo apt-get dist-upgrade, and running this command still asks you to uninstall sysvinit-core.










share|improve this question
















bumped to the homepage by Community 13 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
















  • Please provide the output of apt-rdepends -r policykit-1

    – eyoung100
    Jul 17 '15 at 0:33






  • 1





    If that doesn't work try: apt-cache --installed rdepends policykit-1

    – eyoung100
    Jul 17 '15 at 0:38











  • @eyoung100 Only the seconds works, with udisks libpolkit-gobject-1-0

    – Sparhawk
    Jul 20 '15 at 14:21











  • My hunch here is that the packages need to be reinstalled in the proper order. Remove udisks and libpolkit-gobject then reinstall policykit-1. Policykit-1 should reinstall sysvinit-core and sysvinit. You may need to do this in rescue mode, as X may no longer work.

    – eyoung100
    Jul 20 '15 at 16:31











  • @eyoung100 As per the question, I don't have X installed. I also don't understand how the order of installation might help here, as (AFAIK) there are no conflicting files installed across the packages. Also, as per the question, policykit-1 seems to require the removal of sysvinit-core, so I'm not sure why we'd expect it to reinstall sysvinit-core instead? (It's non-trivial to restore my system when it breaks, so I'd prefer more certain answers.)

    – Sparhawk
    Jul 25 '15 at 4:54














1












1








1








I created a minimal install on my Raspbian Raspberry Pi running Debian Jessie. Among other things, I removed libx11-.* and dependencies, which included removal of policykit-1. I'm trying to reinstall policykit-1, but hit the following errors.



$ sudo apt-get install policykit-1
...
The following packages will be REMOVED:
sysvinit-core
...
dpkg: sysvinit-core: dependency problems, but removing anyway as you requested:
sysvinit depends on sysvinit-core | upstart | systemd-sysv; however:
Package sysvinit-core is to be removed.
Package upstart is not installed.
Package systemd-sysv is not installed.


After this, booting now hangs, and I have to restore the SD card to an image before this install command. (N.B. booting worked fine before the creation of the minimal install, and after the removal of libx11-.* and dependencies.) How can I reinstall policykit-1?





Edit



This worked for a little while, but no longer.



There is a long thread here discussing how policykit-1 can break your system in Debian. I didn't read it all, but this (closed) bug report suggests that systemd-shim might be helpful.



Running the following command allowed me to reboot the computer, although I'm unsure as to how functional policykit-1 is.



sudo apt-get install systemd-shim policykit-1


However, a recent update to Debian Jessie prevents this from working. policykit-1 was uninstalled after sudo apt-get dist-upgrade, and running this command still asks you to uninstall sysvinit-core.










share|improve this question
















I created a minimal install on my Raspbian Raspberry Pi running Debian Jessie. Among other things, I removed libx11-.* and dependencies, which included removal of policykit-1. I'm trying to reinstall policykit-1, but hit the following errors.



$ sudo apt-get install policykit-1
...
The following packages will be REMOVED:
sysvinit-core
...
dpkg: sysvinit-core: dependency problems, but removing anyway as you requested:
sysvinit depends on sysvinit-core | upstart | systemd-sysv; however:
Package sysvinit-core is to be removed.
Package upstart is not installed.
Package systemd-sysv is not installed.


After this, booting now hangs, and I have to restore the SD card to an image before this install command. (N.B. booting worked fine before the creation of the minimal install, and after the removal of libx11-.* and dependencies.) How can I reinstall policykit-1?





Edit



This worked for a little while, but no longer.



There is a long thread here discussing how policykit-1 can break your system in Debian. I didn't read it all, but this (closed) bug report suggests that systemd-shim might be helpful.



Running the following command allowed me to reboot the computer, although I'm unsure as to how functional policykit-1 is.



sudo apt-get install systemd-shim policykit-1


However, a recent update to Debian Jessie prevents this from working. policykit-1 was uninstalled after sudo apt-get dist-upgrade, and running this command still asks you to uninstall sysvinit-core.







debian raspbian sysvinit polkit






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jul 24 '14 at 6:49







Sparhawk

















asked Jul 15 '14 at 10:38









SparhawkSparhawk

9,59864093




9,59864093





bumped to the homepage by Community 13 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







bumped to the homepage by Community 13 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.















  • Please provide the output of apt-rdepends -r policykit-1

    – eyoung100
    Jul 17 '15 at 0:33






  • 1





    If that doesn't work try: apt-cache --installed rdepends policykit-1

    – eyoung100
    Jul 17 '15 at 0:38











  • @eyoung100 Only the seconds works, with udisks libpolkit-gobject-1-0

    – Sparhawk
    Jul 20 '15 at 14:21











  • My hunch here is that the packages need to be reinstalled in the proper order. Remove udisks and libpolkit-gobject then reinstall policykit-1. Policykit-1 should reinstall sysvinit-core and sysvinit. You may need to do this in rescue mode, as X may no longer work.

    – eyoung100
    Jul 20 '15 at 16:31











  • @eyoung100 As per the question, I don't have X installed. I also don't understand how the order of installation might help here, as (AFAIK) there are no conflicting files installed across the packages. Also, as per the question, policykit-1 seems to require the removal of sysvinit-core, so I'm not sure why we'd expect it to reinstall sysvinit-core instead? (It's non-trivial to restore my system when it breaks, so I'd prefer more certain answers.)

    – Sparhawk
    Jul 25 '15 at 4:54



















  • Please provide the output of apt-rdepends -r policykit-1

    – eyoung100
    Jul 17 '15 at 0:33






  • 1





    If that doesn't work try: apt-cache --installed rdepends policykit-1

    – eyoung100
    Jul 17 '15 at 0:38











  • @eyoung100 Only the seconds works, with udisks libpolkit-gobject-1-0

    – Sparhawk
    Jul 20 '15 at 14:21











  • My hunch here is that the packages need to be reinstalled in the proper order. Remove udisks and libpolkit-gobject then reinstall policykit-1. Policykit-1 should reinstall sysvinit-core and sysvinit. You may need to do this in rescue mode, as X may no longer work.

    – eyoung100
    Jul 20 '15 at 16:31











  • @eyoung100 As per the question, I don't have X installed. I also don't understand how the order of installation might help here, as (AFAIK) there are no conflicting files installed across the packages. Also, as per the question, policykit-1 seems to require the removal of sysvinit-core, so I'm not sure why we'd expect it to reinstall sysvinit-core instead? (It's non-trivial to restore my system when it breaks, so I'd prefer more certain answers.)

    – Sparhawk
    Jul 25 '15 at 4:54

















Please provide the output of apt-rdepends -r policykit-1

– eyoung100
Jul 17 '15 at 0:33





Please provide the output of apt-rdepends -r policykit-1

– eyoung100
Jul 17 '15 at 0:33




1




1





If that doesn't work try: apt-cache --installed rdepends policykit-1

– eyoung100
Jul 17 '15 at 0:38





If that doesn't work try: apt-cache --installed rdepends policykit-1

– eyoung100
Jul 17 '15 at 0:38













@eyoung100 Only the seconds works, with udisks libpolkit-gobject-1-0

– Sparhawk
Jul 20 '15 at 14:21





@eyoung100 Only the seconds works, with udisks libpolkit-gobject-1-0

– Sparhawk
Jul 20 '15 at 14:21













My hunch here is that the packages need to be reinstalled in the proper order. Remove udisks and libpolkit-gobject then reinstall policykit-1. Policykit-1 should reinstall sysvinit-core and sysvinit. You may need to do this in rescue mode, as X may no longer work.

– eyoung100
Jul 20 '15 at 16:31





My hunch here is that the packages need to be reinstalled in the proper order. Remove udisks and libpolkit-gobject then reinstall policykit-1. Policykit-1 should reinstall sysvinit-core and sysvinit. You may need to do this in rescue mode, as X may no longer work.

– eyoung100
Jul 20 '15 at 16:31













@eyoung100 As per the question, I don't have X installed. I also don't understand how the order of installation might help here, as (AFAIK) there are no conflicting files installed across the packages. Also, as per the question, policykit-1 seems to require the removal of sysvinit-core, so I'm not sure why we'd expect it to reinstall sysvinit-core instead? (It's non-trivial to restore my system when it breaks, so I'd prefer more certain answers.)

– Sparhawk
Jul 25 '15 at 4:54





@eyoung100 As per the question, I don't have X installed. I also don't understand how the order of installation might help here, as (AFAIK) there are no conflicting files installed across the packages. Also, as per the question, policykit-1 seems to require the removal of sysvinit-core, so I'm not sure why we'd expect it to reinstall sysvinit-core instead? (It's non-trivial to restore my system when it breaks, so I'd prefer more certain answers.)

– Sparhawk
Jul 25 '15 at 4:54










1 Answer
1






active

oldest

votes


















0














For more recent readers:



Devuan is a distribution which uses sysvinit by default and includes a policykit-1 package that does not depend on systemd. It is mostly compatible with Debian in nearly every respect that does not deal with the init system.






share|improve this answer























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "106"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f144617%2fhow-can-i-install-policykit-with-system-v%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    For more recent readers:



    Devuan is a distribution which uses sysvinit by default and includes a policykit-1 package that does not depend on systemd. It is mostly compatible with Debian in nearly every respect that does not deal with the init system.






    share|improve this answer




























      0














      For more recent readers:



      Devuan is a distribution which uses sysvinit by default and includes a policykit-1 package that does not depend on systemd. It is mostly compatible with Debian in nearly every respect that does not deal with the init system.






      share|improve this answer


























        0












        0








        0







        For more recent readers:



        Devuan is a distribution which uses sysvinit by default and includes a policykit-1 package that does not depend on systemd. It is mostly compatible with Debian in nearly every respect that does not deal with the init system.






        share|improve this answer













        For more recent readers:



        Devuan is a distribution which uses sysvinit by default and includes a policykit-1 package that does not depend on systemd. It is mostly compatible with Debian in nearly every respect that does not deal with the init system.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Jan 7 at 4:09









        novicenovice

        939




        939






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Unix & Linux Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f144617%2fhow-can-i-install-policykit-with-system-v%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Loup dans la culture

            How to solve the problem of ntp “Unable to contact time server” from KDE?

            ASUS Zenbook UX433/UX333 — Configure Touchpad-embedded numpad on Linux