Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Solved: Upgrade has initramfs failure.

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
paxmark1
Posts: 54
Joined: 2008-10-23 05:19
Has thanked: 1 time

Solved: Upgrade has initramfs failure.

#1 Post by paxmark1 »

A few weeks prior to Buster went stable I did a clean lvm install onto a new ssd. /home and all that stayed on the spinning rust on /DATA I have read the info on Planet Debian about the recent point release and also saw the caution for grub2 that was mentioned on Siduction. (I have an old atom netbook on debian sid running wayland and sway.)

Quiet year on Debian stable. The most recent upgrade spit out

[code
p...@dbnbuster:~$ sudo dpkg --configure -a
Setting up initramfs-tools (0.133+deb10u1) ...
update-initramfs: deferring update (trigger activated)
Processing triggers for initramfs-tools (0.133+deb10u1) ...
update-initramfs: Generating /boot/initrd.img-4.19.0-10-amd64

gzip: stdout: No space left on device
E: mkinitramfs failure cpio 141 gzip 1
update-initramfs: failed for /boot/initrd.img-4.19.0-10-amd64 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
[/code]

Code: Select all

df
Filesystem                     1K-blocks      Used Available Use% Mounted on
udev                             5843788         0   5843788   0% /dev
tmpfs                            1174468      1116   1173352   1% /run
/dev/mapper/dbnbuster--vg-root  28703652   9340024  17882516  35% /
tmpfs                            5872332    245880   5626452   5% /dev/shm
tmpfs                               5120         4      5116   1% /run/lock
tmpfs                            5872332         0   5872332   0% /sys/fs/cgroup
/dev/sda1                         240972    197909     30622  87% /boot
/dev/mapper/dbnbuster--vg-home 438705664  83713752 332637176  21% /home
/dev/mapper/raunes--vg-home    336341160  99359728 219873260  32% /home2
/dev/mapper/raunes--vg-DATA    950152924 424762436 477055640  48% /DATA
tmpfs                            1174464        32   1174432   1% /run/user/1000
/dev/sdd1                       15835080        32  15835048   1% /media/paxmark/USB20FD
I did do journalctl --vacuum-size=0.6G and apt autolclean - all via sudo. after this happened.

I could review how to scroll backwards in tmux to get the original error message.

Pretty dull repos and not utilizing backports much. Virtuabox and Spideroak. I also use the binary from expressvpn.

Code: Select all

inxi -br
System:    Host: dbnbuster Kernel: 4.19.0-9-amd64 x86_64 bits: 64 Desktop: LXQt 0.14.1 Distro: Debian GNU/Linux 10 (buster) 
Machine:   Type: Desktop System: Gigabyte product: H81M-S2H GSM v: N/A serial: <root required> 
           Mobo: Gigabyte model: H81M-S2H GSM v: x.x serial: <root required> BIOS: American Megatrends v: F2 date: 08/11/2015 
CPU:       Dual Core: Intel Core i3-4170 type: MT MCP speed: 798 MHz min/max: 800/3700 MHz 
Graphics:  Device-1: Intel 4th Generation Core Processor Family Integrated Graphics driver: i915 v: kernel 
           Display: x11 server: X.Org 1.20.4 driver: modesetting unloaded: fbdev,vesa resolution: 1920x1080~60Hz 
           OpenGL: renderer: Mesa DRI Intel Haswell v: 4.5 Mesa 18.3.6 
Network:   Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet driver: r8169 
           Device-2: Ralink RT5372 Wireless Adapter type: USB driver: rt2800usb 
Drives:    Local Storage: total: 2.30 TiB used: 588.90 GiB (25.0%) 
Repos:     Active apt repos in: /etc/apt/sources.list 
           1: deb http://debian.mirror.rafal.ca/debian/ buster main non-free contrib
           2: deb-src http://debian.mirror.rafal.ca/debian/ buster main non-free contrib
           3: deb http://security.debian.org/debian-security buster/updates main contrib non-free
           4: deb-src http://security.debian.org/debian-security buster/updates main contrib non-free
           5: deb http://download.virtualbox.org/virtualbox/debian bionic contrib
           Active apt repos in: /etc/apt/sources.list.d/spideroakone.list 
           1: deb https://apt.spideroak.com/ubuntu/ release restricted
Info:      Processes: 232 Uptime: 12d 10h 20m Memory: 11.20 GiB used: 3.19 GiB (28.5%) Shell: bash inxi: 3.0.32 
I did look at BTS for initrmafs Only semi-recent thing that caught my eye was #962509 - but does not look like my problem.

TIA
Last edited by paxmark1 on 2020-08-03 02:26, edited 1 time in total.

User avatar
Hallvor
Global Moderator
Global Moderator
Posts: 2042
Joined: 2009-04-16 18:35
Location: Kristiansand, Norway
Has thanked: 151 times
Been thanked: 212 times

Re: Upgrade has initramfs failure.

#2 Post by Hallvor »

Try

Code: Select all

# apt autoremove
I got the same problem on my laptops.
[HowTo] Install and configure Debian bookworm
Debian 12 | KDE Plasma | ThinkPad T440s | 4 × Intel® Core™ i7-4600U CPU @ 2.10GHz | 12 GiB RAM | Mesa Intel® HD Graphics 4400 | 1 TB SSD

Dai_trying
Posts: 1101
Joined: 2016-01-07 12:25
Has thanked: 6 times
Been thanked: 16 times

Re: Upgrade has initramfs failure.

#3 Post by Dai_trying »

I notice you do not have a lot of space in /boot/ which might be a cause as my initrd.img files are 62Mb (which are in /boot/ and maybe there is not enough room to put another one there. You could try removing your oldest kernel(s) to see if that clears it up.

User avatar
Hallvor
Global Moderator
Global Moderator
Posts: 2042
Joined: 2009-04-16 18:35
Location: Kristiansand, Norway
Has thanked: 151 times
Been thanked: 212 times

Re: Upgrade has initramfs failure.

#4 Post by Hallvor »

Dai_trying: apt autoremove fixes the problem.
[HowTo] Install and configure Debian bookworm
Debian 12 | KDE Plasma | ThinkPad T440s | 4 × Intel® Core™ i7-4600U CPU @ 2.10GHz | 12 GiB RAM | Mesa Intel® HD Graphics 4400 | 1 TB SSD

Dai_trying
Posts: 1101
Joined: 2016-01-07 12:25
Has thanked: 6 times
Been thanked: 16 times

Re: Upgrade has initramfs failure.

#5 Post by Dai_trying »

Of course, sorry I dont't often run auto*(anything) but yes it will.

p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 132 times

Re: Upgrade has initramfs failure.

#6 Post by p.H »

Hallvor wrote:apt autoremove fixes the problem.
Not always. It depend whether at least one kernel is eligible for auto-removal, i.e. there are at least 3 kernels installed.

I agree with Dai_trying : it is better to explain why the problem happens and what must be done to correct it (by any means, including but not limited to autoremove) than just throwing a "magic" command without any explanation.

User avatar
Hallvor
Global Moderator
Global Moderator
Posts: 2042
Joined: 2009-04-16 18:35
Location: Kristiansand, Norway
Has thanked: 151 times
Been thanked: 212 times

Re: Upgrade has initramfs failure.

#7 Post by Hallvor »

And then some users would remove the wrong kernel.

Users asking for help may do it to learn, others just want their system to work.

A user who was interested in learning would perhaps make an effort and find one of the many threads.

A search on Google for "stdout: No space left on device" gave me 2.000.000 hits...

Assuming that the user just wanted a quick fix was not all that far fetched. ;)
[HowTo] Install and configure Debian bookworm
Debian 12 | KDE Plasma | ThinkPad T440s | 4 × Intel® Core™ i7-4600U CPU @ 2.10GHz | 12 GiB RAM | Mesa Intel® HD Graphics 4400 | 1 TB SSD

p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 132 times

Re: Upgrade has initramfs failure.

#8 Post by p.H »

Hallvor wrote:And then some users would remove the wrong kernel.
Why would they remove the wrong kernel ?
Hallvor wrote:Users asking for help may do it to learn, others just want their system to work.
Fine, I am not here for the latter. AFAIK this forum is not a help desk.
Hallvor wrote:A search on Google for "stdout: No space left on device" gave me 2.000.000 hits...
So what ? The first answers seem to address the issue (even though for Ubuntu). Add more keywords such as "Debian" and "initramfs" if you want more specific answers.

User avatar
Hallvor
Global Moderator
Global Moderator
Posts: 2042
Joined: 2009-04-16 18:35
Location: Kristiansand, Norway
Has thanked: 151 times
Been thanked: 212 times

Re: Upgrade has initramfs failure.

#9 Post by Hallvor »

p.H wrote: Why would they remove the wrong kernel ?
https://duckduckgo.com/?q=why+do+people ... fab&ia=web
Fine, I am not here for the latter. AFAIK this forum is not a help desk.
Fine. Then why did you respond to this thread with the "help desk" question? Why not just ignore it and move on?

This forum is what the users make it, and the OP is certainly no help vampire, so I don't see the problem; and if you do see a problem with me replying, it wouldn't be any of your business anyway.
So what?
The point is that the OP could have found the answer himself in a few seconds, and telling him to make a Google search makes more sense than trying to school him about Debian.
[HowTo] Install and configure Debian bookworm
Debian 12 | KDE Plasma | ThinkPad T440s | 4 × Intel® Core™ i7-4600U CPU @ 2.10GHz | 12 GiB RAM | Mesa Intel® HD Graphics 4400 | 1 TB SSD

p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 132 times

Re: Upgrade has initramfs failure.

#10 Post by p.H »

Hallvor wrote:Then why did you respond to this thread with the "help desk" question?
What "help desk" question ?
Hallvor wrote:if you do see a problem with me replying, it wouldn't be any of your business anyway.
I see a problem in your reply claiming that "apt autoremove fixes the problem". It fixed the problem for you, but that does not mean that it fixes the problem for every one in every case. In a recent similar thread, it did not fix the problem.

Whether you like it or not, what you post in a public forum is everyone's business. If I disagree with what you say, I'll say it.
Hallvor wrote:The point is that the OP could have found the answer himself in a few seconds
Thanks for clarifying, I did not understand it that way.
Hallvor wrote:telling him to make a Google search makes more sense than trying to school him about Debian.
Whatever it means, I was not trying to "school him about Debian".

User avatar
Hallvor
Global Moderator
Global Moderator
Posts: 2042
Joined: 2009-04-16 18:35
Location: Kristiansand, Norway
Has thanked: 151 times
Been thanked: 212 times

Re: Upgrade has initramfs failure.

#11 Post by Hallvor »

p.H wrote: What "help desk" question ?
Take a wild guess.
I see a problem in your reply claiming that "apt autoremove fixes the problem".
The worst case scenario is that it won't work. The worst case scenario if the OP slips up while manually deleting kernels is much more severe.

As for your thread, that was a dist-upgrade, not this specific point upgrade. There is no comparison.

I guess we'll have to wait and see of the OP replies to see if it works or not.
Whether you like it or not, what you post in a public forum is everyone's business. If I disagree with what you say, I'll say it.
Did I post bad advice? No. So STFU.
[HowTo] Install and configure Debian bookworm
Debian 12 | KDE Plasma | ThinkPad T440s | 4 × Intel® Core™ i7-4600U CPU @ 2.10GHz | 12 GiB RAM | Mesa Intel® HD Graphics 4400 | 1 TB SSD

paxmark1
Posts: 54
Joined: 2008-10-23 05:19
Has thanked: 1 time

Re: Upgrade has initramfs failure.

#12 Post by paxmark1 »

1. apt autoremove fixed the problem. thanks. /boot is presently at 60% from 87% So if the kernel is 27% that would have taken it up too much. Might fiddle with resizing /boot some day. I guess the kernels are getting bigger.

I do use apt autoremove a bit in sid, but I always check very closely before doing so. This is something that I had not seen since 2016 when I started this new computer with stretch testing. Nor in Siduction or #! on on the amdC-50 - rest in peace.

No, not a vampire. I am more of a small fish in a small pond, I reply to posts ( I did anyway) in the SparkyLinux forum and ask the occasional rare question in Siduction for my wayland sway.

Again thanks.

User avatar
Hallvor
Global Moderator
Global Moderator
Posts: 2042
Joined: 2009-04-16 18:35
Location: Kristiansand, Norway
Has thanked: 151 times
Been thanked: 212 times

Re: Upgrade has initramfs failure.

#13 Post by Hallvor »

I am glad it worked. Please edit the title of your first post in this thread and mark it as solved.
[HowTo] Install and configure Debian bookworm
Debian 12 | KDE Plasma | ThinkPad T440s | 4 × Intel® Core™ i7-4600U CPU @ 2.10GHz | 12 GiB RAM | Mesa Intel® HD Graphics 4400 | 1 TB SSD

User avatar
sickpig
Posts: 591
Joined: 2019-01-23 10:34
Been thanked: 1 time

Re: Upgrade has initramfs failure.

#14 Post by sickpig »

p.H wrote:it is better to explain why the problem happens and what must be done to correct it (by any means, including but not limited to autoremove) than just throwing a "magic" command without any explanation.
very true, explanations are quite helpful in making the readers understand how to prevent such issues if they come across them. I have always found it quite useful to search these forums and learn from explanations.

Post Reply