[Bug 2061214] Re: [SRU] Software Sources is not compatible with deb822
LeĆ³ Kolbeinsson
2061214 at bugs.launchpad.net
Wed Apr 24 12:14:58 UTC 2024
Tested Lubuntu Noble ISO dated 24-04-2024 and the bug no longer present.
Also tested upgrades from Lubuntu Jammy and Lubuntu Mantic to Lubuntu
Noble using GUI and also TUI and bug not present.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to software-properties in Ubuntu.
https://bugs.launchpad.net/bugs/2061214
Title:
[SRU] Software Sources is not compatible with deb822
Status in software-properties package in Ubuntu:
Confirmed
Status in software-properties source package in Noble:
Confirmed
Bug description:
[ Impact ]
Ubuntu 24.04 now uses deb822 to represent software sources for deb
packages, instead of /etc/apt/sources.list. The complete rationale for
this change can be found here: https://discourse.ubuntu.com/t/spec-
apt-deb822-sources-by-default/29333
software-properties has two graphical frontends for editing these
software sources, one is GTK-based and the other is Qt-based. When the
underlying change to deb822 sources was made, the GTK-based frontend
and the DBus backend interface gained support.
The original bug report shown below informed us of the lack of deb822
support in the Qt frontend, which results in a broken, non-functional
interface when attempting to view or edit most values on the first two
tabs. The fix for this is to implement a Qt dialog for deb822 sources
that somewhat matches the existing GTK interface.
[ Test Plan ]
Install software-properties-qt 0.99.48 or earlier.
Reproducing the bug:
1. From the menu, open Software Sources. Alternatively, run `sudo -E software-properties-qt` in a terminal.
2. Observe that all four checkboxes on the Ubuntu Software tab (main, universe, restricted, and multiverse) are unchecked.
3. Move to the Other Software tab and observe that there are no items in the list.
Upgrade to software-properties-qt 0.99.49.
Intended functionality:
1. From the menu, open Software Sources. Alternatively, run `sudo -E software-properties-qt` in a terminal.
2. Observe that one or more checkboxes on the Ubuntu Software tab (representing main, universe, restricted, or multiverse) are checked. Toggle one or more of the checkboxes.
3. Using a text editor of some kind (perhaps Vim), confirm that /etc/apt/sources.list.d/ubuntu.sources reflects your changes.
4. Switch to the Other Software tab, there should be one item in the list.
5. Select that item, then click Edit at the bottom of the dialog. Make a modification to every field on the screen, or a combination of fields you would like to test. All fields should work.
6. Click the OK button at the bottom of the dialog to confirm the changes, then click Edit for that item again. The changes you made should be reflected (meaning, the changes were saved.)
7. Using a text editor of some kind (perhaps Vim), confirm that /etc/apt/sources.list.d/ubuntu.sources reflects your changes.
[ Where problems could occur ]
This is well-tested code. That being said, the following small edge cases exist:
- If you create a very large amount of rows, it infinitely expands the dialog without a scroll wheel. This is the same functionality as the GTK frontend.
- Error validation is not performed on the deb822 lines, they are simply written to the ubuntu.sources file. This is good as a starting point, but also relies on the appropriate update notifier handling these errors. This is the same functionality as the GTK frontend.
In a future update, this functionality could be broken by one or more of the following underlying changes:
- Changes to the software-properties backend which are only implemented for the GTK frontend.
- Changes to the location or formatting of the ubuntu.sources file.
- Regressions in the Python bindings for Qt 5, which are rare but possible.
- Regressions in Python itself.
[ Other Info ]
Ubuntu Studio's live ISO and installed system are affected by this. Only Lubuntu's installed system is affected by this.
[ Original Report ]
Upgrading Lubuntu Jammy to Lubuntu Noble using TUI results in
"Software sources" not correctly updated after upgrade. Prompt= shows
normal and not LTS
Used command sudo do-release-upgrade -d
Otherwise the upgrade is good
see attached screenshot
ProblemType: Bug
DistroRelease: Ubuntu 24.04
Package: software-properties-common 0.99.46
ProcVersionSignature: Ubuntu 6.8.0-22.22-generic 6.8.1
Uname: Linux 6.8.0-22-generic x86_64
ApportVersion: 2.28.0-0ubuntu1
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: LXQt
Date: Sat Apr 13 11:44:28 2024
InstallationDate: Installed on 2024-04-13 (0 days ago)
InstallationMedia: Lubuntu 22.04.4 LTS "Jammy Jellyfish" - Release amd64 (20240331)
PackageArchitecture: all
SourcePackage: software-properties
UpgradeStatus: Upgraded to noble on 2024-04-13 (0 days ago)
mtime.conffile..etc.init.d.apport: 2024-02-22T14:20:00
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/software-properties/+bug/2061214/+subscriptions
More information about the foundations-bugs
mailing list