Score:2

Where is the meaning of "--fix-broken" of "apt install --fix-broken" documented

cn flag

The guide for installing Chrome on WSLg suggests to execute sudo apt install --fix-broken. I don't find the --fix-broken option documented in man apt. Is this option documented somewhere and/or what does it do?

guiverc avatar
cn flag
You've not provided release details; but you can see the options with `man apt-get` as the `apt` reference manual doesn't still list everything.
user535733 avatar
cn flag
It's worth clarifying for future readers that apt's definition of "broken" in this command does NOT mean "corrupt" or "incomplete" or "malfunctioning". In apt's view "broken" simply means a package version conflict. The *logic* of the package dependencies is broken. Example: Package A requires X>N, but Package B requires X<N.
Score:4
jp flag

apt is a front-end/handler/alternative for apt-get as stated in man apt:

apt provides a high-level commandline interface for the package management system. It is
intended as an end user interface and enables some options better suited for interactive
usage by default compared to more specialized APT tools like apt-get(8) and apt-cache(8).

Which also has this stated as well:

Much like apt itself, its manpage is intended as an end user interface and as such only
mentions the most used commands and options partly to not duplicate information in
multiple places and partly to avoid overwhelming readers with a cornucopia of options and
details.

Therefore, man apt-get should be the resource for extended/specialized features ... And it has:

-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 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.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.