msg: No package matching 'realpath' is available

264 views
Skip to first unread message

Gerald masarap sya

unread,
May 4, 2018, 5:19:39 PM5/4/18
to pyroscope-users
Hello, I was trying to use ansible-playbook to install pimp-my -box and I got  this error "msg: No package matching 'realpath' is available". I try everything looking on the internet for help, but could not get any.  This is what was printed on my screen after I tried to install pimp-my box below.


 remote@DESKTOP-SGFJC4U:~/src/pimp-my-box$ ansible-playbook -i hosts site.yml -vvvv

PLAY [box] ********************************************************************

GATHERING FACTS ***************************************************************
<my-box> ESTABLISH CONNECTION FOR USER: remote
<my-box> REMOTE_MODULE setup
<my-box> EXEC ssh -C -tt -vvv -o ControlMaster=auto -o ControlPersist=60s -o ControlPath="/home/remote/.ansible/cp/ansible-ssh-%h-%p-%r" -o Port=22 -o IdentityFile="/home/remote/.ssh/id_rsa" -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 my-box /bin/sh -c 'mkdir -p $HOME/.local/ansible/tmp/ansible-tmp-1525463771.65-274924243985282 && chmod a+rx $HOME/.local/ansible/tmp/ansible-tmp-1525463771.65-274924243985282 && echo $HOME/.local/ansible/tmp/ansible-tmp-1525463771.65-274924243985282'
<my-box> PUT /tmp/tmpHzNZdU TO /home/setup/.local/ansible/tmp/ansible-tmp-1525463771.65-274924243985282/setup
<my-box> EXEC ssh -C -tt -vvv -o ControlMaster=auto -o ControlPersist=60s -o ControlPath="/home/remote/.ansible/cp/ansible-ssh-%h-%p-%r" -o Port=22 -o IdentityFile="/home/remote/.ssh/id_rsa" -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 my-box /bin/sh -c 'sudo -k && sudo -H -S -p "[sudo via ansible, key=psspkkzbxucqgytzuggkjhfcdutjtcdp] password: " -u root /bin/sh -c '"'"'echo BECOME-SUCCESS-psspkkzbxucqgytzuggkjhfcdutjtcdp; LANG=C LC_CTYPE=C /usr/bin/python /home/setup/.local/ansible/tmp/ansible-tmp-1525463771.65-274924243985282/setup; rm -rf /home/setup/.local/ansible/tmp/ansible-tmp-1525463771.65-274924243985282/ >/dev/null 2>&1'"'"''
ok: [my-box]

TASK: [common | Update APT cache] *********************************************
<my-box> ESTABLISH CONNECTION FOR USER: remote
<my-box> REMOTE_MODULE apt
<my-box> EXEC ssh -C -tt -vvv -o ControlMaster=auto -o ControlPersist=60s -o ControlPath="/home/remote/.ansible/cp/ansible-ssh-%h-%p-%r" -o Port=22 -o IdentityFile="/home/remote/.ssh/id_rsa" -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 my-box /bin/sh -c 'mkdir -p $HOME/.local/ansible/tmp/ansible-tmp-1525463773.16-266261797964250 && chmod a+rx $HOME/.local/ansible/tmp/ansible-tmp-1525463773.16-266261797964250 && echo $HOME/.local/ansible/tmp/ansible-tmp-1525463773.16-266261797964250'
<my-box> PUT /tmp/tmpIOkecJ TO /home/setup/.local/ansible/tmp/ansible-tmp-1525463773.16-266261797964250/apt
<my-box> EXEC ssh -C -tt -vvv -o ControlMaster=auto -o ControlPersist=60s -o ControlPath="/home/remote/.ansible/cp/ansible-ssh-%h-%p-%r" -o Port=22 -o IdentityFile="/home/remote/.ssh/id_rsa" -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 my-box /bin/sh -c 'sudo -k && sudo -H -S -p "[sudo via ansible, key=hzlqzrxjbkcmqdflzffknwzitggpcvav] password: " -u root /bin/sh -c '"'"'echo BECOME-SUCCESS-hzlqzrxjbkcmqdflzffknwzitggpcvav; LANG=C LC_CTYPE=C /usr/bin/python /home/setup/.local/ansible/tmp/ansible-tmp-1525463773.16-266261797964250/apt; rm -rf /home/setup/.local/ansible/tmp/ansible-tmp-1525463773.16-266261797964250/ >/dev/null 2>&1'"'"''
ok: [my-box] => {"changed": false}

