Strona 1 z 1

Nie działa sudo apt install ansible na Debian 10

: 11 grudnia 2019, 19:46
autor: Greg
Nie mogę zainstalować na Debian 10.0 oprogramowania ansible. Mam błąd j/n:

Kod: Zaznacz cały

root@ansiblecontroller:/home/osboxes# sudo apt install ansible
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 ansible : Depends: python-jinja2 but it is not installable
           Depends: python-yaml but it is not installable
           Depends: python-paramiko but it is not installable
           Depends: python-httplib2 but it is not installable
           Depends: python-six but it is not installable
           Depends: python-crypto (>= 2.6) but it is not installable
           Depends: python-setuptools but it is not installable
           Depends: sshpass but it is not installable
E: Unable to correct problems, you have held broken packages.
============
W sources.list mam:

Kod: Zaznacz cały

root@ansiblecontroller:/home/osboxes# cat /etc/apt/sources.list
#

# deb cdrom:[Debian GNU/Linux 10.0.0 _Buster_ - Official amd64 DVD Binary-1 20190706-10:24]/ buster contrib main

#deb cdrom:[Debian GNU/Linux 10.0.0 _Buster_ - Official amd64 DVD Binary-1 20190706-10:24]/ buster contrib main

deb http://security.debian.org/debian-security buster/updates main contrib
deb-src http://security.debian.org/debian-security buster/updates main contrib

# buster-updates, previously known as 'volatile'
# A network mirror was not selected during install.  The following entries
# are provided as examples, but you should amend them as appropriate
# for your mirror of choice.
#
# deb http://deb.debian.org/debian/ buster-updates main contrib
# deb-src http://deb.debian.org/debian/ buster-updates main contrib
deb http://ppa.launchpad.net/ansible/ansible/ubuntu trusty main
root@ansiblecontroller:/home/osboxes#

Re: Nie działa sudo apt install ansible na Debian 10

: 11 grudnia 2019, 19:53
autor: dedito
Używaj znaczników kodu.
Prosisz się o kłopoty używając ppa, to jest dla Ubuntu, nie dla Debiana.
Używanie sudo na koncie roota jest pozbawione sensu.

Tu masz jak na 10 instalować z użyciem tego ppa, ale robisz to na własną odpowiedzialność
https://www.linuxtechi.com/install-ansi ... -debian10/

Re: Nie działa sudo apt install ansible na Debian 10

: 08 stycznia 2020, 16:33
autor: Yampress
Jak możesz cokolwiek zainstalować, kiedy główne repozytorium masz wyłączone ( zahaszowane).

Kod: Zaznacz cały

# deb cdrom:[Debian GNU/Linux 10.0.0 _Buster_ - Official amd64 DVD Binary-1 20190706-10:24]/ buster contrib main
#deb cdrom:[Debian GNU/Linux 10.0.0 _Buster_ - Official amd64 DVD Binary-1 20190706-10:24]/ buster contrib main
PPA to usuń.
Jednym słowem straszny śmietnik w tej liście repozytorium.

Lista repozytoriów dla Debiana:
viewtopic.php?t=34652