Debian update made a problem

If none of the more specific forums is the right place to ask

Debian update made a problem

Postby Copernicus365 » 2021-02-09 19:48

Hi

So some day ago I updated my Debian pc and now it won't start Debian anymore. This is the error I get:

http://michaelnowik.com/uploads/Debianp ... 210209.JPG

Is it possible to fix this error?
Last edited by Head_on_a_Stick on 2021-02-09 19:53, edited 1 time in total.
Reason: image replaced with plain URL.
Copernicus365
 
Posts: 9
Joined: 2020-11-19 17:32

Re: Debian update made a problem

Postby Head_on_a_Stick » 2021-02-09 20:02

Do you still have boot entries for the old kernel under the "Advanced Options" GRUB sub-menu?

If so then boot into an old kernel and update the initramfs:
Code: Select all
# update-initramfs -u -k all

If you don't have any boot entries for the old kernel then load up a Debian buster live ISO image and chroot into the system:
Code: Select all
# apt update
# apt install arch-install-scripts
# mount /dev/sdXY /mnt
# arch-chroot /mnt
[chroot]# mount -a

Replace X & Y with the drive letter and partition number for the root partition and rebuild the initramfs after running the above commands.

Then
Code: Select all
[chroot]# exit
# reboot

If there are any problems then post the error messages here in full but please post text (using code tags) rather than pictures.
Black Lives Matter

Debian buster-backports ISO image: for new hardware support
User avatar
Head_on_a_Stick
 
Posts: 13280
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Debian update made a problem

Postby Copernicus365 » 2021-02-09 20:42

Okay so I started the PC again and chose the older version of Debian than the latest one in the GRUB menu.

When I tried to update the initramfs I got this error:
Code: Select all
root@mail:/home/michael# sudo update-initramfs -u -k all
update-initramfs: Generating /boot/initrd.img-4.19.0-13-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-13-amd64 with 1.
root@mail:/home/michael#


I don't understand what those versions in the GRUB menu means, do I have many Debian OS installs from every update?
Is it still possible to update?
Copernicus365
 
Posts: 9
Joined: 2020-11-19 17:32

Re: Debian update made a problem

Postby Head_on_a_Stick » 2021-02-09 20:55

Looks like the partition holding /boot is full.

You can remove the older kernel ABI versions, use this to see which are installed:
Code: Select all
aptitude search '?narrow(?installed, linux-image)'

Then remove the old ones (4.19.0-14 is the current version).

Once the old versions are removed there should be enough space for you to try to rebuild the initramfs image again.
Black Lives Matter

Debian buster-backports ISO image: for new hardware support
User avatar
Head_on_a_Stick
 
Posts: 13280
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Debian update made a problem

Postby Copernicus365 » 2021-02-10 13:38

Head_on_a_Stick wrote:Looks like the partition holding /boot is full.

You can remove the older kernel ABI versions, use this to see which are installed:
Code: Select all
aptitude search '?narrow(?installed, linux-image)'

Then remove the old ones (4.19.0-14 is the current version).

Once the old versions are removed there should be enough space for you to try to rebuild the initramfs image again.

Okey, so I got the new update version of Debian to work now. Thank you for the help.
What I did: I followed this guide and just removed one kernel version and I watched out to not remove the one which I was using (Method A (recommended for Debian users)): https://www.pontikis.net/blog/remove-old-kernels-debian-ubuntu
Copernicus365
 
Posts: 9
Joined: 2020-11-19 17:32

Re: Debian update made a problem

Postby stevepusser » 2021-02-10 18:18

Your root partition is still critically full, and will no doubt fill up.

Keeping it over 90% full will also lead to file fragmentation, AFAIK. You need to determine if you can free up space in it, or make it bigger.

One quick and relatively painless thing to try, assuming you have pretty good bandwidth, is to flush the apt package cache with

Code: Select all
# apt clean
MX Linux packager and developer
User avatar
stevepusser
 
Posts: 12234
Joined: 2009-10-06 05:53

Re: Debian update made a problem

Postby Head_on_a_Stick » 2021-02-10 19:15

I presume the OP has a separate /boot partition but I might be wrong.
Black Lives Matter

Debian buster-backports ISO image: for new hardware support
User avatar
Head_on_a_Stick
 
Posts: 13280
Joined: 2014-06-01 17:46
Location: /dev/chair


Return to General Questions

Who is online

Users browsing this forum: No registered users and 10 guests

fashionable