Using the zip command, I am sometimes getting the following error:
*** buffer overflow detected ***: terminated
Some file names in the material being backed up contain sight single quotation marks, (ascii code E2 80 99). This is only a problem when using zip on ubuntu 24.04. It works on ubuntu 22.04.

  • I find it hard to believe something like zip is failing like this, it's got to be something I'm doing however, if no one can give me a hint today I'll file a bug report then reference it here.
    – quill
    Commented May 23 at 17:36

1 Answer 1


As a work-around

  1. Obtain an earlier version of zip. In my case, I took /usr/bin/zip from a Ubuntu 22.04
  2. Set aside /usr/bin/zip, perhaps as /usr/bin/zip24
  3. Put the older version of zip somewhere, in my case I placed it in /usr/local/bin/zip
  4. Make a symbolic link at /usr/bin/zip pointing to the older version.
    In my case the command (run from directory /usr/bin) was
    ls -s /usr/local/bin/zip zip

Using this older version I generated a zip file which, unzipped on 24.04 compared exactly with the original material - in short it works.

  • 1
    I have filed bug 2066991 in bugs.launchpad.net for this problem.
    – quill
    Commented May 23 at 21:57
  • ubuntu also has bug 2062535 which may be a similar situation.
    – quill
    Commented May 24 at 1:16
  • Current status. My bug, 2066991 has now been marked a duplicate of 2062535. 2062535 has now been marked priority high and status is Triaged. Fedora has a patch for it src.fedoraproject.org/rpms/zip/raw/rawhide/f/…. No word yet on a fix for Ubuntu 24.04
    – quill
    Commented May 29 at 13:40
  • What will happen when ubuntu releases a fix to zip? Will the update replace the symbolic link created in /usr/bin or, will it follow the link and thus replace the temporary zip code placed at /usr/local/bin/zip
    – quill
    Commented May 29 at 13:45

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .