Last update at :2024-05-18,Edit by888u
Sometimes when updating the system, errors such as: W: mdadm: /etc/mdadm/mdadm.conf defines no arrays., W: mdadm: no arrays defined in configuration file. What should I do? Generally speaking, it is caused by insufficient space in the /boot partition. The most likely reason is that upgrading the kernel causes multiple versions to be occupied. We only need to clean up the unused kernel files. Solution:
First check which cores are there:
dpkg -l ‘linux-image-*’ | grep ‘^ii’ or dpkg –get-selections | grep linux-image
For example, on my VPS:
root@server-jp:~# dpkg –get-selections |grep linux-image
linux-image-4.10.1-041001-generic install
linux-image-4.4.0-21-generic install
linux-image-4.4.0-53-generic install
linux-image-4.4.0-64-generic install
linux-image-extra-4.4.0-21-generic install
linux-image-extra-4.4.0-53-generic install
linux-image-extra-4.4.0-64-generic install
linux-image-generic install
You can also use the "ls /boot" command to check what files are in /boot:
ls /boot
To uninstall the old kernel, the command is as follows:
sudo apt-get purge Linux-image-3.5.0-17-generic
Note: The green ones at the back are those that need to be uninstalled. You can respond to your own needs and only keep what you need to keep!
Recommended site search: free proxy ip address, dynamic ip proxy in mainland China, free asp.net space, Dongguan server rental, registered unregistered domain name, server rental, telecom ip proxy, php host, permanent free cloud in mainland China Server recommendation app server rental,
发表评论