ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
From: "Евгений Терешков" <evg-krsk@yandex.ru>
To: ALT Linux sysadmins' discussion <sysadmins@lists.altlinux.org>
Subject: Re: [Sysadmins] ansible apt_rpm Couldn't find package
Date: Sat, 03 Dec 2016 00:40:46 +0700
Message-ID: <m337i6fcv5.fsf@thinkpad.evg-krsk.dyndns.org> (raw)
In-Reply-To: <1480676999.28283.8.camel@localhost.localdomain>

kkk1115 пишет:

> - name: Install rdesktop
>   apt_rpm:
>     pkg=rdesktop
>     state=present
> получаю ошибку
> TASK: [Install rdesktop]
> ****************************************************** 
> failed: [192.168.100.166] => {"failed": true}
> msg: 'apt-get -y install rdesktop' failed: E: Couldn't find package >
>
> как победить эту проблему ?

Это очень напоминает
https://github.com/ansible/ansible-modules-core/issues/2839 и если
действительно оно, то должно будет починиться при обновлении ансибля
(надеюсь, PR уже добрался до актуальной версии).

Можно конечно попробовать вручную наложить финальный патч из упомянутого
PR.

> при этом 
> - name: update
>   apt_rpm:
>     update_cache=yes
> прошло успешно.

Это можно отдельно не делать, а добавлять update_cache=yes в предыдущий пункт.

-- 
С уважением, Терешков Евгений.
Jabber ID: evg@altlinux.org, evg_krsk@jabber.ru

      reply	other threads:[~2016-12-02 17:40 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-02 11:09 kkk1115
2016-12-02 17:40 ` Евгений Терешков [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m337i6fcv5.fsf@thinkpad.evg-krsk.dyndns.org \
    --to=evg-krsk@yandex.ru \
    --cc=sysadmins@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux sysadmins discussion

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sysadmins/0 sysadmins/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sysadmins sysadmins/ http://lore.altlinux.org/sysadmins \
		sysadmins@lists.altlinux.org sysadmins@lists.altlinux.ru sysadmins@lists.altlinux.com
	public-inbox-index sysadmins

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sysadmins


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git