You may find this error during installation after having removed the agent previously.
This article is for our v1 agent and will soon be deprecated.
The following partially installed packages will be configured:
sd-agent
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.
Setting up sd-agent (1.11.3) ...
Listing /usr/bin/sd-agent/ ...
chmod: cannot access `/etc/init.d/sd-agent': No such file or directory
update-rc.d: /etc/init.d/sd-agent: file does not exist
/var/lib/dpkg/info/sd-agent.postinst: 13: /etc/init.d/sd-agent: not found
dpkg: error processing sd-agent (--configure):
subprocess installed post-installation script returned error exit
status 127
Errors were encountered while processing:
sd-agent
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Setting up sd-agent (1.11.3) ...
Listing /usr/bin/sd-agent/ ...
chmod: cannot access `/etc/init.d/sd-agent': No such file or directory
update-rc.d: /etc/init.d/sd-agent: file does not exist
/var/lib/dpkg/info/sd-agent.postinst: 13: /etc/init.d/sd-agent: not found
dpkg: error processing sd-agent (--configure):
subprocess installed post-installation script returned error exit
status 127
Errors were encountered while processing:
sd-agent
This is caused by an incomplete removal of the agent. You can fix this by executing these commands:
sudo rm /etc/init.d/sd-agent
sudo apt-get update
sudo apt-get purge sd-agent
sudo apt-get install sd-agent
Comments