LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   problem with Russian Ubuntu's (https://www.linuxquestions.org/questions/ubuntu-63/problem-with-russian-ubuntus-4175650221/)

Majed17 03-15-2019 04:06 AM

problem with Russian Ubuntu's
 
Peace, I have several bionic servers, 2 of which are in Russian, and every other time when a kernel upgrade takes place, the Russian servers report that they are out of space..an apt autoremove --purge does not solve the problem. The solution is to manually go to the boot directory and remove the old kernel files and reapply apt-get update && apt-get upgrade. Is there any possible fix for this bug?

frankbell 03-15-2019 08:51 PM

It's a shot in the dark, but do your run these after an update?

Code:

apt-get autoclean
apt-get autoremove

The later removes "packages that are no longer needed." I think that includes old kernels, but I'm not in a position to test it right now. https://itsfoss.com/apt-get-linux-guide/

ondoho 03-16-2019 06:01 AM

i'm pretty sure there's an option to remove unused kernels:
https://www.startpage.com/do/dsearch...unused+kernels
but if one old kernel is already causing trouble, means that the hard drive is way too full anyhow.
you might want to look through it if there's more stuff to remove.
another web search will enlighten you on how to do that. seriously, that's the sort of stuff people ask all the time even though the solutions are already out there by the busload.

Majed17 04-03-2019 01:14 AM

So as to save you your time i'm only replying after a new kernel occurred! Much thanks for the auto clean command, it deleted the old kernel(s). And i'm very happy to see that there are smart people who know about private search engines :D. after the deletion, i checked and both the english and the russian ubuntu's have 2 kernels in /boot. the next time a kernel upgrade happens will finally confirm if this solves the weird behavior. and so windows and ubuntu releases updates on Wednesday, a coincidence? judging from the trolls that hang on their forums, i agree not!

hydrurga 04-03-2019 03:15 PM

Forget autoclean. Go the whole hog with an:
Code:

apt-get clean
https://askubuntu.com/questions/3167...move-and-clean

Majed17 04-04-2019 01:16 AM

I have bad news... Today there was an nfarms update and the bug reoccurred:

Code:

~$ sudo apt clean
sysadmin@ntp2:~$ sudo apt-get clean

Code:

:~$ sudo apt autoremove
Чтение списков пакетов Готово
Построение дерева зависимостей     
Чтение информации о состоянии Готово
Обновлено 0 пакетов, установлено 0 новых пакетов, для удаления отмечено 0 пакетов, и 0 пакетов не обновлено.
Установлено или удалено не до конца 1 пакетов.
После данной операции объём занятого дискового пространства возрастёт на 0 B.
Настраивается пакет initramfs-tools (0.130ubuntu3.7)
update-initramfs: deferring update (trigger activated)
Обрабатываются триггеры для initramfs-tools (0.130ubuntu3.7)
update-initramfs: Generating /boot/initrd.img-4.15.0-47-generic

gzip: stdout: No space left on device
E: mkinitramfs failure cpio 141 gzip 1
update-initramfs: failed for /boot/initrd.img-4.15.0-47-generic with 1.
dpkg: ошибка при обработке пакета initramfs-tools (--configure):
 installed initramfs-tools package post-installation script subprocess returned error exit status 1
При обработке следующих пакетов произошли ошибки:
 initramfs-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)


any advice on what to do other than what i usually do?

ondoho 04-04-2019 02:05 AM

it's not a bug - it's a problem on your install, most likely misconfiguration.

output of
Code:

df
please.

and please repeat the previous command like this:
Code:

LANG=C sudo apt autoremove
i don't read russian so well...

Majed17 04-04-2019 02:23 AM

Code:

~$ df -h
Filesystem              Size  Used Avail Use% Mounted on
udev                    463M    0  463M  0% /dev
tmpfs                    99M  820K  98M  1% /run
/dev/sda1                10G  4,5G  5,0G  48% /
tmpfs                    493M  4,0K  493M  1% /dev/shm
tmpfs                    5,0M    0  5,0M  0% /run/lock
tmpfs                    493M    0  493M  0% /sys/fs/cgroup
/dev/sda2                181M  140M  28M  84% /boot
/dev/sda5                3,7G  254M  3,2G  8% /home
/home/sysadmin/.Private  3,7G  254M  3,2G  8% /home/me
tmpfs                    99M    0  99M  0% /run/user/1000

the no free space nag is related to the boot folder...

Code:

sudo LANG=C sudo apt autoremove
Reading package lists... Done
Building dependency tree     
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up initramfs-tools (0.130ubuntu3.7) ...
update-initramfs: deferring update (trigger activated)
Processing triggers for initramfs-tools (0.130ubuntu3.7) ...
update-initramfs: Generating /boot/initrd.img-4.15.0-47-generic

gzip: stdout: No space left on device
E: mkinitramfs failure cpio 141 gzip 1
update-initramfs: failed for /boot/initrd.img-4.15.0-47-generic with 1.
dpkg: error processing package initramfs-tools (--configure):
 installed initramfs-tools package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 initramfs-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)

the english ubuntu has a slightly larger /boot folder

Code:

/dev/sda1                        236M  110M  114M  50% /boot


All times are GMT -5. The time now is 07:29 AM.