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 source type is missing and the fields are not in sources.list order.
deb stable main https://deb.example.invalid/debianIncorrect. The URI and suite are reversed.
Incorrect. The URI and suite are reversed.
deb-src https://deb.example.invalid/debian stable mainIncorrect. deb-src selects source packages, not binary packages.
Incorrect. deb-src selects source packages, not binary packages.
deb https://deb.example.invalid/debian stable mainCorrect. The type, URI, suite, and component appear in the expected order.
Correct. The type, URI, suite, and component appear in the expected 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)の構文確認のみ
- Command output formatting can vary slightly by distribution or tool version.
- Run the example in a temporary directory or process when possible.
Foundation review
Read the scope first
Check whether the command acts on the current shell, a new process, an existing process, or a file.
Verify the observable result
Use the supplied command and compare the output with the expected result.