atool doesn't automatically use the 7zip binary installed by apt-get install p7zip

Bug #1653273 reported by David Shepherd
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
atool (Debian)
Fix Released
Unknown
atool (Ubuntu)
Fix Released
Undecided
François Marier

Bug Description

By default atool seems to look for a 7zip binary called 7z, but doing `apt-get install p7zip` gets you a binary called 7zr.

What I did: `atool -x [7zip archive]`.
What I expected to happen: archive extracted to a dir in the current directory.
What happened: failure with the message
    Can't exec "7z": No such file or directory at /usr/bin/atool line 1869.
    7z: cannot execute - No such file or directory
    atool: 7z ...: non-zero return-code

Adding the line:

    path_7z 7zr

to /etc/atool.conf makes it work, at least for this use case.

Version details:

    david@david-entroware: ~ $
    lsb_release -rd
    Description: Ubuntu 16.04.1 LTS
    Release: 16.04
    david@david-entroware: ~ $
    apt-cache policy atool
    atool:
      Installed: 0.39.0-4
      Candidate: 0.39.0-4
      Version table:
     *** 0.39.0-4 500
            500 http://gb.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages
            500 http://gb.archive.ubuntu.com/ubuntu xenial/universe i386 Packages
            100 /var/lib/dpkg/status
    david@david-entroware: ~ $
    apt-cache policy p7zip
    p7zip:
      Installed: 9.20.1~dfsg.1-4.2
      Candidate: 9.20.1~dfsg.1-4.2
      Version table:
     *** 9.20.1~dfsg.1-4.2 500
            500 http://gb.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages
            100 /var/lib/dpkg/status

Revision history for this message
François Marier (fmarier) wrote :

It should work if you install the "p7zip-full" package instead of "p7zip".

I have updated the dependency and uploaded a new version to Debian.

Changed in atool (Ubuntu):
status: New → Fix Committed
Changed in atool (Debian):
status: Unknown → Fix Released
Revision history for this message
François Marier (fmarier) wrote :

I believe that this is fixed in Ubuntu 18.04.

Changed in atool (Ubuntu):
status: Fix Committed → Fix Released
assignee: nobody → François Marier (fmarier)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.