Home Downloads How to download and install iTunes on Linux

How to download and install iTunes on Linux

by Arun Kumar
itunes for linux

iTunes has always been a convenient platform for downloading, organizing, playing, and syncing media between your Apple devices. It also gives users a large pool of media to buy or stream millions of songs using Apple Music.

Other than the iPhone, iPad, and iPod, iTunes is also available for macOS and Windows operating systems. Unfortunately, there is no installer for iTunes on Linux systems like Ubuntu, Fedora, or any other distributions.

There are several applications developed as an alternative for iTunes. However, if you are working with an iPod, iPad, or iPhone, you will have to use iTunes. It doesn’t mean we can’t run iTunes on Linux. It is possible only that it is a little more technical compared to having an iTunes installer on other platforms.

Installing iTunes on Linux

To run iTunes on Linux, we will have to use the iTunes installer for Windows operating systems. However, you can’t install Windows ‘.exe.‘ files on Linux directly due to compatibility issues. That’s why we will use Wine.

Wine to run windows applications on Linux

Wine to run windows applications on Linux

Wine is a free and open-source compatibility layer that enables users to run native Windows applications on Linux and Unix environment. It also has a graphical frontend application known as PlayOnLinux, allowing you to install Windows applications more quickly.

In this post, we will show you how to download and install iTunes on your Linux system. Our distribution of choice will be the recently released Ubuntu 20.04 LTS. We will divide this tutorial into three main sections:

  • Download and install Wine on Linux
  • Download iTunes installer for Windows
  • Install iTunes on Linux

Step 1) Download and install Wine on Ubuntu.

As described above, we will need to install Wine on Linux. Open the Terminal and follow the steps below.

Step 1). If your running a 64Bit architecture system, you will be required to enable 32Bit architecture. Execute the command below on the Terminal.

sudo dpkg --add-architecture i386
Enable 32Bit Architecture on your system

Enable 32Bit Architecture on your system

Step 2). Next, download and add the Wine repository key. Do so by executing the command below on the Terminal.

wget -O - https://dl.winehq.org/wine-builds/winehq.key | sudo apt-key add -

Download and Add the Wine repository key

Step 3). Now, we will need to add the Wine repository of the Linux release you are using. If you are on Ubuntu, execute any of the commands below as per your Ubuntu release.

  • Ubuntu 20.04 LTS (Focal Fossa)
sudo add-apt-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ focal main'
  • Ubuntu 19.10 (Eoan Ermine)
sudo add-apt-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ eoan main'
  • Ubuntu 18.04 LTS (Bionic Beaver)
sudo add-apt-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main'
  • Ubuntu 16.04 LTS (Xenial Xerus)
sudo add-apt-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ xenial main'

Since we are using Ubuntu 20.04 LTS (Focal Fossa) in this tutorial, we will execute the first command.

Add your wine repository

Adding your wine repository

Step 4). Once you have added your Wine repository, we can now proceed to download and installing Wine on your system.
Execute the command below on your system.

sudo apt install --install-recommends winehq-stable
Download and install Wine on your system

Download and install Wine on your system

In case ‘apt‘ raises an issue about any missing dependencies, install them and execute the command again.

Step 5). To ensure that Wine is successfully installed, run the ‘–version’ command, as shown below.

wine --version
Check Wine version on the Terminal

Check Wine version on the Terminal

Download iTunes for Windows.

Once we have Wine installed in our system, we can proceed to download the iTunes executable for Windows. Visit the official iTunes download page and download the Windows.

Download iTunes Setup for Windows

Download iTunes for Windows

Installing iTunes on Linux using Wine

Step 1) Navigate to the directory you downloaded the installer. Right-click on the ‘.exe.’ file and select the option, “Open with wine windows program loader.”

You might see the notification that Wine wants to download Mono and Gecko. Click “Install” and then proceed with iTunes installation.

Install mono on wine

Install mono on wine

install wine gecko

install wine gecko

Once Wine Mono and Wine Gecko install, you should see the iTunes Welcome page. See the image below.

iTunes Welcome Page

iTunes Welcome Page

Click “Next.”

Step 2) You will need to choose the folder where iTunes will install. Since Wine tries to emulate a Windows environment, you will see the directory “C:/Program Files/iTunes/” selected, leave it as it is.

Select WIne Installation directory

Select WIne Installation directory

Click “Install.”

You might see a warning that “autorun” is turned off. Click “Yes” so that iTunes can turn it on automatically.

Turn On autorun

Turn On autorun

Step 3) Once “autorun” is turned On, iTunes installation should start immediately. Please wait for it to complete. You should see the message, “iTunes installed successfully.” Click “Next” and on the next window that appears, click “Finish.”

Installi iTunes on Linux

Installing iTunes on Linux

