How to Use iTunes and Apple Music on Ubuntu

Apple does not ship iTunes for Linux. On Ubuntu use Apple Music in a browser, Rhythmbox or Amberol for local libraries, or experiment with legacy iTunes 12.x under Wine—expect instability, no iPhone sync, and black-screen bugs on modern releases.

Published

Updated

Read time 6 min read

Reviewed byDeepak Prasad

Use Apple Music and local music libraries on Ubuntu banner with Ubuntu and Apple Music accents

iTunes is Apple’s legacy media app for macOS and Windows—music libraries, podcasts, and (on Windows) iPhone backup and sync. Apple does not ship iTunes for Linux. There is no official .deb, Snap, or Flatpak, and searching apt for itunes returns nothing useful.

On Ubuntu in 2026, the honest split is simple: use Linux-native alternatives for everyday listening and library management, or treat Wine + an old Windows iTunes installer as a fragile experiment—not a replacement for a Mac or Windows PC when you need device sync or Store purchases.

IMPORTANT
This guide does not promise a working iTunes clone. Method 1 covers real alternatives. Method 2 is optional Wine tinkering that may launch a window, fail silently, or show a black screen—documented below so you do not waste an afternoon on outdated tutorials.

Prerequisites

  • Ubuntu 22.04 LTS, 24.04 LTS, or newer on amd64 for the Wine section below.
  • sudo for package installs.
  • An Apple ID if you want Apple Music streaming (browser sign-in).
  • For Wine experiments: outbound HTTPS, ~2 GB free disk, and patience—success is not guaranteed.

Check your release if you are unsure:

bash
. /etc/os-release && echo "$PRETTY_NAME"

See also check Ubuntu version.


Choose an approach

Approach Best for Stability Jump to
Apple Music web + local players Streaming, local MP3/FLAC libraries, everyday listening Reliable Method 1
Wine + legacy iTunes 12.x Curiosity, very old workflows, no device sync needed Experimental—often broken Method 2

For almost everyone, Method 1 is the correct answer. Use Method 2 only when you understand you are running unmaintained Windows software through a compatibility layer—not “installing iTunes on Ubuntu” the way Apple intends.


These options cover what most people actually want: stream Apple Music or play local files. None of them is iTunes, and that is fine.

Apple Music in your browser

  1. Open Apple Music on the web in Firefox or Google Chrome.
  2. Sign in with your Apple ID.
  3. Stream your library, playlists, and Apple Music subscription—no Wine required.

For a separate app window, use Chrome’s Install / Create shortcut option on music.apple.com (PWA-style). It still runs the web client, not native iTunes.

Rhythmbox for a local library

Rhythmbox ships on Ubuntu Desktop and behaves like a classic desktop music manager: import folders, playlists, podcasts, and play MP3, FLAC, and other common formats.

bash
sudo apt update
sudo apt install -y rhythmbox

Launch Rhythmbox from Activities, then Music → Import Folder to pull in an existing library copied from another machine.

Amberol for a lightweight local player

Amberol is a minimal GNOME music player—good when you only need playback, not iTunes-style store integration.

bash
sudo apt install -y amberol

Open Amberol, drag in a music folder, and listen. It will not sync with an iPhone or redeem iTunes Store purchases.

What these alternatives do not do

  • iPhone / iPad backup or sync (use a Mac, Windows PC, or Linux tools such as libimobiledevice for limited device tasks).
  • iTunes Store purchases tied to the Windows/macOS app.
  • FairPlay-protected content that only Apple’s official apps handle.

For a broader desktop app list, see must-have Ubuntu apps.


Method 2: Legacy iTunes under Wine (experimental)

If you still want to try the Windows iTunes installer, use a modern Wine setup and an old 32-bit iTunes 12.x build. Newer 64-bit iTunes releases frequently hit the black-screen problem on current Ubuntu.

Step 1: See what Wine Ubuntu already offers

Before adding third-party repos, check packaged Wine:

bash
sudo apt update
apt-cache policy wine64 wine

If wine64 has a candidate from Ubuntu universe, you can start with:

bash
sudo apt install -y wine64 wine winetricks

When you need a newer Wine build, add WineHQ—using a signed-by keyring, not deprecated apt-key:

bash
sudo dpkg --add-architecture i386
sudo mkdir -pm755 /etc/apt/keyrings
sudo wget -O /etc/apt/keyrings/winehq-archive.key https://dl.winehq.org/wine-builds/winehq.key
sudo wget -NP /etc/apt/sources.list.d/ \
  https://dl.winehq.org/wine-builds/ubuntu/dists/$(lsb_release -cs)/winehq-$(lsb_release -cs).sources
sudo apt update
sudo apt install --install-recommends winehq-stable winetricks

Confirm:

bash
wine --version

Step 2: Prepare a 32-bit Wine prefix

Legacy iTunes installers expect a 32-bit Windows environment:

bash
WINEARCH=win32 WINEPREFIX="$HOME/.wine-itunes" winetricks -q corefonts vcrun2015

Step 3: Download an old iTunes Windows installer

Apple no longer promotes ancient builds, but archived iTunes 12.4.x for Windows (32-bit) installers still circulate via Apple support KB pages and community mirrors. Search Apple’s support downloads for iTunes 12.4.3 (32-bit) or similar—not the current 64-bit Windows release.

Download the .exe into ~/Downloads/, then run:

bash
WINEPREFIX="$HOME/.wine-itunes" wine ~/Downloads/iTunesSetup.exe

Follow the Windows installer prompts. If Wine offers to install Wine Mono or Gecko, accept—iTunes may refuse to start without them.

