apt-add-repository incorrectly forces lowercase

Bug #2056556 reported by Malcolm Scott
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
software-properties (Ubuntu)
New
Low
Unassigned

Bug Description

I have a local APT repository with a non-lowercase suite identifier. apt-add-repository always forces it into lowercase, which causes apt to emit warnings when it notices the mismatch:

$ sudo apt-add-repository "deb http://example.com/deb FooBar Baz"
Repository: 'deb http://example.com/ foobar Baz'
Description:
Archive for codename: foobar components: Baz
More info: http://example.com/
Adding repository.
Press [ENTER] to continue or Ctrl-c to cancel.
(...)
$ sudo apt update
(...)
W: Conflicting distribution: http://example.com/deb foobar InRelease (expected foobar but got FooBar)

Revision history for this message
Jeremy Bícha (jbicha) wrote :

Could you use a lower case suite in your local apt repository as a workaround for this issue?

I feel like it's a bit of a standard to have lowercase: jammy, bookworm, virginia etc.

Changed in software-properties (Ubuntu):
importance: Undecided → Low
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.