duetpimanagementplugin - how to reinstall 3.4b7
-
Accidentally uninstalled the duetpimanagementplugin through DWC.
Now I can't remove it or reinstall it. Anyone got any tips?
This is the errorsudo 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)
-
@jay_s_uk
apt install --reinstall duetpimanagementplugin
should work. -
@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)
-
@jay_s_uk Then run
sudo touch /opt/dsf/plugins/DuetPiManagementPlugin.json sudo mkdir /opt/dsf/plugins/DuetPiManagementPlugin
and try again
-
@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 -
-
-
@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.