Linux ARM deb packages have the wrong architecture #22

Closed
opened 2026-01-29 16:27:29 +00:00 by claunia · 2 comments
Owner

Originally created by @markusr on GitHub (Dec 21, 2017).

I want to create a deb package for ARM processor. (Raspbian - Raspberry PI)

$ dotnet deb -f netcoreapp2.0 -r linux-arm -c Release

after copying to the target and trying to install, I get the following error

pi@raspberrypi:~ $ sudo dpkg -i GPIOExample.1.0.0.linux-arm.deb                                                                                                      
dpkg: error processing archive GPIOExample.1.0.0.linux-arm.deb (--install):                                                                                          
 package architecture (amd64) does not match system (armhf)                                                                                                          
Errors were encountered while processing:                                                                                                                            
 GPIOExample.1.0.0.linux-arm.deb   

It seems that the package architecture is not set correctly.

Originally created by @markusr on GitHub (Dec 21, 2017). I want to create a deb package for ARM processor. (Raspbian - Raspberry PI) ``` $ dotnet deb -f netcoreapp2.0 -r linux-arm -c Release ``` after copying to the target and trying to install, I get the following error ``` pi@raspberrypi:~ $ sudo dpkg -i GPIOExample.1.0.0.linux-arm.deb dpkg: error processing archive GPIOExample.1.0.0.linux-arm.deb (--install): package architecture (amd64) does not match system (armhf) Errors were encountered while processing: GPIOExample.1.0.0.linux-arm.deb ``` It seems that the package architecture is not set correctly.
Author
Owner

@crozone commented on GitHub (May 28, 2018):

9e56efbf32/Packaging.Targets/DebTask.cs (L190)

It looks like there's currently no logic to change the package type in response to the platform type specified. Everything is hardcoded to amd64.

@crozone commented on GitHub (May 28, 2018): https://github.com/qmfrederik/dotnet-packaging/blob/9e56efbf325dacf9e83d9fbfe5b27d31c3928dca/Packaging.Targets/DebTask.cs#L190 It looks like there's currently no logic to change the package type in response to the platform type specified. Everything is hardcoded to amd64.
Author
Owner

@qmfrederik commented on GitHub (Jun 7, 2018):

Yes, I'd be happy to take a PR though :)

@qmfrederik commented on GitHub (Jun 7, 2018): Yes, I'd be happy to take a PR though :)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/dotnet-packaging#22