# Error when installing 24.04

**URL:** <https://forums.ankiweb.net/t/error-when-installing-24-04/43037>\
**Category:** Help\
**Created:** [March 31, 2024, 12:52pm UTC](https://forums.ankiweb.net/t/error-when-installing-24-04/43037 "2024-03-31T12:52:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Expertium](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/expertium/32/24176_2.png) [@Expertium](https://forums.ankiweb.net/u/Expertium)\
**Post date:** [March 31, 2024, 12:52pm UTC](https://forums.ankiweb.net/t/error-when-installing-24-04/43037/1 "2024-03-31T12:52:40Z")

</div>

When trying to upgrade from rc3 to the latest 24.04, I get the following error (Windows 10):  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/3X/b/0/b0f46479fec68461264ecacdf47b3e102939a6d7.png)

Update: I was unable to delete rc3 Anki files using the standard Windows uninstallation tools, so I had to delete them manually. Then I successfully installed 24.04.

---

<div class="post-metadata">

**Author:** ![PilgrimLyieu](https://avatars.discourse-cdn.com/v4/letter/p/3ec8ea/32.png) [@PilgrimLyieu](https://forums.ankiweb.net/u/PilgrimLyieu)\
**Post date:** [March 31, 2024, 1:07pm UTC](https://forums.ankiweb.net/t/error-when-installing-24-04/43037/2 "2024-03-31T13:07:42Z")

</div>

I found `mpv.exe` running in the background even Anki(latest rc version) is not open. I closed the mpv task in task manager and finish the installation.

* * *

This phenomenon is not found in the stable version.

---

<div class="post-metadata">

**Author:** ![sprvlcn](https://avatars.discourse-cdn.com/v4/letter/s/54ee81/32.png) [@sprvlcn](https://forums.ankiweb.net/u/sprvlcn)\
**Post date:** [March 31, 2024, 6:12pm UTC](https://forums.ankiweb.net/t/error-when-installing-24-04/43037/3 "2024-03-31T18:12:28Z")

</div>

This is an old problem.

When anki.exe starts, mpv.exe is also started. It is used for audio-visual playback.

If Anki crashes unexpectedly, then mpv.exe continues to run in the background. If you then try to install a new version, it tries to install mpv.exe along with it, but it can’t replace an .exe file if that program is currently running.

(Ironically, the “new” version of mpv.exe being installed is often byte-for-byte identical to the existing one)

The solution is to open Task Manager (Ctrl-Shift-Esc shortcut will do it), search for “mpv” in the text input box at the top of that window, then right-click on the line containing mpv and select “End Task”. After that, the install will work.

A long-term solution would be to rewrite Anki to call mpv’s functionality through an API rather than running it as a separate process.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/1X/8f1279ababc5879d54e4838989f606cfe55af8c7.jpeg) [@system](https://forums.ankiweb.net/u/system)\
**Post date:** [April 30, 2024, 6:13pm UTC](https://forums.ankiweb.net/t/error-when-installing-24-04/43037/4 "2024-04-30T18:13:15Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
