Cannot shutdown service for maintenance

When trying to do my first update on my VM instance of Axigen, the instructed command to shutdown the service (“/etc/init.d/axigen stop”) does not work.

In fact it immediately reports “already stopped”, when in fact it is NOT already stopped. I tried this several times, always the same result.

So I ultimately resorted to shutting down the OS to stop it (“sudo shutdown -r now”) and while this seemed to eventually work, the OS had to wait approx 1.5 additional minutes for the Axigen services to stop before it could restart.

The server did appear to apply the latest updates anyway even though the service was apparently not shutdown when I installed it (“sudo apt install [.deb name]”) but I’d like to know if I’m doing something wrong here.

Also, after doing the update, I got another error, a permission error:

“Download is performed unsandboxed as root as file [.DEB file] couldn’t be accessed by user ‘_apt’, - pkgAcquire::Run (13: Permission denied)

Is there something I’m doing wrong here? (see screenshots)

[Update: got a “422” error when trying to post, maybe it’s the screenshots? I’ll try a separate post for them]

Screenshot 1 for illustrating the initial post:

Apparently the second screenshot is too large for this platform to accept. (“422 error”)

Please refer to the initial post for a description instead.

OK I discovered the problem was that I was not elevating my privileges with sudo and the init.d script requires it.

So I’d request the script to return some sort of error message if the caller does not have enough privileges to run it. :slightly_smiling_face:

My other questions till apply, eg about the apt installer error.

Thanks.

Hello @raid5,

You can try to move the deb file file to /tmp folder and try again the install command.

Also considering that apt is usually use the _apt user to install packages try to set the permissions for the deb file to 644.

Regards,
Florin

Thanks I will try that.

I also have another question about updating the OS but I will create a separate post on that.