basecamp / omakub

Opinionated Ubuntu Setup
https://omakub.org
5.6k stars 494 forks source link

Installation fails with `dpkg` error on fresh Ubuntu 24.04 #223

Closed Blinkuu closed 4 months ago

Blinkuu commented 4 months ago

I recently installed Ubuntu 24.04 on a 2021 MacBook Pro running an M1 Pro chip. I'm running this setup on UTM and followed all instructions.

The installation fails with Sub-process /usr/bin/dpkg returned an error code (1) error

lukasz@ubuntuvm:~$ wget -qO- https://omakub.org/install | bash
________                  __        ___.
\_____  \   _____ _____  |  | ____ _\_ |__
 /   |   \ /     \__   \ |  |/ /  |  \ __ \
/    |    \  Y Y  \/ __ \|    <|  |  / \_\ \
\_______  /__|_|  (____  /__|_ \____/|___  /
        \/      \/     \/     \/         \/

=> Omakub is for fresh Ubuntu 24.04 installations only!

Begin installation (or abort with ctrl+c)...
[sudo] password for lukasz: 
Cloning stable Omakub...
Cloning into '/home/lukasz/.local/share/omakub'...
remote: Enumerating objects: 2385, done.
remote: Counting objects: 100% (1269/1269), done.
remote: Compressing objects: 100% (526/526), done.
remote: Total 2385 (delta 916), reused 878 (delta 730), pack-reused 1116
Receiving objects: 100% (2385/2385), 7.47 MiB | 847.00 KiB/s, done.
Resolving deltas: 100% (1403/1403), done.
Installation starting...
Get ready to make a few choices...
E: Sub-process /usr/bin/dpkg returned an error code (1)
Blinkuu commented 4 months ago

It seems to be an error with the gum package.

lukasz@ubuntuvm:~/.local/share/omakub$ bash ./install.sh
Get ready to make a few choices...
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'gum:amd64' instead of './gum.deb'
The following NEW packages will be installed:
  gum:amd64
0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
Need to get 0 B/4,525 kB of archives.
After this operation, 27.5 MB of additional disk space will be used.
Get:1 /tmp/gum.deb gum amd64 0.14.1 [4,525 kB]
dpkg: error processing archive /tmp/gum.deb (--unpack):
 package architecture (amd64) does not match system (arm64)
Errors were encountered while processing:
 /tmp/gum.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
bestagi commented 4 months ago

Omakub do not support arm64 chip. It's till in a development phase.

see this pull request

IbrahimTanyalcin commented 4 months ago

It is because mac m1's are arm64. I wanted to try it on my raspi and did this PR. It shoud work. Check for omakub_report.log on the root dir to see what failed. But all crucial things (extentions, themes, code, neovim, alacricity etc.) should work.

dhh commented 4 months ago

Yeah, we're not compatible with ARM chips just yet. The PR linked tracks progress on that.