Step 4) Now, we need to launch iTunes. On the Desktop, you should be able to see the iTunes file. It should either be “iTunes” or “iTunes.desktop,” as in the image below. In case you see a file like “iTunes.ink”, assume it since this is a Windows shortcut file. You can delete it.

ITunes Desktop file

iTunes Desktop file

If you have the “iTunes” file present, double click on it, and iTunes should now start running on your Linux system; otherwise, if the file present is “iTunes.desktop“, then we will use the gtk-launch command to launch iTunes on Linux.

Note; gtk-launch requires that the file be present in the ‘/usr/share/applications‘ directory. Therefore, you will need to copy the “iTunes.desktop” file in this directory before executing the command below.

gtk-launch iTunes.desktop
gtk-launch

gtk-launch

Step 5) The iTunes Software Agreement window should launch after some time. Click “Agree” to continue.

iTunes Software agreement window

iTunes Software agreement window

Step 6) iTunes will launch on Linux. You might get a notification like “iTunes has detected it is not the default player…”, if you wish to make it your default, audio player, click “Yes,” otherwise click “No.”

The iTunes welcome page should now open. Click “Agree” to continue.

iTunes Welcome page

iTunes Welcome page

Step 7) On the next Window, you will now get access to iTunes’ main Window. Here, there are several menu items and tabs, which gives you access to fantastic iTunes features. Click on “Sign in to Itunes Store.” You will be required to enter your Apple Id and Password, and you are good to go.

Sign in to the Itunes store

Sign in to the Itunes store

And that’s it! You now have iTunes running on your Linux system. You can now access Apple music conveniently from your Linux system.

You may also like

40 comments

Carl Draper May 19, 2020 - 11:15 AM

But why? Why would you want to do this? If you have iOS devices you can buy music from them. If you don’t have iOS devices, why would you need iTunes? iTunes is also being replaced by other apps including Apple Music. And there are already many decent music players on Linux such as Clementine than work far better!

Reply
Venm July 7, 2020 - 3:06 PM

The only reason I can think of is to be able to transfer music to an iphone from a Linux device.
I don’t see why someone would like to use iTunes

Reply
Noah L Easterly August 21, 2020 - 10:29 PM

This is useful if you’ve bought content through iTunes before (say before you switched to Linux) and wish to re-download it from the store.

Reply
joe September 2, 2020 - 5:43 PM

If you want to use your same playlists, songs, etc and listen to them but dont want to use your iphone

Reply
Ralph November 26, 2020 - 7:47 AM

For me? One reason only. Apple insists I must use iTunes to update the iOS on my iPhone, and it has to be done through a computer USB connection. It cannot be done by the iPhone itself.

Reply
john January 23, 2021 - 3:32 AM

i have a ubuntu computer but an apple iphone that is now disabled. As far as i can tell i can only use itunes to recover my phone but can only do it through WINE.

Reply
Igor January 6, 2021 - 5:00 PM

I have a very old, but still working, iPod and the only way to put music is unfortunately iTunes. So, even while I’m working on a Linux based system, I need iTunes to use my iPod.

Reply
Linuxpocaster January 10, 2021 - 8:43 PM

You need iTunes to be able to offer a podcast on Apple’s podcasts connect. If you have only Linux (like I do) you need to find a way to get iTunes running at least once, so that you get access to podcasts connect.

Reply
Michal Gloc October 29, 2021 - 3:49 AM

I have iphone from work that is locked. I need to recover it, and that requires itunes. Only computer I have is running linux.

Reply
Gerrit September 9, 2020 - 4:08 AM

i tunes does open on xubuntu 20.04 but all the text is one black colour and the theme of iTunes too so basically one cannot use it

Reply
Arun Kumar September 19, 2020 - 6:46 AM

Hello Gerrit, Try the 32 bit version of Itunes. The 64bit seems to be having UI issues running on various Linux systems.

Reply
ChristopherG October 26, 2020 - 3:53 AM

The installer rejected the installation stating that the 64bit version was needed.

Reply
lukasig December 5, 2020 - 4:58 PM

If you get the black screen, install iTunes version 12.9.3 (or older).

Reply
Mathew February 8, 2022 - 2:30 AM

that worked.

Reply
Sarah September 19, 2020 - 12:29 PM

The only file I see if the iTunes.Ink on my desktop. Help please.

Reply
Sarah September 19, 2020 - 12:29 PM

Is*

Reply
sedu October 7, 2020 - 12:58 PM

What to do if I have”Errors occurred during installation before Itunes could be configured. Your system has not been modified. To complete the installatoin, run the instaler again. Click Finish to exit the installer.”?

Reply
sedu October 7, 2020 - 1:54 PM

Solved by installing playonlinux

Reply
Ralph November 26, 2020 - 7:49 AM

This isn’t working for me. With both the 64-bit iTunes and the 32-bit iTunes, I get an error message that iTunes requires Windows 10.

Reply
Arun Kumar November 26, 2020 - 11:11 PM

Hello Ralph
Run the command “winecfg” on your terminal. The wine configuration window will pop-up. Under the ‘Windows version’ drop-down menu select “Windows 10”. Click Apply and run iTunes again. That should work.

Reply
manuel sam figarado November 29, 2020 - 2:15 AM

Hi Arun Kumar,
“winecfg” worked for me. thanks a lot. I’m a beginner
i use Ubuntu 20.04.1 LTS. and it is 64bit

Reply
Pedro Garcia November 30, 2020 - 7:16 AM

I tried to install the 32-bit iTunes after selecting “Windows 10” with winecfg, but I got an error saying: “The installer is intended for 32-bit version of Windows”. Is there a way to select a 32-bit version of Windows 10? Thanks

Reply
lukasig December 5, 2020 - 5:00 PM

why don’t you install the 64bit version

Reply
K April 18, 2021 - 10:40 AM

Dont work 🙁

Reply
Didier Bosset May 1, 2021 - 1:42 PM

I know it’s been a while, but I encountered the same issue. I installed version 12.1.3 at the bottom of the downloads page: https://support.apple.com/downloads/itunes

It successfully installed.

Reply
raspberryism December 16, 2020 - 11:04 AM

says itunes requires your computer to run windows 10, i used the latest version of itunes and ubuntu 20.10

Reply
NirI December 16, 2020 - 3:01 PM

Hi Arun,
I have the same issue as Ralph, however winecfg procedure doesn’t help and I’m still getting the same error that it requires Windows 10.
I use Ubuntu 20.10 64 bit.

Reply
simon April 25, 2021 - 5:32 AM

Hi Nirl, Did you manage to find a work around? I’m having the same issue.

Reply
Andi January 24, 2021 - 4:49 PM

Hi,
have the same problem as Arun. After selecting Windows 10 i still get the error “Windows 10 required”.
I have Ubuntu 20.04 64bit.
Thanks!

Reply
simon April 25, 2021 - 5:33 AM

Hi Andi, Did you manage to find a work around? I’m having the same issue.

Reply
The_Matrix April 30, 2021 - 11:32 PM

same problem… but on my genuine activated Windows 8.1 Pro…
apple makes us victims of windows versions.
We must purchase a new windows 10 licence since our windows 8 or windows 7 licence don’t work…

Reply
KB February 18, 2021 - 6:39 AM

My iPhone doesn’t appear in iTunes when I connect. I followed the steps above to install the 32-bit version of iTunes on Ubuntu 20.10. Any help?

Reply
Harold Tutor March 15, 2021 - 2:19 PM

does the PC need to be rebooted for Wine changes to take effect? getting same error that iTunes needs Windows 10 to run, errors on install and no cfg

Reply
simon April 25, 2021 - 5:34 AM

Hi Harold, Did you manage to find a work around? I’m having the same issue. I;ve rebooted and confirmed wine is configured for windows 10; not sure if it’s one of the other settings that needs to be changed?

Reply
Andi April 30, 2021 - 1:55 AM

@simon: no i didn’t found any way around

Reply
Farishad May 28, 2021 - 2:05 PM

I cannot login to my Apple ID as it needs two way authentication.

Reply
Jason June 1, 2021 - 10:30 AM

Having the same issue.. I specifically wanted to install iTunes so I could access my iTunes store media and play it, but cannot figure out a way to get authenticated so that I can log into the application.

Reply
Mathew February 8, 2022 - 2:31 AM

This site is really good for beginners and even intermediate linux users :thumbsup

Reply
David May 10, 2022 - 7:15 AM

I have Linux Lite. Tried to install latest Itunes 32bit. Loaded wine but Itunes package tells me I need wondows 10 installed. Have used terminal command winecfg.

Reply
Mike October 24, 2023 - 9:51 AM

For those having trouble trying to install, with iTunes saying that it required Windows 10, try the Windows version for “older video cards”. I encountered the same error but was able to install with this one.

“Download iTunes 12.4.3 for Windows (64-bit – for older video cards)”
direct link at: https://secure-appldnld.apple.com/itunes12/031-69284-20160802-7E7B2D20-552B-11E6-B2B9-696CECD541CE/iTunes64Setup.exe

Reply

Leave a Reply to NirI Cancel Reply

fl_logo_v3_footer

ENHANCE YOUR LINUX EXPERIENCE.



FOSS Linux is a leading resource for Linux enthusiasts and professionals alike. With a focus on providing the best Linux tutorials, open-source apps, news, and reviews written by team of expert authors. FOSS Linux is the go-to source for all things Linux.

Whether you’re a beginner or an experienced user, FOSS Linux has something for everyone.

Follow Us

Subscribe

©2016-2023 FOSS LINUX

A PART OF VIBRANT LEAF MEDIA COMPANY.

ALL RIGHTS RESERVED.

“Linux” is the registered trademark by Linus Torvalds in the U.S. and other countries.