Skip to content

Fix: Error: -exec [args...] + isn't supported yet. Only -exec [args...] ; #366

Closed

Description

@sylvestre

Error: -exec [args...] + isn't supported yet. Only -exec [args...] ;
example:
find . ! -newermt 'jan 01, 2000' -exec touch -d@1714807765 {} +

Activity

  1. hanbings commented on May 10, 2024

    @hanbings
    Collaborator

    Looks like what is mentioned at #6.
    In addition to exec, it is also necessary to support the + syntax of execdir.

  2. winstonma commented on Mar 18, 2025

    @winstonma

    Yep I faced this issue after replacing findutils through oxidizr in Ubuntu 24.10:

    This is a snippet of the script that uses find in /usr/share/initramfs-tools/hooks/udev

    ...
    find -L /usr/lib/systemd/network -name '*.link*' -execdir cp -r -pt "$DESTDIR/usr/lib/systemd/network/" '{}' +
    ...
    
  3. hanbings commented on Mar 19, 2025

    @hanbings
    Collaborator

    Yep I faced this issue after replacing findutils through oxidizr in Ubuntu 24.10:

    This is a snippet of the script that uses find in /usr/share/initramfs-tools/hooks/udev

    ...
    find -L /usr/lib/systemd/network -name '*.link*' -execdir cp -r -pt "$DESTDIR/usr/lib/systemd/network/" '{}' +
    ...
    

    I'm very sorry for spending so much time on this issue. I'll do my best to complete it within two weeks. If you have any ideas for solving it, feel free to discuss them with me — PRs are also welcome. :)

  4. winstonma commented on Mar 19, 2025

    @winstonma

    I'm posting this because whenever an error occurs on their system, they seem to be aware of the root cause, at least in my experience. The error typically happens when the udev script is executed after a new kernel is installed or when Plymouth is being upgraded.

    Before the fix comes, the short-term solution is to reinstall the original findutils package.

    #METHOD #1
    sudo oxidizr disable --experiments findutils
    
    # METHOD #2
    sudo apt install --reinstall findutils
    
  5. linked a pull request that will close this issuefind: Implement exec[dir] + #515on Mar 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions