Skip to content

Instantly share code, notes, and snippets.

@thelicato
Last active March 6, 2023 15:21
Show Gist options
  • Save thelicato/a9f1cb91cbddf0a2328e5115315991da to your computer and use it in GitHub Desktop.
Save thelicato/a9f1cb91cbddf0a2328e5115315991da to your computer and use it in GitHub Desktop.
Install Pop!_OS on Ubuntu in UTM (Apple Silicon)
#!/usr/bin/env bash
# Install mesa drivers
sudo apt update -y && sudo apt install -y mesa-*=22.0.*
# Avoid updating mesa drivers
dpkg-query --showformat='${Package}\n' --show | grep mesa | while read -r line; do
sudo apt-mark hold $line
done
# Remove unnecessary Ubuntu Server-specific packages
sudo apt purge --autoremove ubuntu-server -y
# Make sure 'lsb_release' is installed
sudo apt install -y lsb-core
# Add the Pop!_OS signing key
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 63C46DF0140D738961429F4E204DD8AEC33A7AFF
# Add the Pop!_OS APT repositories
sudo add-apt-repository "deb http://apt.pop-os.org/release $(lsb_release -cs) main" -y
sudo add-apt-repository "deb http://apt.pop-os.org/staging/master $(lsb_release -cs) main" -y
# Install the Pop!_OS DE (Raspberry PI version because its ARM)
sudo apt install -y pop-desktop-raspi
# Uninstall the Raspberry PI-specific kernel installed by the previous step
sudo apt purge --autoremove -y linux*-raspi*
# Fix the Pop!_OS APT sources
sudo sed -i 's/Enabled: yes/Enabled: no/g' /etc/apt/sources.list.d/system.sources /etc/apt/sources.list.d/pop-os-apps.sources
# Update & Upgrade
sudo apt update -y && sudo apt autoremove -y && sudo apt upgrade -y
# Install Spice tools
sudo apt install -y spice-vdagent spice-webdavd
@thelicato
Copy link
Author

The script can be downloaded with the following command:

wget https://t.ly/_8Kok -O pop_os_utm_setup.sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment