Update showing package can be upgraded

Today after some updates it shows below message on terminal

1 package can be upgraded. Run ‘apt list --upgradable’ to see it.

After using sudo apt update it shows above message
it says,
The following packages have been kept back:
linux-headers-amd64

I used all commands from forum but no Luck
any help will be appreciated
Many thanks

1 Like

sudo apt install linux-headers-amd64

1 Like

The following packages have unmet dependencies:
linux-headers-amd64 : Depends: linux-headers-5.10.0-28-amd64 (= 5.10.209-2) but it is not installable
E: Unable to correct problems, you have held broken packages.

1 Like

1 Like

sudo apt-get purge linux-header*

1 Like

Yeah, after removing means purging linux-header it seems works now so means linux header latest version isn’t removed because I checked currently it shows nothing when I use below command to check linux headers
sudo apt list linux-headers-$(uname -r)

1 Like

as I see this below issue is raised up again

the issue I created few month ago that after removing linux headers all working fine but is Linux Headers are important to install means for security purposes so after some hours he said to do update command and install then it worked now again this issue is arised.

2 Likes

Mark your answer as a solution.

1 Like

I don’t know this time where is the answer to my question
I Purged Linux Headers and afterwards updates are fine question is still pending why linux headers aren’t installing in PureOs distro again like it was happening few months ago see attached screen when I run

sudo apt install linux-headers-amd64

also I asked is Linux headers are recommended or will it comprise any security in my distro as I asked in previous thread and someone gave me solution but they simply said to sudo update and then run install linux-headers-amd64 command which is for now seems not working…

2 Likes

Hi all,

I have a similar problem: right after my yesterday’s update to 5.10.0-28-amd64 I get exactly the same error message:
The following packages have unmet dependencies:
linux-headers-amd64 : Depends: linux-headers-5.10.0-28-amd64 (= 5.10.209-2) but it is not installable
E: Unable to correct problems, you have held broken packages.

After:
sudo apt-get purge linux-header* ,
sudo apt update , and
sudo apt install linux-headers-amd64

I still have the same error-message. This prevents my VirtualBox to start my VM…

What can be done to remediate this and how can we avoid to face a similar situation going forward?

Thanking you very much for your thoughts and information, I look forward to hearing from you.

Krgds

1 Like

sudo apt-get purge linux-header*; sudo apt-get clean; sudo apt-get autoclean; sudo apt autoremove; sudo apt-get -f install; sudo dpkg --configure -a; sudo apt-get -f install; sudo apt install linux-headers-amd64; sudo apt update

1 Like

I am also having the same problem.

Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
linux-headers-amd64 : Depends: linux-headers-5.10.0-28-amd64 (= 5.10.209-2) but it is not installable
E: Unable to correct problems, you have held broken packages.

A bit out of my depth here, hoping for a fix. Any guidance would be appreciated.

EDIT: This does seem to be similar to the problem OP and I experienced in October 2023… discussion thread for that is here:
https://forums.puri.sm/t/is-linux-headers-recommended-to-be-installed/21568/8

FYI I am on a Librem Mini (original flavor)

@joao.azevedo was able to help us then, but it seems his last post on this forum was in November 2023…

1 Like

Hi carlosgonz,

thanks a lot! Although - and unfortunately: no change: I have run all the above commands, with the same result when trying to install linux-headers-amd64…

As there seems to be a third user with the same problem, is this maybe a general system or data packet related issue?

1 Like

I have the same issue. According to this page the package is not installable: Binary package linux-headers-amd64/5.10.209-2 in byzantium @ pureos - PureOS Software.

Kernel module build failed during apt upgrade:

/etc/kernel/postinst.d/dkms:
dkms: running auto installation service for kernel 5.10.0-28-amd64:Error! echo
Your kernel headers for kernel 5.10.0-28-amd64 cannot be found at
/lib/modules/5.10.0-28-amd64/build or /lib/modules/5.10.0-28-amd64/source.
You can use the --kernelsourcedir option to tell DKMS where it's located.
1 Like

As @n00ber highligted it is totally correct we asked this issue in 2023 and @joao.azevedo was able to help us then he told purpose of it is that they ship a DKMS module needed for the Librem laptops (librem-ec-acpi-dkms)

The driver librem_ec_acpi provides Linux kernel support for the ACPI embedded controller of the following devices:

  • Purism Librem 14 laptop

it was around Oct 2023 thread kindly look on it I pasted also below

1 Like

After this update on startup of PureOs it usually says error something related to Librem and also Linux headers are right now totally removed my questions are still pending

1- Linux Headers are recommended or something not recommended kindly give me suggestion.

2- If we install Linux Headers after this update it generates error what is the solution for it in future also because after fixing from forum it comes in some things afterwards.

1 Like

I had the same result as @SwissUser … ran all commands, still not able to install headers package.

@SabirSaleem70 I think headers may be optional, but having “purged” and so on I am concerned what would happen if I try to reboot without having headers installed.

Thanks @henhed for that link. Definitely something is missing from the repos…

I would hope that in future maintainers of PureOS would consider delaying pushing updates straight from Debian kernel until they are confirmed to be complete … but perhaps they already do? I tend to update as soon I as see them available… I could be more circumspect also!

1 Like

I’m having the same issue. I just sent an email to Purism Support. I’ll try to remember to post here what they said to do, unless they post here before I visit again.

1 Like

@n00ber : well, I need the headers to run my (Windows 10) virtual machine (via Oracle VM VirtualBox): without headers, this does not not work anymore…

1 Like

that would be great, thank you, @nochelibre

1 Like