Что точно делает sudo Кв. - добираются, установка-f делают?

Я видел его прежде. Я просто задаюсь вопросом, что точно это делает?

41
задан 23 August 2011 в 09:52

2 ответа

От man apt-get:

   -f, --fix-broken
       Fix; attempt to correct a system with broken dependencies in place. This
       option, when used with install/remove, can omit any packages to permit APT
       to deduce a likely solution. If packages are specified, these have to
       completely correct the problem. The option is sometimes necessary when
       running APT for the first time; APT itself does not allow broken package
       dependencies to exist on a system. It is possible that a system's dependency
       structure can be so corrupt as to require manual intervention (which usually
       means using dselect(1) or dpkg --remove to eliminate some of the offending
       packages). Use of this option together with -m may produce an error in some
       situations. Configuration Item: APT::Get::Fix-Broken.
39
ответ дан 23 November 2019 в 00:07

Вот то, где я нашел это очень полезным. Я выполнил команду dpkg для установки нескольких .deb пакетов, но установка перестала работать, потому что некоторые зависимости отсутствовали.

Я затем работал

apt-get -f install

и это установило точно зависимости, которые были необходимы. Я затем смог повторно выполнить свою команду dpkg, и все работало.

1
ответ дан 23 November 2019 в 00:07

Другие вопросы по тегам:

Похожие вопросы: