[Bug 2060721] Re: APT 2.8.0: Promote weak key warnings to errors
Launchpad Bug Tracker
2060721 at bugs.launchpad.net
Tue May 21 09:57:13 UTC 2024
This bug was fixed in the package apt - 2.9.3
---------------
apt (2.9.3) unstable; urgency=medium
[ Julian Andres Klode ]
* Initial implementation ("alpha") of the 3.0 solver:
This new solver is available using the --solver 3.0 option.
Highlights:
- Fully backtracking solver, think DPLL without pure literal elimination
- Manually installed packages are not offered up for removal
- New --no-strict-pinning option allows APT to fallback to non-candidate
versions, e.g. apt install --no-strict-pinning foo/experimental installs
foo from experimental and will switch dependencies where needed.
- Autoremove is more aggressive and only keeps the strongest automatically
installed package. For example, gcc-<version> will now be offered for
removal and no longer kept around due libtool Depends: gcc | c-compiler
and gcc-<version> Provides: c-compiler, as `gcc` is already satisfied.
Caveats right now:
- Test suite is not yet passing
- The list of automatically removable packages is not displayed
when automatically installed packages are not removed
- Error information gets lost on backtracking (see Debug::APT::Solver=2)
- Error information is just rendered as A -> B implication graphs,
with some nodes perhaps containing a "not".
- The logic for replacing obsolete manually installed packages with
new replacement packages (think Conflits/Replaces/Provides) is not
yet implemented.
- Conflict-driven clause learning is not implemented, so backtracking
is technically pretty inefficient.
* Solver3 integration fixes:
- test: Ignore progress output in comparing output..
- test-allow-scores-for-all-dependency-types: Adjust for solver3
- EDSP: Add "solver3" alias for apt-internal-solver
* UI work:
- Highlight essential removals with action::remove color
- The text of notices and audits shall not be bold
- Separate columns by 2 spaces in lists (Closes: #1070064)
* Support src:name shortcuts in showsrc, source, build-dep commands
[ David Kalnischkies ]
* Do not ignore if a cmake execute_process fails
* Avoid figuring which kept pkgs are phased if we don't display it
* Match version constraints before saving garbage packages
* Do not upgrade rev-deps ear-marked for removal
* Drop sudo-related envvars in testing framework
* Add test for dealing with unsat Suggests promoted to Recommends
* Allow parsing an empty Provides line (Closes: #1069874)
[ Frans Spiesschaert ]
* Dutch program translation update (Closes: #1070142)
* Dutch manpages translation update (Closes: #1070143)
-- Julian Andres Klode <jak at debian.org> Tue, 14 May 2024 13:01:31
+0200
** Changed in: apt (Ubuntu)
Status: Incomplete => Fix Released
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to apt in Ubuntu.
https://bugs.launchpad.net/bugs/2060721
Title:
APT 2.8.0: Promote weak key warnings to errors
Status in apt package in Ubuntu:
Fix Released
Status in apt source package in Noble:
Fix Committed
Bug description:
⚠️ Only land this in the release/updates pocket after PPAs have been
resigned
(This bumps the apt version to 2.8.0. APT uses the odd/even number
system, with 2.7.x being the development series for 2.8, and this is
the only change left for the 2.8 release, safe for some minor
translation/test suite improvements)
(This will be uploaded after the beta and may be released before noble
release, as a zero day SRU or within the weeks following the release)
[Impact]
APT is currently just warning about keys that it should be rejecting to give Launchpad time to resign PPAs. This needs to be bumped to an error such that the crypto policy is fully implemented and we only trust keys that are still being trusted. #2055193
A warning provides some help right now to third-parties to fix their
repositories, but it's not *safe*: A repository could have multiple
signing keys and be signed by a good key now, then later, a previous
key still in trusted.gpg.d could be revoked and we'd degrade to
warnings, which, given that we update in the background automatically,
the user may not see.
Other fixes:
- The test suite has been made less flaky in two places
- Documentation translation has been unfuzzied for URL changes in 2.7.14
[Test plan]
The vast regression test suite prevents regression in other components. Additional tests are:
1. (promotion to error) Take a repository that has a weak key warning, upgrade apt and check that it is an error
2. (still valid) Check that the main Ubuntu repositories and/or resigned PPAs work correctly.
We don't have any tests for the test changes or the documentation
translation URL unfuzzying.
[Where problems could occur]
apt will start to fail updates of repositories with weak signing keys, but it will have warned users about that before. Given that it is still early in the cycle, and we only enable updates for 24.04.1, this seems the right tradeoff for future security.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/2060721/+subscriptions
More information about the foundations-bugs
mailing list