apt does not work with given convig files in new format
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apt (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
assume /etc/apt/
Types: deb
URIs: https:/
Suites: stable
Components: main
Architectures: amd64
Signed-By: /etc/apt/
Then 'apt update' will produce:
# apt update
E: Type 'Types:' is not known on line 4 in source list /etc/apt/
E: The list of sources could not be read.
A new apt version is available. Would be nice to upgrade. At the moment "man sources.list" does describe a file format not accepted by apt in sources.list-files.
ProblemType: Bug
DistroRelease: Ubuntu 23.10
Package: apt 2.7.3
ProcVersionSign
Uname: Linux 6.5.0-10-generic x86_64
NonfreeKernelMo
ApportVersion: 2.27.0-0ubuntu5
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: XFCE
Date: Sat Nov 4 23:51:50 2023
InstallationDate: Installed on 2021-12-11 (693 days ago)
InstallationMedia: Xubuntu 21.10 "Impish Indri" - Release amd64 (20211012)
ProcEnviron:
LANG=de_DE.UTF-8
LANGUAGE=de_DE
PATH=(custom, no user)
SHELL=/bin/bash
TERM=xterm-
SourcePackage: apt
UpgradeStatus: No upgrade log present (probably fresh install)
As the documentation says, the file name must end in .sources