TASK: [common | Install basic tools] ******************************************
<my-box> ESTABLISH CONNECTION FOR USER: remote
<my-box> REMOTE_MODULE apt name=autossh,bash-completion,bc,bind9-host,bzip2,cfv,colordiff,curl,gawk,genisoimage,git,haveged,htop,httpie,inxi,iotop,lftp,links,lnav,lsb-release,lsof,mailutils,mediainfo,mkvtoolnix,ncdu,p7zip-full,psmisc,python-virtualenv,realpath,sysstat,tmux,unzip,vim,virtualenvwrapper,vnstat,wget,zip state=latest
<my-box> EXEC ssh -C -tt -vvv -o ControlMaster=auto -o ControlPersist=60s -o ControlPath="/home/remote/.ansible/cp/ansible-ssh-%h-%p-%r" -o Port=22 -o IdentityFile="/home/remote/.ssh/id_rsa" -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 my-box /bin/sh -c 'mkdir -p $HOME/.local/ansible/tmp/ansible-tmp-1525463790.2-126968624379719 && chmod a+rx $HOME/.local/ansible/tmp/ansible-tmp-1525463790.2-126968624379719 && echo $HOME/.local/ansible/tmp/ansible-tmp-1525463790.2-126968624379719'
<my-box> PUT /tmp/tmpoJGwyB TO /home/setup/.local/ansible/tmp/ansible-tmp-1525463790.2-126968624379719/apt
<my-box> EXEC ssh -C -tt -vvv -o ControlMaster=auto -o ControlPersist=60s -o ControlPath="/home/remote/.ansible/cp/ansible-ssh-%h-%p-%r" -o Port=22 -o IdentityFile="/home/remote/.ssh/id_rsa" -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 my-box /bin/sh -c 'sudo -k && sudo -H -S -p "[sudo via ansible, key=bwmtsxwiyoezhgmkiaowmunbzpkxxzzx] password: " -u root /bin/sh -c '"'"'echo BECOME-SUCCESS-bwmtsxwiyoezhgmkiaowmunbzpkxxzzx; LANG=C LC_CTYPE=C /usr/bin/python /home/setup/.local/ansible/tmp/ansible-tmp-1525463790.2-126968624379719/apt; rm -rf /home/setup/.local/ansible/tmp/ansible-tmp-1525463790.2-126968624379719/ >/dev/null 2>&1'"'"''
failed: [my-box] => (item=autossh,bash-completion,bc,bind9-host,bzip2,cfv,colordiff,curl,gawk,genisoimage,git,haveged,htop,httpie,inxi,iotop,lftp,links,lnav,lsb-release,lsof,mailutils,mediainfo,mkvtoolnix,ncdu,p7zip-full,psmisc,python-virtualenv,realpath,sysstat,tmux,unzip,vim,virtualenvwrapper,vnstat,wget,zip) => {"failed": true, "item": "autossh,bash-completion,bc,bind9-host,bzip2,cfv,colordiff,curl,gawk,genisoimage,git,haveged,htop,httpie,inxi,iotop,lftp,links,lnav,lsb-release,lsof,mailutils,mediainfo,mkvtoolnix,ncdu,p7zip-full,psmisc,python-virtualenv,realpath,sysstat,tmux,unzip,vim,virtualenvwrapper,vnstat,wget,zip"}
msg: No package matching 'realpath' is available

FATAL: all hosts have already failed -- aborting

PLAY RECAP ********************************************************************
           to retry, use: --limit @/home/remote/site.retry

my-box                     : ok=2    changed=0    unreachable=0    failed=1


I hope I can get some help here. Thanks


pyroscope

unread,
May 5, 2018, 3:18:22 PM5/5/18
to pyroscope-users
That is a problem of the target OS, which you did not specify.
Message has been deleted

Gerald masarap sya

unread,
May 5, 2018, 5:46:41 PM5/5/18
to pyroscope-users
It is ubuntu 18.04

pyroscope

unread,
May 6, 2018, 10:02:40 AM5/6/18
to pyroscope-users
fixed.
Message has been deleted
Message has been deleted

Gerald masarap sya

unread,
May 6, 2018, 12:08:05 PM5/6/18
to pyroscope-users
I did an git pull --ff-only update and try to install it again, but this what print out on my screen. It is saying some thing about ["msg": "No package matching 'libav-tools' is available" ] and then it stop.

