Describe the stable main binary source at https://deb.example.invalid/debian in the traditional .list format.
Omit signing-key options for this question.
Which one-line entry is correct?
The traditional form is deb [options] URI suite component. deb-src is for source-package indexes rather than binary packages.
Detailed explanation
stable https://deb.example.invalid/debian mainIncorrect. The source type is missing and the fields are not in sources.list order.
Incorrect. The entry lacks the required deb type and field order.
deb stable main https://deb.example.invalid/debianIncorrect. The URI and suite are reversed.
Incorrect. The suite and URI positions are reversed.
deb-src https://deb.example.invalid/debian stable mainIncorrect. deb-src selects source packages, not binary packages.
Incorrect. deb-src identifies source packages rather than binary packages.
deb https://deb.example.invalid/debian stable mainCorrect. The type, URI, suite, and component appear in the expected order.
Correct. deb, URI, suite, and component are in the required order.
Try it yourself
An example you can run in a temporary verification environment.
printf '%s\n' 'deb https://deb.example.invalid/debian stable main'Expected result
deb URI suite componentの順序を確認Key points
- deb means binary index
- deb-src means source index
- URI is followed by suite and component
Notes
- Environment: APT sources.list(5)の構文確認のみ
- Use a disposable environment or simulation before package changes.
- APT behavior can vary with repository configuration and package-manager version.
Foundation review
Place the operation
A one-line source entry is positional; a missing type or reordered field changes its meaning.
Check the side effect
Validate a source entry with apt's list parsing before using a real repository.