> On Sep 8, 2017, at 10:48 PM, Ruben V <[email protected]> wrote: > > Selecting previously unselected package ack-grep. > Preparing to unpack .../ack-grep_2.14-4_all.deb ... > Unpacking ack-grep (2.14-4) ... > dpkg: error processing archive > /var/cache/apt/archives/ack-grep_2.14-4_all.deb (--unpack): > trying to overwrite '/usr/bin/ack', which is the diverted version of > '/usr/bin/ack-grep' > Processing triggers for man-db (2.7.5-1) ... > Errors were encountered while processing: > /var/cache/apt/archives/ack-grep_2.14-4_all.deb > E: Sub-process /usr/bin/dpkg returned an error code (1) > > How can I fix this? I have ack-grep install via a bash script that executes > the dpkg diversion command eventhough the package doesn't install. Not sure > if that's helpful. > >
I can't answer directly, because even though I'm the author of ack, I don't have anything to do with the packaging. I can tell you that when ack was first released, there was already a package called ack (some sort of Japanese translation software I think) and so they called it ack-grep. Then they got rid of the old ack package, and started calling it ack instead of ack-grep. And I'm guessing that there's a problem that has come out of that. I Googled for "dpkg: error processing archive ack ack-grep" and turned up this Q&A on askubuntu.com that seems to be about the same problem you are having, from what little I know of the Debian-related package managers. https://askubuntu.com/questions/562623/upgrade-a-diverted-package-dpkg-error I hope that helps. Please let me know whether it does or not. If it does, then I will make a note of it on the install page for beyondgrep.com. Thanks, Andy -- Andy Lester => www.petdance.com -- You received this message because you are subscribed to the Google Groups "ack users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/ack-users. For more options, visit https://groups.google.com/d/optout.
