Comments (15)
Heh, I've overlooked the problem. I've got bsdtar
, while GNU tar
is required. So, brew install gnu-tar
solved the problem.
from ansible-role-zsh.
I think that role should be provisioned on clean macOS only with brew installed, but I don't tested it on clean macOS... So you can add brew install gnu-tar
and/or brew install fzf
to role.
from ansible-role-zsh.
It is not working because the unarchive module uses /usr/bin/tar and installing gnu-tar does not replace the symlink of tar from bsdtar to gnu-tar
from ansible-role-zsh.
To aid any future dwellers who like me landed here when looking for an answer to:
Command
/usr/bin/tar
could not handle archive: Unable to list files in the archive:/usr/bin/tar
: You may not specify more than one-Acdtrux
,--delete
or--test-label
option
In my case the cause turned out to be a mere typo in the extra_opts
resulting in a command line option that tar
didn't grok.
Similarly, I suspect that the -xz
that @kenorb included in their extra_opts
could have been the cause for failure if the xz
utility needed for this option wasn't installed.
from ansible-role-zsh.
Still not sure if this should be handled in the role.
from ansible-role-zsh.
@gaizeror, just replace symlink yourself.
from ansible-role-zsh.
@popstas I am new to macOS, but I get permissions denied (also with sudo)
from ansible-role-zsh.
@gaizeror, try to become root with sudo -i
from ansible-role-zsh.
I tried, so wierd root cant change symlink
from ansible-role-zsh.
I meet the same problem in my CentOS7, but I have both the /bin/gtar
and /bin/unzip
.
The odd thing was it works in my Debian9, This is both funny and annoying ……
Then I find this.
$ tar xvf /home/cupen/.ansible/tmp/ansible-tmp-1523707936.0375483-68992850281293/source
tar (child): cannot run bzip2: No such file or directory
tar (child): trying lbzip2
tar (child): lbzip2: Cannot exec: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
HOLY SHIT ! OK, run yum install bzip2
, then it works.
from ansible-role-zsh.
I installed manually fzf with
brew install fzf
from ansible-role-zsh.
@gaizeror Inability to edit /usr/bin on macOS is the result of SIP. Once it is disabled (requires restart & Recovery partition), you can make changes you need.
from ansible-role-zsh.
Got similar error on Ubuntu 22.04:
"msg": "Failed to find handler for \"/tmp/site.tar.gz\". Make sure the required command to extract the file is installed. Command \"/usr/bin/unzip\" could not handle archive. Command \"/usr/bin/tar\" could not handle archive."
- name: Extract site
ansible.builtin.unarchive:
src: /tmp/site.tar.gz
dest: /var/www/html
owner: root
group: root
mode: '0755'
remote_src: yes
extra_opts: "--no-same-owner --no-same-permissions -xz"
$ ansible --version
ansible 2.10.8
config file = None
configured module search path = ['/var/lib/jenkins/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python3/dist-packages/ansible
executable location = /usr/bin/ansible
python version = 3.10.6 (main, May 29 2023, 11:10:38) [GCC 11.3.0]
$ tar --version
tar (GNU tar) 1.34
$ unzip --version
caution: both -n and -o specified; ignoring -o
UnZip 6.00 of 20 April 2009, by Debian. Original by Info-ZIP.
from ansible-role-zsh.
@kenorb , is it relative to project ansible-role-zsh?
from ansible-role-zsh.
Is it relative to project ansible-role-zsh?
It is vanilla Ansible, sorry. But the issue could be related.
from ansible-role-zsh.
Related Issues (20)
- How enable kubectl plugin? HOT 3
- kubectl helm and other oh my zsh plugins doesn't work HOT 1
- No zprofile? HOT 3
- Feature: DIR_ETC and DIR_PATH_HILIGHT coloring support HOT 1
- Unsupported paramters for (homebrew) module HOT 2
- vim: please remove default editor HOT 1
- autosuggestions: Wishing to delete the Ctrl+U binding HOT 1
- Windows line-endings? HOT 7
- How to deal with autoload and oh-my-zsh plugins? HOT 1
- please remove zsh_reload HOT 3
- http://ppa.launchpad.net/morphis/anbox-support/ubuntu focal Release 404 Not Found HOT 1
- Version comparison: '<' not supported between instances of 'str' and 'int' HOT 2
- ansible 2.13.1 ''str object'' has no attribute ''hotkey''' HOT 11
- 'antigen bundle [' in ~/.zshrc HOT 4
- TASK [viasite-ansible.zsh : Download fzf to ~root/bin] fails on arm architecture HOT 1
- no hotkeys in .zshrc
- Feature request: MacOS install guide or zero-knowledge install HOT 1
- create direcoty ~test1/.antigen
- ALMA 9.3 fdfind: command not found... HOT 1
- TASK [viasite-ansible.zsh : Install zsh, git, wget, fd-find] failed on Mac 13.6.4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ansible-role-zsh.