У меня есть эта команда, автоматически сгенерированная и выполняемая Puppet:
sudo /usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install 2klic-gateway=2.10.5
При запуске возвращается:
There are problems and -y was used without --force-yes
Я пытаюсь понять это сообщение об ошибке , Ключ GPG поставщика для пакета действителен, и нет никакой проблемы с запуском вручную команды без флага -y.
Почему Ubuntu заставляет меня использовать --force-yes (что может быть опасно) или вручную введите y, не используя флаг -y?
Я обнаружил, что когда-либо снижается пакет, это должно быть сделано вручную или с помощью --force-yes.
Если вы используете apt версию 1.1, вы также можете использовать --allow-downgrades. До 1.1 --force-yes - единственный вариант.
Apt версия 1.1 также добавила --allow-remove-essential и --allow-change-held-packages, что может быть полезно для всех, кто наткнулся на этот вопрос.
[d3 ] Из справочной страницы: http://manpages.ubuntu.com/manpages/zesty/man8/apt-get.8.html --allow-downgrades
This is a dangerous option that will cause apt to continue without
prompting if it is doing downgrades. It should not be used except
in very special situations. Using it can potentially destroy your
system! Configuration Item: APT::Get::allow-downgrades. Introduced
in APT 1.1.
--allow-remove-essential
Force yes; this is a dangerous option that will cause apt to
continue without prompting if it is removing essentials. It should
not be used except in very special situations. Using it can
potentially destroy your system! Configuration Item:
APT::Get::allow-remove-essential. Introduced in APT 1.1.
--allow-change-held-packages
Force yes; this is a dangerous option that will cause apt to
continue without prompting if it is changing held packages. It
should not be used except in very special situations. Using it can
potentially destroy your system! Configuration Item:
APT::Get::allow-change-held-packages. Introduced in APT 1.1.
--force-yes
Force yes; this is a dangerous option that will cause apt to
continue without prompting if it is doing something potentially
harmful. It should not be used except in very special situations.
Using force-yes can potentially destroy your system! Configuration
Item: APT::Get::force-yes. This is deprecated and replaced by
--allow-downgrades, --allow-remove-essential,
--allow-change-held-packages in 1.1.
Я обнаружил, что когда-либо снижается пакет, это должно быть сделано вручную или с помощью --force-yes.
Если вы используете apt версию 1.1, вы также можете использовать --allow-downgrades. До 1.1 --force-yes - единственный вариант.
Apt версия 1.1 также добавила --allow-remove-essential и --allow-change-held-packages, что может быть полезно для всех, кто наткнулся на этот вопрос.
Из справочной страницы: http://manpages.ubuntu.com/manpages/zesty/man8/apt-get.8.html
--allow-downgrades
This is a dangerous option that will cause apt to continue without
prompting if it is doing downgrades. It should not be used except
in very special situations. Using it can potentially destroy your
system! Configuration Item: APT::Get::allow-downgrades. Introduced
in APT 1.1.
--allow-remove-essential
Force yes; this is a dangerous option that will cause apt to
continue without prompting if it is removing essentials. It should
not be used except in very special situations. Using it can
potentially destroy your system! Configuration Item:
APT::Get::allow-remove-essential. Introduced in APT 1.1.
--allow-change-held-packages
Force yes; this is a dangerous option that will cause apt to
continue without prompting if it is changing held packages. It
should not be used except in very special situations. Using it can
potentially destroy your system! Configuration Item:
APT::Get::allow-change-held-packages. Introduced in APT 1.1.
--force-yes
Force yes; this is a dangerous option that will cause apt to
continue without prompting if it is doing something potentially
harmful. It should not be used except in very special situations.
Using force-yes can potentially destroy your system! Configuration
Item: APT::Get::force-yes. This is deprecated and replaced by
--allow-downgrades, --allow-remove-essential,
--allow-change-held-packages in 1.1.
Я обнаружил, что когда-либо снижается пакет, это должно быть сделано вручную или с помощью --force-yes.
Если вы используете apt версию 1.1, вы также можете использовать --allow-downgrades. До 1.1 --force-yes - единственный вариант.
Apt версия 1.1 также добавила --allow-remove-essential и --allow-change-held-packages, что может быть полезно для всех, кто наткнулся на этот вопрос.
Из справочной страницы: http://manpages.ubuntu.com/manpages/zesty/man8/apt-get.8.html
--allow-downgrades
This is a dangerous option that will cause apt to continue without
prompting if it is doing downgrades. It should not be used except
in very special situations. Using it can potentially destroy your
system! Configuration Item: APT::Get::allow-downgrades. Introduced
in APT 1.1.
--allow-remove-essential
Force yes; this is a dangerous option that will cause apt to
continue without prompting if it is removing essentials. It should
not be used except in very special situations. Using it can
potentially destroy your system! Configuration Item:
APT::Get::allow-remove-essential. Introduced in APT 1.1.
--allow-change-held-packages
Force yes; this is a dangerous option that will cause apt to
continue without prompting if it is changing held packages. It
should not be used except in very special situations. Using it can
potentially destroy your system! Configuration Item:
APT::Get::allow-change-held-packages. Introduced in APT 1.1.
--force-yes
Force yes; this is a dangerous option that will cause apt to
continue without prompting if it is doing something potentially
harmful. It should not be used except in very special situations.
Using force-yes can potentially destroy your system! Configuration
Item: APT::Get::force-yes. This is deprecated and replaced by
--allow-downgrades, --allow-remove-essential,
--allow-change-held-packages in 1.1.