Step 4: Launch iTunes

bash
WINEPREFIX="$HOME/.wine-itunes" wine "C:\\Program Files\\iTunes\\iTunes.exe"

If you get a window with content, consider it a lucky outcome—not a supported configuration. Expect missing features, failed Apple ID login, and no dependable iPhone sync.

Deprecated: PlayOnLinux

Older guides install iTunes through PlayOnLinux and the deb.playonlinux.com repository. That path is deprecated on modern Ubuntu: the repo targets EOL releases, install scripts are stale, and apt update often fails on 22.04+. If you find a 2022-era tutorial with PlayOnLinux screenshots, ignore it—use Wine directly as above, or skip Wine entirely.


Troubleshooting

Black screen after iTunes launches

This is the most common failure mode on Ubuntu 22.04+ with newer iTunes builds.

Symptom Likely cause What to try (no guarantees)
Window opens, content is black 64-bit iTunes + incomplete Wine DirectX/WebView support Switch to iTunes 12.4.x 32-bit and a WINEARCH=win32 prefix
Immediate crash Missing Visual C++ runtimes or fonts winetricks vcrun2015 corefonts in the same prefix
Worked once, blank after update Wine or iTunes auto-updated Recreate the prefix; pin an older Wine build only if you accept the maintenance cost
GPU-related glitches Driver/Wine interaction Test WINEPREFIX=... winecfg → Graphics → emulate a virtual desktop

If none of that helps, stop fighting it—use Apple Music in the browser or a Windows/macOS machine for anything critical.

Other common Wine/iTunes issues

Symptom Likely cause Fix
wine: command not found Wine not installed Install wine64 from Ubuntu or winehq-stable from WineHQ
cannot execute binary file Wrong architecture installer Use the 32-bit iTunes .exe, not 64-bit
Apple ID sign-in fails Wine lacks full Windows web components Expected limitation—use the web client
iPhone not detected No Windows Apple Mobile Device driver stack Expected limitation—use Mac/Windows for sync
apt-key warnings in old tutorials Deprecated key management Use /etc/apt/keyrings/ + .sources as shown above

Kill a stuck iTunes process:

bash
WINEPREFIX="$HOME/.wine-itunes" wineserver -k

Summary

Apple does not publish iTunes for Linux. On Ubuntu, the practical path is Apple Music in a browser for streaming, plus Rhythmbox or Amberol for local files—real apps that work today without pretending to be iTunes.

Wine + legacy iTunes 12.x sometimes opens a window on amd64 Ubuntu with a 32-bit prefix and an old installer, but it is experimental: black screens, broken sign-in, and no reliable iPhone sync are normal outcomes. PlayOnLinux is obsolete on current releases. Do not treat any of this as a production iTunes replacement.


References

Frequently Asked Questions

1. Does Apple ship iTunes for Linux?

No. Apple publishes iTunes for macOS and Windows only. There is no official .deb, Snap, or Flatpak. Any tutorial that claims a native Linux iTunes installer is outdated or misleading.

2. What is the best way to use Apple Music on Ubuntu?

Open music.apple.com in Firefox or Chrome and sign in with your Apple ID. You get streaming, playlists, and your library in the browser without Wine. For a desktop-like experience, install the site as a PWA from Chrome or use a dedicated web wrapper if your workflow needs a separate window.

3. Can I manage a local music library like iTunes on Ubuntu?

Yes—with Linux-native players, not iTunes. Rhythmbox ships on Ubuntu Desktop and handles MP3, FLAC, and podcast libraries with playlist support. Amberol is a lightweight GNOME player for local files. Neither replaces iTunes Store purchases or iPhone backup/sync.

4. Can I install iTunes on Ubuntu with Wine?

Sometimes, with an old 32-bit iTunes 12.x Windows installer and Wine—but treat it as experimental. Newer iTunes builds often show a black window on current Ubuntu. Device sync, Store purchases, and Apple ID sign-in frequently fail. Do not rely on this for backups or iPhone management.

5. Why does iTunes show a black screen under Wine on Ubuntu?

Apple moved iTunes to 64-bit Windows builds and modern WebKit/Chromium components that Wine struggles to emulate. Older 12.4.x 32-bit installers launch more often but still break on many GPU and Wine version combinations. There is no guaranteed fix—see the troubleshooting section for things worth trying once.

6. Should I use PlayOnLinux to install iTunes on Ubuntu?

No on current Ubuntu releases. PlayOnLinux repositories and scripts are unmaintained; the deb.playonlinux.com repo targets long-EOL Ubuntu versions and often fails on 22.04 and newer. Use Wine directly if you must experiment, or skip Wine entirely and use Apple Music in the browser.

7. Can I sync my iPhone with iTunes on Ubuntu?

Not reliably. Even when the iTunes window opens under Wine, USB device detection, backup, restore, and iOS sync depend on Windows drivers and Apple services that Wine does not fully provide. Use a Mac or Windows PC—or libimobiledevice tools on Linux—for device management.

8. Which Wine package should I install on Ubuntu for iTunes?

Check what your release offers first: apt-cache policy wine64 wine. Ubuntu universe may ship wine64 and wine for simple tests. For newer Wine builds, add the WineHQ repository with a signed-by keyring (not apt-key) and install winehq-stable. Enable 32-bit architecture (dpkg --add-architecture i386) before installing wine32 packages that legacy iTunes installers expect.
Deepak Prasad

R&D Engineer

Founder of GoLinuxCloud with more than 15 years of expertise in Linux, Python, Go, Laravel, DevOps, Kubernetes, Git, Shell scripting, OpenShift, AWS, Networking, and Security. With extensive …