this post was submitted on 26 Mar 2025
11 points (100.0% liked)

Linux Questions

1541 readers
1 users here now

Linux questions Rules (in addition of the Lemmy.zip rules)

Tips for giving and receiving help

Any rule violations will result in disciplinary actions

founded 2 years ago
MODERATORS
 

I've been daily driving Kubuntu for ages now (currently on 24.10), and I've noticed that updates take a while for seemingly no reason.

The downloads are slower than my internet is capable of, but they happen fast enough. It's just that some packages take longer than I would expect on the "unpacking" step.

For example, anytime there's a new kernel release or new headers, apt downloads the packages fast enough, but the unpacking takes time with seemingly no resource usage. No increased CPU load (for possible inflating of a compressed archive), no IOWAIT warnings, my NVMe disk shows very little throughput (and can handle much faster disk operations, like downloading games via Steam), stuff like that. The system seems to be at idle, and yet the unpacking of some packages just... takes a while.

It's not like it's a huge issue. It's only maybe an extra 30+ seconds, but it's got me wondering if there's anything I could do to improve it.

sudo apt clean hasn't had any effect, and my Google searches are of people complaining of either slow download speeds or 30+ minute delays that end up being failing drives.

Anyone have ideas?

top 2 comments
sorted by: hot top controversial new old
[โ€“] [email protected] 1 points 3 days ago

Keep in mind this could be a massive rabbit hole

I would start by carefully monitoring resource usage. What you are looking for is any place where it stalls. Pay attention to what packages are active as when you notice something taking a long time you can go back and look at what's running. Chances are you aren't going to be able to speed things up as it could be a single threaded process that's only hitting a single core. The other possibly is that your drive is dying so make sure you check the drive health and performance.

[โ€“] [email protected] 2 points 5 days ago

The next time packages are unpacking (or just before), run in another terminal/tab: journalctl -f.

That should give you the logs. Try to do this when no/minimum other apps are running as to not pollute the logs.