Sulforaphane
Posts: 49
Joined: Mon Sep 02, 2019 8:29 am

Rasperry Pi 4 - it just hangs when upgrading.

Mon Oct 14, 2019 9:28 pm

Hello.

I need some help.

Every time I run the "sudo apt upgrade" command. It just hangs.

Specifically it happened when installing the latest kernels:

Code: Select all

Preparing to unpack .../0-raspberrypi-kernel-headers_1.20190925+1-1_armhf.deb ...
Unpacking raspberrypi-kernel-headers (1.20190925+1-1) over (1.20190819-1) ...

Progress: [  4%] [##........................................................]
It stops at 4%.

What may be the fault? I have checked the Micro SD and it seems fine.


ShiftPlusOne
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 6226
Joined: Fri Jul 29, 2011 5:36 pm
Location: The unfashionable end of the western spiral arm of the Galaxy

Re: Rasperry Pi 4 - it just hangs when upgrading.

Wed Oct 16, 2019 12:55 pm

How long did you wait? It's a package with a lot of small files, which dpkg doesn't handle well. I think if you leave it for long enough, it will finish.

If you don't need to build out-of-tree/DKMS modules, it's safe to uninstall the package.

Sulforaphane
Posts: 49
Joined: Mon Sep 02, 2019 8:29 am

Re: Rasperry Pi 4 - it just hangs when upgrading.

Wed Oct 16, 2019 1:03 pm

ShiftPlusOne wrote:
Wed Oct 16, 2019 12:55 pm
How long did you wait? It's a package with a lot of small files, which dpkg doesn't handle well. I think if you leave it for long enough, it will finish.

If you don't need to build out-of-tree/DKMS modules, it's safe to uninstall the package.
Maybe 20/30 minutes I waited.

Is this normal?

How do I uninstall this package?

ShiftPlusOne
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 6226
Joined: Fri Jul 29, 2011 5:36 pm
Location: The unfashionable end of the western spiral arm of the Galaxy

Re: Rasperry Pi 4 - it just hangs when upgrading.

Wed Oct 16, 2019 1:21 pm

Sulforaphane wrote:Maybe 20/30 minutes I waited.
I haven't timed it, but depending on the storage medium, I wouldn't be surprised
Sulforaphane wrote:How do I uninstall this package?
sudo apt remove raspberrypi-kernel-headers

Sulforaphane
Posts: 49
Joined: Mon Sep 02, 2019 8:29 am

Re: Rasperry Pi 4 - it just hangs when upgrading.

Wed Oct 16, 2019 2:09 pm

ShiftPlusOne wrote:
Wed Oct 16, 2019 1:21 pm
Sulforaphane wrote:Maybe 20/30 minutes I waited.
I haven't timed it, but depending on the storage medium, I wouldn't be surprised
Sulforaphane wrote:How do I uninstall this package?
sudo apt remove raspberrypi-kernel-headers
Wow, didn't know it was so simple.

That did the job, thanks a lot!

Return to “Troubleshooting”