Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rursache/f972af739d732ac0cec1f3b1aa689f5a to your computer and use it in GitHub Desktop.
Save rursache/f972af739d732ac0cec1f3b1aa689f5a to your computer and use it in GitHub Desktop.
Apple Silicon - Ubuntu Mate 22.10 arm64 + amd64 - Rosetta

Run Ubuntu Mate 22.10 on Apple Silicon (arm64 + amd64) with Rosetta via UTM

  1. Download, boot and install Ubuntu Server for arm64 with UTM
  2. To install the Ubuntu Mate desktop and reboot after, run:
sudo apt update
sudo apt install ubuntu-mate-desktop -y
sudo reboot
  1. From the desktop (or via SSH) open the terminal and run:
sudo apt install binfmt-support spice-vdagent -y
sudo mkdir /media/rosetta
sudo mount -t virtiofs rosetta /media/rosetta
sudo /usr/sbin/update-binfmts --install rosetta /media/rosetta/rosetta \
     --magic "\x7fELF\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x3e\x00" \
     --mask "\xff\xff\xff\xff\xff\xfe\xfe\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff" \
     --credentials yes --preserve no --fix-binary yes
  1. Add the line below to /etc/fstab
rosetta	/media/rosetta	virtiofs	ro,nofail	0	0
  1. Run sudo rm /etc/apt/sources.list && sudo nano /etc/apt/sources.list && sudo apt update and paste:
# arm64
deb [arch=arm64] http://ports.ubuntu.com kinetic main multiverse restricted universe
deb [arch=arm64] http://ports.ubuntu.com kinetic-updates main restricted universe multiverse
deb [arch=arm64] http://ports.ubuntu.com kinetic-backports main restricted universe multiverse
deb [arch=arm64] http://ports.ubuntu.com kinetic-security main restricted universe multiverse

# amd64
deb [arch=amd64] http://archive.ubuntu.com/ubuntu kinetic main restricted universe multiverse
deb [arch=amd64] http://archive.ubuntu.com/ubuntu kinetic-updates main restricted universe multiverse
deb [arch=amd64] http://security.ubuntu.com/ubuntu kinetic-security main restricted universe multiverse
  1. Reboot one more time
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment