Alex
Alex

Reputation: 2337

Raspberry Pi 5 - linux-headers kept back

I don't have any packages on hold, but doing apt-get update and upgrade shows the following output, are these packages being held back from the OS itself? thanks.

pamanes@rpi5:~ $ sudo apt-get update
Hit:1 http://deb.debian.org/debian bookworm InRelease
Hit:2 http://deb.debian.org/debian-security bookworm-security InRelease
Hit:3 http://deb.debian.org/debian bookworm-updates InRelease
Hit:4 http://archive.raspberrypi.com/debian bookworm InRelease
Reading package lists... Done
pamanes@rpi5:~ $ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
  linux-headers-rpi-2712 linux-headers-rpi-v8 linux-image-rpi-2712 linux-image-rpi-v8
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.

Upvotes: 1

Views: 388

Answers (1)

Stef
Stef

Reputation: 102

Since the obsoleting/removal of packages is occurring you will need to perform a full-upgrade, then sudo apt autoremove to cleanup unused packages. You will then want to restart the rpi5 sudo reboot

sudo apt-get full-upgrade

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  libarchive13 libcamera0.2 libegl-mesa0 libegl1 libevdev2 libgbm1 libinput-bin libinput10 libmd4c0 libmtdev1 libqt5dbus5 libqt5gui5
  libqt5network5 libqt5qml5 libqt5qmlmodels5 libqt5qmlworkerscript5 libqt5quick5 libqt5quickcontrols2-5 libqt5quicktemplates2-5
  libqt5svg5 libqt5waylandclient5 libqt5waylandcompositor5 libqt5widgets5 libwacom-common libwacom9 libwayland-server0 libxcb-icccm4
  libxcb-image0 libxcb-keysyms1 libxcb-render-util0 libxcb-util1 libxcb-xinerama0 libxcb-xinput0 libxcb-xkb1 libxkbcommon-x11-0
  qml-module-qtgraphicaleffects qml-module-qtquick-controls2 qml-module-qtquick-layouts qml-module-qtquick-templates2
  qml-module-qtquick-window2 qml-module-qtquick2 qt5-gtk-platformtheme qtwayland5
Use 'sudo apt autoremove' to remove them.
The following NEW packages will be installed:
  dconf-cli libcamera0.4 libfuse2 linux-headers-6.6.74+rpt-common-rpi linux-headers-6.6.74+rpt-rpi-2712 linux-headers-6.6.74+rpt-rpi-v8
  linux-image-6.6.74+rpt-rpi-2712 linux-image-6.6.74+rpt-rpi-v8 linux-kbuild-6.6.74+rpt pastebinit python3-pycryptodome raspi-utils-core
  raspi-utils-dt raspi-utils-eeprom raspi-utils-otp raspinfo
The following packages will be upgraded:
  libcamera-ipa linux-headers-rpi-2712 linux-headers-rpi-v8 linux-image-rpi-2712 linux-image-rpi-v8 raspi-config raspi-utils rpi-eeprom
  rpi-imager rpicam-apps-lite
10 upgraded, 16 newly installed, 0 to remove and 0 not upgraded.
Need to get 134 MB of archives.
After this operation, 146 MB of additional disk space will be used.
Do you want to continue? [Y/n] y

I recently performed this upgrade and the rpi5 is running properly.

Upvotes: 0

Related Questions