11

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 don't understand how a fix gets into the software updater arena but I think (finally) for this issue and more importantly, the issue involving characters such as the german Umlaut ("ö") might be in the works. The following just appeared in bug 2062535

** Merge proposal linked: https://code.launchpad.net/~zhsj/ubuntu/+source/zip/+git/zip/+merge/475986

quill
  • 1,015

3 Answers3

10

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
    ln -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.

Hugo
  • 146
quill
  • 1,015
3

In my case, zip was stumbling across a filename containing a german Umlaut ("ö"). I could rename the file and it came back to work.

singerla
  • 31
  • 1
2

There is a fixed version 3.0-14 in the Debian archives: https://packages.debian.org/trixie/zip

Edit: It is now also found on the Ubuntu 24.10 archives: https://launchpad.net/ubuntu/oracular/+source/zip

Just download the deb corresponding to your architecture and install it.