Applicable to:
- Plesk Onyx for Linux
- Plesk for Linux
Symptoms
-
Unable to install packages via Plesk > Tools & Settings > Updates & Upgrades > Add/Remove Components or from Extensions on Digital Ocean Ubuntu 18 droplet with the error:
PLESK_INFO: Removing linux-image-4.15.0-38-generic (4.15.0-38.41) ...
/etc/kernel/postrm.d/initramfs-tools:
update-initramfs: Deleting /boot/initrd.img-4.15.0-38-generic
/etc/kernel/postrm.d/x-grub-legacy-ec2:
Searching for GRUB installation directory ... found: /boot/grub
Searching for default file ... found: /boot/grub/default
Testing for an existing GRUB menu.lst file ...
Could not find /boot/grub/menu.lst file. Would you like /boot/grub/menu.lst generated for you? (y/N) /usr/sbin/update-grub-legacy-ec2: line 1101: read: read error: 0: Bad file descriptor
run-parts: /etc/kernel/postrm.d/x-grub-legacy-ec2 exited with return code 1
dpkg: error processing package linux-image-4.15.0-38-generic (--remove):
installed linux-image-4.15.0-38-generic package post-removal script subprocess returned error exit status 1
Errors were encountered while processing:
linux-image-4.15.0-38-generic
E: Sub-process /usr/bin/dpkg returned an error code (1) -
Plesk update is failing with the same error.
Cause
This is Plesk bug with ID #PCI-164,which will be fixed in future Plesk updates.
Resolution
As a workaround, apply the following steps:
-
Connect to the server via SSH;
-
Recreate the missing
/boot/grub/menu.lst
file:# mv /boot/grub/menu.lst~ /boot/grub/menu.lst
-
Reinstall the system packages:
# DEBIAN_FRONTEND=noninteractive apt-get install -y -f
Comments
3 comments
Completed the process via SSH with the help of the following command
# /usr/local/psa/admin/bin/autoinstaller
Hello @Mohammad,
The speed of Plesk installation depends on many factors like server hardware, internet connection quality, etc.
15 minutes is ok and I am glad to hear that you have completed the process.
How long is this process suppose to last?
Based on reply for the customer support team, we ran the above commands via SSH and when navigated to Plesk. It looks like something is not going to end. Is it normal if it takes more than 15 mins on this screen?
I was asked for server root access when tried to visit this page on new tab which I did.
Please sign in to leave a comment.