software-properties-gtk removes [arch=amd64]

Bug #1864280 reported by Dark Dragon
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
software-properties (Ubuntu)
Confirmed
Low
Unassigned

Bug Description

When editing apt sources via software-properties-gtk, additional options like [arch=amd64] are removed. With more and more repositories deprecating i386, this problem becomes more and more important.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in software-properties (Ubuntu):
status: New → Confirmed
Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. Please answer these questions:
* Is this reproducible?
* If so, what specific steps should we take to recreate this bug?

This will help us to find and resolve the problem.

Changed in software-properties (Ubuntu):
importance: Undecided → Low
status: Confirmed → Incomplete
Revision history for this message
Sebastien Bacher (seb128) wrote :

How do you create the sources with those arch specific tag?

Revision history for this message
Dark Dragon (darkdragon-001) wrote :

Create via

$ echo "deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable" > /etc/apt/sources.list.d/docker.list

Distribution upgrade disables all third-party sources and adds a comment. When I use software-properties-gtk to remove the comment, the "[arch=amd64]" addition is no longer in the file.

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for software-properties (Ubuntu) because there has been no activity for 60 days.]

Changed in software-properties (Ubuntu):
status: Incomplete → Expired
Revision history for this message
Dark Dragon (darkdragon-001) wrote :

Can someone please reopen this? I provided the necessary details for producibility...

Changed in software-properties (Ubuntu):
status: Expired → Confirmed
Revision history for this message
James C. (jfw01) wrote :

I've independently discovered this and reported it here:
https://trisquel.info/en/forum/software-properties-gtk-erases-options-single-line-software-sources-and-does-not-revert-them-b

The right fix depends on:
- whether software-properties should cope with source options which are not known to it
-- if so, it will have to store either the whole option string or the unknown portion

- whether software-properties is intended to be mechanism for editing source options, or if that's an extra for experts who will have to use a text editor

- how software-properties is intended to interact with DEB822 sources (man sources.list(5)), which it currently ignores

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.