remote@DESKTOP-SGFJC4U:~/src/pimp-my-box$ sudo ansible-playbook -i hosts site.yml -vv
ansible-playbook 2.5.2
  config file = /etc/ansible/ansible.cfg
  configured module search path = [u'/home/remote/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python2.7/dist-packages/ansible
  executable location = /usr/bin/ansible-playbook
  python version = 2.7.12 (default, Dec  4 2017, 14:50:18) [GCC 5.4.0 20160609]
Using /etc/ansible/ansible.cfg as config file
[DEPRECATION WARNING]: 'include' for playbook includes. You should use 'import_playbook' instead. This feature will be
removed in version 2.8. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
[DEPRECATION WARNING]: Instead of sudo/sudo_user, use become/become_user and make sure become_method is 'sudo'
(default). This feature will be removed in version 2.6. Deprecation warnings can be disabled by setting
deprecation_warnings=False in ansible.cfg.
statically imported: /home/remote/src/pimp-my-box/roles/rtorrent-ps/tasks/config.yml
statically imported: /home/remote/src/pimp-my-box/roles/pyroscope-cli/tasks/cron.yml
statically imported: /home/remote/src/pimp-my-box/roles/rutorrent/tasks/install.yml
statically imported: /home/remote/src/pimp-my-box/roles/rutorrent/tasks/fpm.yml
statically imported: /home/remote/src/pimp-my-box/roles/rutorrent/tasks/nginx.yml

PLAYBOOK: site.yml *****************************************************************************************************
5 plays in site.yml

PLAY [box] *************************************************************************************************************

TASK [Gathering Facts] *************************************************************************************************
task path: /home/remote/src/pimp-my-box/common.yml:3
ok: [my-box]
META: ran handlers

TASK [common : Update APT cache] ***************************************************************************************
task path: /home/remote/src/pimp-my-box/roles/common/tasks/main.yml:2
changed: [my-box] => {"cache_update_time": 1525622749, "cache_updated": true, "changed": true}

TASK [common : Install basic tools] ************************************************************************************
task path: /home/remote/src/pimp-my-box/roles/common/tasks/main.yml:6
ok: [my-box] => (item=[u'autossh', u'bash-completion', u'bc', u'bind9-host', u'bzip2', u'cfv', u'colordiff', u'coreutils', u'curl', u'gawk', u'genisoimage', u'git', u'haveged', u'htop', u'httpie', u'inxi', u'iotop', u'lftp', u'links', u'lnav', u'lsb-release', u'lsof', u'mailutils', u'mediainfo', u'mkvtoolnix', u'ncdu', u'p7zip-full', u'psmisc', u'python-virtualenv', u'sysstat', u'tmux', u'unzip', u'vim', u'virtualenvwrapper', u'vnstat', u'wget', u'zip']) => {"cache_update_time": 1525622749, "cache_updated": false, "changed": false, "item": ["autossh", "bash-completion", "bc", "bind9-host", "bzip2", "cfv", "colordiff", "coreutils", "curl", "gawk", "genisoimage", "git", "haveged", "htop", "httpie", "inxi", "iotop", "lftp", "links", "lnav", "lsb-release", "lsof", "mailutils", "mediainfo", "mkvtoolnix", "ncdu", "p7zip-full", "psmisc", "python-virtualenv", "sysstat", "tmux", "unzip", "vim", "virtualenvwrapper", "vnstat", "wget", "zip"]}

TASK [common : Install ffmpeg] *****************************************************************************************
task path: /home/remote/src/pimp-my-box/roles/common/tasks/main.yml:47
skipping: [my-box] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [common : Install libav] ******************************************************************************************
task path: /home/remote/src/pimp-my-box/roles/common/tasks/main.yml:51
fatal: [my-box]: FAILED! => {"changed": false, "msg": "No package matching 'libav-tools' is available"}
        to retry, use: --limit @/home/remote/src/pimp-my-box/site.retry

PLAY RECAP *************************************************************************************************************
my-box                     : ok=3    changed=1    unreachable=0    failed=1

pyroscope

unread,
May 6, 2018, 2:42:27 PM5/6/18
to pyroscope-users
Well, open an issue for Bionic support, but don't hold your breath anyway.

Try https://rtorrent-ps.readthedocs.io/en/latest/install.html#manual-turn-key-system-setup if you're in a hurry.

Gerald masarap sya

unread,
May 6, 2018, 3:31:30 PM5/6/18
to pyroscope-users
Thanks for your reply, but I'm new here so how do I open an issue for Bionic support

Gerald masarap sya

unread,
May 6, 2018, 7:17:49 PM5/6/18
to pyroscope-users

It was installing when I Remove the lines for libav from within the main.yml file located in the common/taskfolder, but now it is stuck again look below.

TASK [rutorrent : Load distro-specific variables] **********************************************************************
ok: [my-box] => (item=/home/remote/src/pimp-my-box/roles/rutorrent/vars/os_default.yml)

TASK [rutorrent : Create rutorrent group] ******************************************************************************
changed: [my-box]

TASK [rutorrent : Create rutorrent user] *******************************************************************************
changed: [my-box]

TASK [rutorrent : Add rtorrent user to www-data group] *****************************************************************
changed: [my-box]

TASK [rutorrent : Create rutorrent home directories] *******************************************************************
changed: [my-box] => (item=.)
changed: [my-box] => (item=bin)
changed: [my-box] => (item=src)
changed: [my-box] => (item=profile)
changed: [my-box] => (item=profile/users)
changed: [my-box] => (item=profile/settings)
changed: [my-box] => (item=profile/torrents)

TASK [rutorrent : Install PHP packages] ********************************************************************************
failed: [my-box] (item=[u'php5-cli', u'php5-fpm', u'php-apc']) => {"changed": false, "item": ["php5-cli", "php5-fpm", "php-apc"], "msg": "No package matching 'php5-cli' is available"}


to retry, use: --limit @/home/remote/src/pimp-my-box/site.retry

PLAY RECAP *************************************************************************************************************
my-box : ok=60 changed=44 unreachable=0 failed=1

Reply all
Reply to author
Forward
0 new messages