apt does not work with given convig files in new format

Bug #2042749 reported by Thomas Schweikle
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apt (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

assume /etc/apt/sources.list.d/somerepo.list:

Types: deb
URIs: https://repo.vivaldi.com/stable/deb/
Suites: stable
Components: main
Architectures: amd64
Signed-By: /etc/apt/trusted.gpg.d/33EAAB8E.gpg /etc/apt/trusted.gpg.d/4218647E.gpg

Then 'apt update' will produce:

# apt update
E: Type 'Types:' is not known on line 4 in source list /etc/apt/sources.list.d/vivaldi.list
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
ProcVersionSignature: Ubuntu 6.5.0-10.10-generic 6.5.3
Uname: Linux 6.5.0-10-generic x86_64
NonfreeKernelModules: zfs
ApportVersion: 2.27.0-0ubuntu5
Architecture: amd64
CasperMD5CheckResult: pass
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-256color
SourcePackage: apt
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Thomas Schweikle (tps) wrote :
Revision history for this message
Julian Andres Klode (juliank) wrote :

As the documentation says, the file name must end in .sources

Changed in apt (Ubuntu):
status: New → Won't Fix
status: Won't Fix → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.