Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login

    duetpimanagementplugin - how to reinstall 3.4b7

    Scheduled Pinned Locked Moved Solved
    Beta Firmware
    2
    6
    183
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • jay_s_ukundefined
      jay_s_uk
      last edited by

      Accidentally uninstalled the duetpimanagementplugin through DWC.
      Now I can't remove it or reinstall it. Anyone got any tips?
      This is the error

      sudo apt-get --purge autoremove duetpimanagementplugin
      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      The following packages will be REMOVED:
        duetpimanagementplugin*
      0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
      After this operation, 0 B of additional disk space will be used.
      Do you want to continue? [Y/n] y
      (Reading database ... 128946 files and directories currently installed.)
      Removing duetpimanagementplugin (3.4-b7) ...
      chmod: cannot access '/opt/dsf/plugins/DuetPiManagementPlugin.json': No such file or directory
      dpkg: error processing package duetpimanagementplugin (--remove):
       installed duetpimanagementplugin package pre-removal script subprocess returned error exit status 1
      chown: cannot access '/opt/dsf/plugins/DuetPiManagementPlugin.json': No such file or directory
      chmod: cannot access '/opt/dsf/plugins/DuetPiManagementPlugin.json': No such file or directory
      chown: cannot access '/opt/dsf/plugins/DuetPiManagementPlugin': No such file or directory
      chmod: cannot access '/opt/dsf/plugins/DuetPiManagementPlugin': No such file or directory
      Errors were encountered while processing:
       duetpimanagementplugin
      E: Sub-process /usr/bin/dpkg returned an error code (1)
      

      Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

      chrishammundefined 1 Reply Last reply Reply Quote 0
      • chrishammundefined
        chrishamm administrators @jay_s_uk
        last edited by

        @jay_s_uk apt install --reinstall duetpimanagementplugin should work.

        Duet software engineer

        jay_s_ukundefined 1 Reply Last reply Reply Quote 0
        • jay_s_ukundefined
          jay_s_uk @chrishamm
          last edited by

          @chrishamm said in duetpimanagementplugin - how to reinstall 3.4b7:

          apt install --reinstall duetpimanagementplugin

          unfortunately not

          sudo apt install --reinstall duetpimanagementplugin
          Reading package lists... Done
          Building dependency tree
          Reading state information... Done
          0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
          Need to get 0 B/4,896 kB of archives.
          After this operation, 0 B of additional disk space will be used.
          (Reading database ... 128946 files and directories currently installed.)
          Preparing to unpack .../duetpimanagementplugin_3.4-b7_armhf.deb ...
          chmod: cannot access '/opt/dsf/plugins/DuetPiManagementPlugin.json': No such file or directory
          dpkg: warning: old duetpimanagementplugin package pre-removal script subprocess returned error exit status 1
          dpkg: trying script from the new package instead ...
          chmod: cannot access '/opt/dsf/plugins/DuetPiManagementPlugin.json': No such file or directory
          dpkg: error processing archive /var/cache/apt/archives/duetpimanagementplugin_3.4-b7_armhf.deb (--unpack):
           new duetpimanagementplugin package pre-removal script subprocess returned error exit status 1
          chown: cannot access '/opt/dsf/plugins/DuetPiManagementPlugin.json': No such file or directory
          chmod: cannot access '/opt/dsf/plugins/DuetPiManagementPlugin.json': No such file or directory
          chown: cannot access '/opt/dsf/plugins/DuetPiManagementPlugin': No such file or directory
          chmod: cannot access '/opt/dsf/plugins/DuetPiManagementPlugin': No such file or directory
          Errors were encountered while processing:
           /var/cache/apt/archives/duetpimanagementplugin_3.4-b7_armhf.deb
          E: Sub-process /usr/bin/dpkg returned an error code (1)
          

          Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

          chrishammundefined 1 Reply Last reply Reply Quote 0
          • chrishammundefined
            chrishamm administrators @jay_s_uk
            last edited by chrishamm

            @jay_s_uk Then run

            sudo touch /opt/dsf/plugins/DuetPiManagementPlugin.json
            sudo mkdir /opt/dsf/plugins/DuetPiManagementPlugin
            

            and try again

            Duet software engineer

            jay_s_ukundefined 1 Reply Last reply Reply Quote 0
            • jay_s_ukundefined
              jay_s_uk @chrishamm
              last edited by

              @chrishamm said in duetpimanagementplugin - how to reinstall 3.4b7:

              sudo touch /opt/dsf/plugins/DuetPiManagementPlugin.json sudo mkdir /opt/dsf/plugins/DuetPiManagementPlugin

              yes, that worked, thank you.
              might be worth preventing plugins installed through apt to not be uninstallable through DWC

              Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

              chrishammundefined 1 Reply Last reply Reply Quote 0
              • jay_s_ukundefined jay_s_uk marked this topic as a question
              • jay_s_ukundefined jay_s_uk has marked this topic as solved
              • chrishammundefined
                chrishamm administrators @jay_s_uk
                last edited by

                @jay_s_uk Yes, AFAIR this already worked in previous versions but it's broken again in the latest one. I'll add more checks to the plugin service to ensure read-only plugins (like DuetPiManagementPlugin) cannot be removed using the web interface.

                Duet software engineer

                1 Reply Last reply Reply Quote 1
                • First post
                  Last post
                Unless otherwise noted, all forum content is licensed under CC-BY-SA