#1030330 apt: update only warns if section doesn't exist

Package:
apt
Source:
apt
Description:
commandline package manager
Submitter:
Christoph Anton Mitterer
Date:
2023-02-03 00:03:03 UTC
Severity:
normal
#1030330#5
Date:
2023-02-02 23:59:07 UTC
From:
To:
Hey.

It seems that apt only gives a warning (and exit status 0) in case a section
has been specified in sources.list, which doesn't exist.

E.g. aptitde doesn't seem to even show that warning.


Isn't that kind of a "security issue"? Imagine someone simply mistypes his
  deb http://security.debian.org/debian-security/ stable-security mian
line and thus wouldn't see any updates.
If updating the package lists (and perhps even upgrading) is handled
automatically, this may be easily unnoticed.


Cheers,
Chris.