Quantcast
Channel: Debian User Forums
Viewing all articles
Browse latest Browse all 3474

[Solved] Can't update debian

$
0
0
Running

Code:

sudo apt update
outputs the following regardless of whether the packages on my computer are actually updated:

Code:

Hit:1 https://brave-browser-apt-release.s3.brave.com stable InReleaseHit:2 https://deb.debian.org/debian bookworm InReleaseHit:3 https://deb.debian.org/debian bookworm-updates InReleaseHit:4 https://security.debian.org/debian-security bookworm-security InReleaseReading package lists... DoneBuilding dependency tree... DoneReading state information... DoneAll packages are up to date.
The contents of my apt sources list:

Code:

deb https://deb.debian.org/debian bookworm main non-free-firmwaredeb-src https://deb.debian.org/debian bookworm main non-free-firmwaredeb https://security.debian.org/debian-security bookworm-security main non-free-firmwaredeb-src https://security.debian.org/debian-security bookworm-security main non-free-firmwaredeb https://deb.debian.org/debian bookworm-updates main non-free-firmwaredeb-src https://deb.debian.org/debian bookworm-updates main non-free-firmware
"apt-mark hold" returns "E: No packages found"

Although none of the packages (except firefox for some reason) updates when I run apt update and apt upgrade, I can still manually upgrade packages by specifying a version name.

For example, I was able to upgrade my kernel from 6.1.0-30 to 6.1.0-31 by running the below:

Code:

sudo apt install linux-image-6.1.0-31-amd64

Code:

Reading package lists... DoneBuilding dependency tree... DoneReading state information... DoneSuggested packages:  linux-doc-6.1 debian-kernel-handbookThe following NEW packages will be installed:  linux-image-6.1.0-31-amd640 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.Need to get 69.0 MB of archives.After this operation, 409 MB of additional disk space will be used.Get:1 https://security.debian.org/debian-security bookworm-security/main amd64 linux-image-6.1.0-31-amd64 amd64 6.1.128-1 [69.0 MB]Fetched 69.0 MB in 6s (11.3 MB/s)Selecting previously unselected package linux-image-6.1.0-31-amd64.(Reading database ... 119546 files and directories currently installed.)Preparing to unpack .../linux-image-6.1.0-31-amd64_6.1.128-1_amd64.deb ...Unpacking linux-image-6.1.0-31-amd64 (6.1.128-1) ...Setting up linux-image-6.1.0-31-amd64 (6.1.128-1) ...I: /vmlinuz.old is now a symlink to boot/vmlinuz-6.1.0-30-amd64I: /initrd.img.old is now a symlink to boot/initrd.img-6.1.0-30-amd64I: /vmlinuz is now a symlink to boot/vmlinuz-6.1.0-31-amd64I: /initrd.img is now a symlink to boot/initrd.img-6.1.0-31-amd64/etc/kernel/postinst.d/dkms:dkms: autoinstall for kernel 6.1.0-31-amd64 was skipped since the kernel headers for this kernel do not seem to be installed./etc/kernel/postinst.d/initramfs-tools:update-initramfs: Generating /boot/initrd.img-6.1.0-31-amd64/etc/kernel/postinst.d/zz-update-grub:Generating grub configuration file ...Found linux image: /boot/vmlinuz-6.1.0-31-amd64Found initrd image: /boot/initrd.img-6.1.0-31-amd64Found linux image: /boot/vmlinuz-6.1.0-30-amd64Found initrd image: /boot/initrd.img-6.1.0-30-amd64Found linux image: /boot/vmlinuz-6.1.0-29-amd64Found initrd image: /boot/initrd.img-6.1.0-29-amd64Warning: os-prober will not be executed to detect other bootable partitions.Systems on them will not be added to the GRUB boot configuration.Check GRUB_DISABLE_OS_PROBER documentation entry.Adding boot menu entry for UEFI Firmware Settings ...done
However, the kernel isn't upgraded due to the lack of upgraded headers.

Code:

dkms: autoinstall for kernel 6.1.0-31-amd64 was skipped since the kernel headers for this kernel do not seem to be installed./etc/kernel/postinst.d/initramfs-tools:
Attempting to install the headers makes the system try to get me to manually install all of the headers dependencies.

Code:

sudo apt install linux-headers-6.1.0-31-amd64

Code:

Reading package lists... DoneBuilding dependency tree... DoneReading state information... DoneSome packages could not be installed. This may mean that you haverequested an impossible situation or if you are using the unstabledistribution that some required packages have not yet been createdor been moved out of Incoming.The following information may help to resolve the situation:The following packages have unmet dependencies: linux-headers-6.1.0-31-amd64 : Depends: linux-kbuild-6.1 (>= 6.1.128-1) but 6.1.123-1 is to be installedE: Unable to correct problems, you have held broken packages.
Thank you for your time,
Ky

Statistics: Posted by ky246 — 2025-03-04 02:42 — Replies 6 — Views 239



Viewing all articles
Browse latest Browse all 3474

Trending Articles