Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save crazyquark/20db329c5d25fe6cd28898132562f9bc to your computer and use it in GitHub Desktop.
Save crazyquark/20db329c5d25fe6cd28898132562f9bc to your computer and use it in GitHub Desktop.
How to install iTunes 12 on Linux Mint 18 with working Store
Trying to run iTunes with Wine, i faced various problems. Here is a working solution how to install iTunes on Debian-based systems (in my case Linux Mint 18.1) - with support for the iTunes Store. Warning: Syncing i-devices is still not possible.
When installing it with the playonlinux-"iTunes 12"-script, log in into the Store was not possible in my case. Wine showed the follwing error when trying to log in: SecurityContext failed with error 0x80090304
1. Install current Wine version (2.0.1) directly from the winehq repository
wget -nc https://dl.winehq.org/wine-builds/Release.key
sudo apt-key add Release.key
sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ xenial main'
sudo apt-get update
sudo apt-get install --install-recommends winehq-stable
wine --version
2. Create a new 32 bit wineprefix (if you are doing this on a 64 bit system) and set windows version
WINEPREFIX=/home/user/.wine32 WINEARCH=win32 wine wineboot
WINEPREFIX=/home/user/.wine32 WINEARCH=win32 wine winecfg
Set Windows Version to Windows 7 or newer
3. Download the newest winetricks
sudo apt-get remove winetricks
wget https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks
chmod +x winetricks
sudo mv -v winetricks /usr/local/bin
4. Install gdiplus library using winetricks
WINEPREFIX=/home/user/.wine32 winetricks
Standard wineprefix > install Windows DLL > gdiplus > OK
5. Download iTunes Version 12.1.3 - 32 bit and install it (version is important!)
https://support.apple.com/kb/dl1614?locale=de_DE
cd /home/user/Downloads
WINEPREFIX=/home/user/.wine32 wine iTunesSetup.exe
Follow the setup, anwer the AutoRun Question with NO.
6. Start it. It may crashes the first time, just start it again. Now you should be able to use iTunes and log in to the iTunes Store and download and play your purchased music and videos!
Start from command line:
cd /home/user/.wine32/drive_c/Program\ Files/iTunes/
WINEPREFIX="/home/user/.wine32" wine iTunes.exe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment