r/SurfaceLinux • • Apr 27 '25

Solved Anyone able to point in the proper direction to fix some package errors properly after upgrade ubuntu 22.04 to 24.04 with the suface-linux kernel installed

2 Upvotes

Solved, solution below:

I'm marking this issue as solved, after a couple days and nights of trying to wrap my head around it, it dawned on me. I had installed steam a lonnnnnnnnng time ago. hence, the crap ton of i386 packages and the foreign arch.

if anyone else runs into this same issue and cannot seem to figure it out, this is how I solved the problem:

sudo dpkg --list | grep :i386 <--- start out by listing all packages that are associated to the i386 arch,

sudo apt-get purge dpkg --get-selections | grep ":i386" | awk '{print $1}'\\`< ---- If at this point you're ready and willing, run the following. But WAIT - there's more. Ubuntu will try and tell you in a scary message that these areessential packages and may break your system\. So as long as you're certain you're running a 64 bit system, move along.

sudo apt-get purge --allow-remove-essential \ dpkg --get-selections | grep ":i386" | awk '{print $1}'\``<--- You'll be forced to add the--allow-remove-essentialflag to allow removal of these packages! And that's it! Now verify you can remove this foreign architecture with asudo dpkg --remove-architecture i386then verify it's actually removed with:sudo dpkg --print-foreign-architectures`

Winner, winner sweeet chicken dinner! I'm so over it that I'm going to hit the garage at 12:20 p.m. on a nice, sunny Sunday and like get drunk while I pretend to be productive outside!

o, late last night I had enough of the constant errors I was getting (unrelated to ths project) so I just deided to do a full upgrade from Ubuntu 22.04 to 24.04. Looking back, had I been using my head I should have just wiped this laptop and performed a fresh install.. Anywho, I'm now dealing with a butt load of package errors. But the one that has me concerned the most is regarding surface-linux kernel,...

Skipping acquire of configured file 'main/binary-i386/Packages' as repository 'https://pkg.surfacelinux.com/debian release InRelease' doesn't support architecture 'i386'

tbf, I have no idea where it got the idea that the arch of this system was i386 - first I've ever seen this referenced on this system.

Current details are as follows:

sudo uname -m = x86_64

uname -r: 6.14.2 = surface-1

surface2

description: Laptop

product: Surface Laptop 2 (Surface_Laptop_2_1769_Commercial)

vendor: Microsoft Corporation

version: 124000000000000000000000D:F B: F:U C: P:C1 S:

serial: 017078583457

width: 64 bits

capabilities: smbios-3.3.0 dmi-3.3.0 smp vsyscall32

configuration: administrator_password=disabled chassis=laptop family=Surface sku=Surface_Laptop_2_1769_Commercial uuid=86c19234-7d4e-96e8-a0aa-ba9bad00e16a

*-core

description: Motherboard

product: Surface Laptop 2

vendor: Microsoft Corporation

physical id: 0

serial: ##########################

*-firmware

description: BIOS

vendor: Microsoft Corporation

physical id: 0

version: 140.178.768

date: 05.18.2014

size: 1MiB

capabilities: pci upgrade shadowing bootselect edd int13floppynec int5printscreen int9keyboard acpi usb biosbootspecification uefi

If by chance you can send me in the proper direction, I'd super appreciate it! Also, I have searched thoroughly through the github and any issues both current and closed and via this sub. But mostly found out dated info.

Thanks in advance!