# The following packages have been kept back: ffmpeg

**URL:** <https://dietpi.com/forum/t/the-following-packages-have-been-kept-back-ffmpeg/17234>\
**Category:** Troubleshooting\
**Tags:** services\
**Created:** [2 July 2023 13:40 UTC](https://dietpi.com/forum/t/the-following-packages-have-been-kept-back-ffmpeg/17234 "2023-07-02T13:40:51Z")\
**Posts on this page:** 7\
**Page:** 3

<div class="post-metadata">

**Author:** ![urostor](https://dietpi.com/forum/user_avatar/dietpi.com/urostor/32/1891_2.png) [@urostor](https://dietpi.com/forum/u/urostor)\
**Post date:** [13 July 2023 22:28 UTC](https://dietpi.com/forum/t/the-following-packages-have-been-kept-back-ffmpeg/17234/41 "2023-07-13T22:28:31Z")

</div>

Nah, it has been running on bookworm for a few months now.

---

<div class="post-metadata">

**Author:** ![MichaIng](https://dietpi.com/forum/user_avatar/dietpi.com/michaing/32/7_2.png) [@MichaIng](https://dietpi.com/forum/u/MichaIng)\
**Post date:** [20 July 2023 17:35 UTC](https://dietpi.com/forum/t/the-following-packages-have-been-kept-back-ffmpeg/17234/42 "2023-07-20T17:35:29Z")

</div>

I found a nice solution to prevent the conflicting package installs as well as enforce the install of the intended FFmpeg 5.1 packages from Debian Bookworm with a single APT pin. Live patch merged, so this should be offered to all RPi Bookworm users on next `dietpi-update` check or execution.

---

<div class="post-metadata">

**Author:** ![mail2rst](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/m/ee59a6/32.png) [@mail2rst](https://dietpi.com/forum/u/mail2rst)\
**Post date:** [20 July 2023 22:50 UTC](https://dietpi.com/forum/t/the-following-packages-have-been-kept-back-ffmpeg/17234/43 "2023-07-20T22:50:56Z")

</div>

I have apply new patch and run command to upgrade homeassistant. in the upgrading homeassistant system fail & following are the log shows

```auto
File "/tmp/pip-build-env-663zuh6a/overlay/lib/python3.11/site-packages/setuptools/_distutils/command/sdist.py", line 336, in _add_defaults_ext
          self.filelist.extend(build_ext.get_source_files())
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "<string>", line 204, in get_source_files
        File "/tmp/pip-build-env-663zuh6a/overlay/lib/python3.11/site-packages/setuptools/_distutils/cmd.py", line 107, in __getattr__
          raise AttributeError(attr)
      AttributeError: cython_sources
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.
root@rpi:~# `

```

---

<div class="post-metadata">

**Author:** ![mail2rst](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/m/ee59a6/32.png) [@mail2rst](https://dietpi.com/forum/u/mail2rst)\
**Post date:** [20 July 2023 23:29 UTC](https://dietpi.com/forum/t/the-following-packages-have-been-kept-back-ffmpeg/17234/44 "2023-07-20T23:29:52Z")

</div>

```auto
File "/tmp/pip-build-env-mgixumnq/overlay/lib/python3.11/site-packages/setuptools/_distutils/core.py", line
│ 201, in run_commands
│ dist.run_commands()
│ File "/tmp/pip-build-env-mgixumnq/overlay/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line
│ 969, in run_commands
│ self.run_command(cmd)
│ File "/tmp/pip-build-env-mgixumnq/overlay/lib/python3.11/site-packages/setuptools/dist.py", line 1234, in
│ run_command
│ super().run_command(command)
│ File "/tmp/pip-build-env-mgixumnq/overlay/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line
│ 988, in run_command
│ cmd_obj.run()
│ File "/tmp/pip-build-env-mgixumnq/overlay/lib/python3.11/site-packages/setuptools/command/egg_info.py", line
│ 314, in run
│ self.find_sources()
│ File "/tmp/pip-build-env-mgixumnq/overlay/lib/python3.11/site-packages/setuptools/command/egg_info.py", line
│ 322, in find_sources
│ mm.run()
│ File "/tmp/pip-build-env-mgixumnq/overlay/lib/python3.11/site-packages/setuptools/command/egg_info.py", line
│ 551, in run
│ self.add_defaults()
│ File "/tmp/pip-build-env-mgixumnq/overlay/lib/python3.11/site-packages/setuptools/command/egg_info.py", line
│ 589, in add_defaults
│ sdist.add_defaults(self)
│ File "/tmp/pip-build-env-mgixumnq/overlay/lib/python3.11/site-packages/setuptools/command/sdist.py", line
│ 104, in add_defaults
│ super().add_defaults()
│ File
│ "/tmp/pip-build-env-mgixumnq/overlay/lib/python3.11/site-packages/setuptools/_distutils/command/sdist.py", line 251,
│ in add_defaults
│ self._add_defaults_ext()
│ File
│ "/tmp/pip-build-env-mgixumnq/overlay/lib/python3.11/site-packages/setuptools/_distutils/command/sdist.py", line 336,
│ in _add_defaults_ext
│ self.filelist.extend(build_ext.get_source_files())
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
│ File "<string>", line 204, in get_source_files
│ File "/tmp/pip-build-env-mgixumnq/overlay/lib/python3.11/site-packages/setuptools/_distutils/cmd.py", line
│ 107, in __getattr__
│ raise AttributeError(attr)
│ AttributeError: cython_sources
│ [end of output]
│
│ note: This error originates from a subprocess, and is likely not a problem with pip.
│ error: subprocess-exited-with-error
│
│ × Getting requirements to build wheel did not run successfully.
│ │ exit code: 1
│ ╰─> See above for output.
│
│ note: This error originates from a subprocess, and is likely not a problem with pip.

```

---

<div class="post-metadata">

**Author:** ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)\
**Post date:** [21 July 2023 09:21 UTC](https://dietpi.com/forum/t/the-following-packages-have-been-kept-back-ffmpeg/17234/45 "2023-07-21T09:21:16Z")

</div>

@mail2rst where is the relation between your issue and the Debian package ffmpeg?

---

<div class="post-metadata">

**Author:** ![urostor](https://dietpi.com/forum/user_avatar/dietpi.com/urostor/32/1891_2.png) [@urostor](https://dietpi.com/forum/u/urostor)\
**Post date:** [21 July 2023 10:33 UTC](https://dietpi.com/forum/t/the-following-packages-have-been-kept-back-ffmpeg/17234/46 "2023-07-21T10:33:07Z")

</div>

I have received the live patch notification - should I remove the previous pinning hacks before applying it?

---

<div class="post-metadata">

**Author:** ![mail2rst](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/m/ee59a6/32.png) [@mail2rst](https://dietpi.com/forum/u/mail2rst)\
**Post date:** [21 July 2023 13:07 UTC](https://dietpi.com/forum/t/the-following-packages-have-been-kept-back-ffmpeg/17234/47 "2023-07-21T13:07:19Z")

</div>

When last time, I tried to upgrade home-assistant on my raspberry Pi-B2 (32 bit CPU & operating system) & system fail that time. that time it was mentioned it was due to ffmpeg/bookworm contradiction

> [@Home Assistant finally integrates Python 3.11](https://dietpi.com/forum/t/home-assistant-finally-integrates-python-3-11/17033/44):
>
> While on my raspberry pi B2 i gave “dietpi-software reinstall 157” command. the installation brokes with error. My raspberry pi B2 already migrated to bookworm & upto date through ‘dietpi-update’ command.

. I have applied the hot patch now i think python 3.11 installed now home assistant is not working.

[Previous page](https://dietpi.com/forum/t/the-following-packages-have-been-kept-back-ffmpeg/17234.md?page=2)
