Is your feature request related to a problem? Please describe.
https://docs.orbstack.dev/machines/#multi-architecture tells that we need to "Fix repos" in order to enable amd64 support.
However for modernized sources you need to do a bit different.
Describe the solution you'd like
Edit the modernized sources:
sudo nano /etc/apt/sources.list.d/ubuntu.sources
you will see the original sources:
click to expand
# Modernized from /etc/apt/sources.list
Types: deb
URIs: http://ports.ubuntu.com/ubuntu-ports/
Suites: resolute
Components: main restricted universe multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
# Modernized from /etc/apt/sources.list
Types: deb
URIs: http://ports.ubuntu.com/ubuntu-ports/
Suites: resolute-updates
Components: main restricted universe multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
# Modernized from /etc/apt/sources.list
Types: deb
URIs: http://ports.ubuntu.com/ubuntu-ports/
Suites: resolute-security
Components: main restricted universe multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
If the original sources don't contain Architectures: arm64, add it explicitly:
# Modernized from /etc/apt/sources.list
Types: deb
URIs: http://ports.ubuntu.com/ubuntu-ports/
Suites: resolute
Components: main restricted universe multiverse
+Architectures: arm64
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
And then add the following for amd64 support as well:
# amd64
Types: deb
URIs: http://archive.ubuntu.com/ubuntu
Suites: resolute resolute-updates resolute-backports
Components: main restricted universe multiverse
Architectures: amd64
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
Types: deb
URIs: http://security.ubuntu.com/ubuntu
Suites: resolute-security
Components: main restricted universe multiverse
Architectures: amd64
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
the final result
# Modernized from /etc/apt/sources.list
Types: deb
URIs: http://ports.ubuntu.com/ubuntu-ports/
Suites: resolute
Components: main restricted universe multiverse
Architectures: arm64
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
# Modernized from /etc/apt/sources.list
Types: deb
URIs: http://ports.ubuntu.com/ubuntu-ports/
Suites: resolute-updates
Components: main restricted universe multiverse
Architectures: arm64
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
# Modernized from /etc/apt/sources.list
Types: deb
URIs: http://ports.ubuntu.com/ubuntu-ports/
Suites: resolute-security
Components: main restricted universe multiverse
Architectures: arm64
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
# amd64
Types: deb
URIs: http://archive.ubuntu.com/ubuntu
Suites: resolute resolute-updates resolute-backports
Components: main restricted universe multiverse
Architectures: amd64
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
Types: deb
URIs: http://security.ubuntu.com/ubuntu
Suites: resolute-security
Components: main restricted universe multiverse
Architectures: amd64
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
Now you it works without any problems:
$ sudo dpkg --add-architecture amd64
$ sudo apt update
Hit:1 http://security.ubuntu.com/ubuntu resolute-security InRelease
Hit:2 http://archive.ubuntu.com/ubuntu resolute InRelease
Hit:3 http://archive.ubuntu.com/ubuntu resolute-updates InRelease
Hit:4 http://archive.ubuntu.com/ubuntu resolute-backports InRelease
Hit:5 http://ports.ubuntu.com/ubuntu-ports resolute InRelease
Hit:6 http://ports.ubuntu.com/ubuntu-ports resolute-updates InRelease
Hit:7 http://ports.ubuntu.com/ubuntu-ports resolute-security InRelease
All packages are up to date.
$ dpkg --print-architecture
arm64
$ dpkg --print-foreign-architectures
amd64
$ sudo apt install libc6:amd64 libstdc++6:amd64
libc6:amd64 is already the newest version (2.43-2ubuntu2).
libstdc++6:amd64 is already the newest version (16-20260322-1ubuntu1).
Summary:
Upgrading: 0, Installing: 0, Removing: 0, Not Upgrading: 0
Is your feature request related to a problem? Please describe.
https://docs.orbstack.dev/machines/#multi-architecture tells that we need to "Fix repos" in order to enable
amd64support.However for modernized sources you need to do a bit different.
Describe the solution you'd like
Edit the modernized sources:
you will see the original sources:
click to expand
If the original sources don't contain
Architectures: arm64, add it explicitly:And then add the following for
amd64support as well:# amd64 Types: deb URIs: http://archive.ubuntu.com/ubuntu Suites: resolute resolute-updates resolute-backports Components: main restricted universe multiverse Architectures: amd64 Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg Types: deb URIs: http://security.ubuntu.com/ubuntu Suites: resolute-security Components: main restricted universe multiverse Architectures: amd64 Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpgthe final result
Now you it works without any problems: