{"id":38816,"date":"2022-04-18T14:08:42","date_gmt":"2022-04-18T14:08:42","guid":{"rendered":"https:\/\/ubuntuhandbook.org\/?p=38816"},"modified":"2026-01-24T11:15:52","modified_gmt":"2026-01-24T11:15:52","slug":"wine-ubuntu-2204-windows-apps","status":"publish","type":"post","link":"https:\/\/ubuntuhandbook.org\/index.php\/2022\/04\/wine-ubuntu-2204-windows-apps\/","title":{"rendered":"How to Install Wine in Ubuntu 24.04 | 22.04 to Install &#038; Run Windows Apps"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-thumbnail wp-image-35331\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/10\/wine-image-250x250.webp\" alt=\"\" width=\"250\" height=\"250\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/10\/wine-image-250x250.webp 250w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/10\/wine-image-300x300.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/10\/wine-image-600x600.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/10\/wine-image-768x768.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/10\/wine-image.webp 1200w\" sizes=\"auto, (max-width: 250px) 100vw, 250px\" \/><\/p>\n<p>To run Microsoft Windows applications in Ubuntu Linux, Wine or CrossOver (paid version) is a good choice. And here&#8217;s how to install and use Wine in Ubuntu 22.04 LTS, Ubuntu 24.04, and Ubuntu 20.04<\/p>\n<p>In this tutorial, you&#8217;ll see 2 ways to install Wine in Ubuntu. Choose either one that you prefer.<\/p>\n<p><b>NOTE: NOT all Windows apps can install &amp; run through Wine. See <a href=\"https:\/\/appdb.winehq.org\/\" target=\"_blank\" rel=\"noopener\">this page<\/a> for the list of apps compatible with Wine.<\/b><\/p>\n<h3>Option 1: Install Wine from Ubuntu repository:<\/h3>\n<p>Ubuntu included Wine package in its own repository, though <strong>it&#8217;s old<\/strong>. User may simply press <b>Ctrl+Alt+T<\/b> on keyboard to open terminal and run command to install it:<\/p>\n<pre>sudo dpkg --add-architecture i386 &amp;&amp; sudo apt install wine<\/pre>\n<p><i>Type user password (no asterisk feedback) and hit Enter to authentication for sudo.<\/i><\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/apt-wine-stable.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-38817\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/apt-wine-stable-600x398.webp\" alt=\"\" width=\"600\" height=\"398\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/apt-wine-stable-600x398.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/apt-wine-stable-300x199.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/apt-wine-stable-768x509.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/apt-wine-stable.webp 777w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>After installed package run <b>winecfg<\/b> in terminal to generate configuration file. And, run command to make link the <code>.desktop<\/code> file:<\/p>\n<pre>sudo ln -s \/usr\/share\/doc\/wine\/examples\/wine.desktop \/usr\/share\/applications\/<\/pre>\n<p>Finally, you may right-click on an EXE file to run via &#8220;Wine Windows Program Loader&#8221; option:<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/load-exe-wine.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-38824\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/load-exe-wine-600x313.jpg\" alt=\"\" width=\"600\" height=\"313\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/load-exe-wine-600x313.jpg 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/load-exe-wine-300x156.jpg 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/load-exe-wine-768x400.jpg 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/load-exe-wine.jpg 1166w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<h3>Option 2: Install Latest Wine 11.0 from its official repository:<\/h3>\n<p>The Wine developer team provides an official apt repository for Debian\/Ubuntu based systems. Now the repository contains <b>Wine 11.0 stable<\/b>, and the new Dev versions.<\/p>\n<p><b>The repository so far supports <del datetime=\"2026-01-14T07:35:06+00:00\">Ubuntu 20.04<\/del>, Ubuntu 22.04, Ubuntu 24.04, Ubuntu 25.04 and 25.10! It also works for Ubuntu 20.04, 18.04, and 16.04, but old versions will be installed (Wine 5.0.3 for 16.04, and Wine 8.0.1 for 18.04).<\/b><\/p>\n<p>1. Install Wine key<\/p>\n<p>The repository now has updated with new method to install the key to <a href=\"https:\/\/wiki.debian.org\/DebianRepository\/UseThirdParty\" target=\"_blank\" rel=\"noopener\">follow Debian policy<\/a>, as apt-key is deprecated. However, it&#8217;s still ASCII-armored key so far.<\/p>\n<p>Press <b>Ctrl+Alt+T<\/b> on keyboard to open terminal. When it opens, create the directory for storing the keys:<\/p>\n<pre>sudo mkdir -p \/etc\/apt\/keyrings<\/pre>\n<p>Then, run the single command to download the key, dearmor, and move to &#8220;<i>\/etc\/apt\/keyrings<\/i>&#8221; directory:<\/p>\n<pre>wget -qO - https:\/\/dl.winehq.org\/wine-builds\/winehq.key | gpg --dearmor | sudo tee \/etc\/apt\/keyrings\/winehq-archive.key<\/pre>\n<p><i>Type user password (no visual feedback) when it asks. And, the command should output unreadable text as the screenshot below shows you:<\/i><\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/wine-keyring.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-45281\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/wine-keyring-700x454.webp\" alt=\"\" width=\"610\" height=\"396\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/wine-keyring-700x454.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/wine-keyring-300x195.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/wine-keyring-768x498.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/wine-keyring.webp 822w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/a><\/p>\n<h4>2. Add Wine repository:<\/h4>\n<p>Next run the commands below one by one to download the repository setup file and move to &#8220;\/etc\/apt\/sources.list.d&#8221; directory.<\/p>\n<pre>sudo wget -NP \/etc\/apt\/sources.list.d\/ https:\/\/dl.winehq.org\/wine-builds\/ubuntu\/dists\/<b>$(lsb_release -sc)<\/b>\/winehq-<b>$(lsb_release -sc)<\/b>.sources<\/pre>\n<p><b>NOTE: This command is for Ubuntu only. &#8220;<code>$(lsb_release -sc)<\/code>&#8221; returns system&#8217;s code-name. For Linux Mint and other Ubuntu based systems, replace it with <code>jammy<\/code> (22.04), <code>focal<\/code> (20.04), or <code>noble<\/code> (24.04) depends on which Ubuntu edition your system is based on.<\/b><\/p>\n<p>If you don&#8217;t know which Ubuntu edition your system is based on, run <code>cat \/etc\/os-release<\/code> to tell through <code>UBUNTU_CODENAME<\/code> section.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/download-winesources.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-45284\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/download-winesources-700x361.webp\" alt=\"\" width=\"610\" height=\"315\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/download-winesources-700x361.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/download-winesources-300x155.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/download-winesources-768x396.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/download-winesources.webp 1203w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/a><\/p>\n<h4>3. Update cache<\/h4>\n<p>Before installing any package from that repository, you need to refresh system cache by running command in terminal:<\/p>\n<pre>sudo apt update<\/pre>\n<p>In the output, it should include a line look like <code>Get\/Hit:x https:\/\/dl.winehq.org\/wine-builds\/ubuntu xxx<\/code><\/p>\n<h4>4. Install Wine:<\/h4>\n<p>The Wine repository provides three Wine packages:<\/p>\n<ul>\n<li><b>winehq-stable<\/b> &#8211; the stable version (v11.0 so far)<\/li>\n<li><b>winehq-devel<\/b> &#8211; the latest development release.<\/li>\n<li><b>winehq-staging<\/b> &#8211; the testing version with patches applied on top of the corresponding wine-devel<\/li>\n<\/ul>\n<p>Select install one of the packages by running command below in terminal:<\/p>\n<ul>\n<li>To install the stable edition use command:\n<pre>sudo apt install winehq-stable<\/pre>\n<\/li>\n<li>Install wine development release via:\n<pre>sudo apt install winehq-devel<\/pre>\n<\/li>\n<li>Or install wine-staging via command:\n<pre>sudo apt install winehq-staging<\/pre>\n<\/li>\n<\/ul>\n<p><b><del datetime=\"2023-04-08T09:35:17+00:00\">NOTE: It does not re-build old packages for new Linux systems. <code>winehq-stable<\/code> so far is not available for Ubuntu 22.04, since the new LTS is released after wine stable 7.0. User may wait for the next stable release (v7.0.1 or v8.0).<\/del><\/b><\/p>\n<p>After installation, right-click on your EXE file and start it via Wine program loader option. See <a href=\"https:\/\/appdb.winehq.org\/\" target=\"_blank\" rel=\"noopener\">if your app works with wine<\/a>.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/open-exe-wine.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-38832\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/open-exe-wine-600x300.webp\" alt=\"\" width=\"600\" height=\"300\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/open-exe-wine-600x300.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/open-exe-wine-300x150.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/open-exe-wine-768x384.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/open-exe-wine.webp 819w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<h3>How to Remove Wine:<\/h3>\n<p>1. To remove the Wine package, simply open terminal and run commands:<\/p>\n<pre>sudo apt remove wine winehq-stable winehq-staging winehq-devel<\/pre>\n<p>There will be local configuration files and app data left under <b>.wine<\/b> and <b>.local\/share\/applications<\/b>. They are hidden folders, press <b>Ctrl+H<\/b> in file manager to toggle display and remove them as you want.<\/p>\n<p>2. To remove the Wine repository, open terminal (Ctrl+Alt+T) and run command:<\/p>\n<pre>sudo rm \/etc\/apt\/sources.list.d\/winehq-*.sources<\/pre>\n<p>And remove the repository key via command:<\/p>\n<pre>sudo rm \/etc\/apt\/keyrings\/winehq-archive.key<\/pre>\n<p>Finally apply changes by running <code>sudo apt update<\/code> to refresh system package cache.<\/p>","protected":false},"excerpt":{"rendered":"<p>To run Microsoft Windows applications in Ubuntu Linux, Wine or CrossOver (paid version) is a good choice. And here&#8217;s how to install and use Wine in Ubuntu 22.04 LTS, Ubuntu 24.04, and Ubuntu 20.04 In this tutorial, you&#8217;ll see 2 ways to install Wine in Ubuntu. Choose either one that you prefer. NOTE: NOT all [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":35331,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[173],"class_list":["post-38816","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-howtos","tag-wine"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/38816","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/comments?post=38816"}],"version-history":[{"count":0,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/38816\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media\/35331"}],"wp:attachment":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media?parent=38816"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/categories?post=38816"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/tags?post=38816"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}