Other Software > Remove button doesn't work
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
software-properties (Ubuntu) |
Fix Released
|
Undecided
|
Nathan Teodosio |
Bug Description
Test Case
---------
- Add a PPA with apt-add-repository, not with software-properties (we want a deb822 format for the test).
- Open the Software & Updates tab
- Switch to the Other Software tab
- Select the PPA line and click Remove
- After Authentication, nothing happens.
No error is emitted to the command line. The repo line still shows. The repo is still in /etc/apt/
ProblemType: Bug
DistroRelease: Ubuntu 24.04
Package: software-
ProcVersionSign
Uname: Linux 6.8.0-20-generic x86_64
NonfreeKernelMo
ApportVersion: 2.28.0-0ubuntu1
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: ubuntu:GNOME
Date: Fri Mar 29 12:06:07 2024
InstallationDate: Installed on 2022-04-06 (723 days ago)
InstallationMedia: Ubuntu 22.04 LTS "Jammy Jellyfish" - Daily amd64 (20220405)
PackageArchitec
ProcEnviron:
LANG=en_US.UTF-8
PATH=(custom, no user)
SHELL=/bin/bash
TERM=xterm-
XDG_RUNTIME_
SourcePackage: software-properties
UpgradeStatus: Upgraded to noble on 2023-12-09 (111 days ago)
Related branches
- Paride Legovini: Approve
-
Diff: 31 lines (+11/-1)2 files modifieddebian/changelog (+7/-0)
softwareproperties/SoftwareProperties.py (+4/-1)
Changed in software-properties (Ubuntu): | |
status: | New → Triaged |
tags: | added: deb822 |
Changed in software-properties (Ubuntu): | |
assignee: | nobody → Nathan Teodosio (nteodosio) |
status: | Triaged → In Progress |
After racking my brains thinking this had to do with deb822, I found that a Dbus exception was being suppressed by only logging one particular exception. Disabling the catch with
---> clicked( self, widget): sources. get_model( ) sources. get_cursor( ) iter(path)
source_ entry = model.get_ value(iter, LIST_ENTRY_OBJ)
self. backend. RemoveSource( str(source_ entry)) authentication_ canceled_ error(e)
def on_remove_
"""Remove the selected source"""
model = self.treeview_
(path, column) = self.treeview_
iter = model.get_
if iter:
#try:
#except dbus.DBusException as e:
# maybe_log_
<---
reveals the issue:
---> python3/ dist-packages/ softwarepropert ies/gtk/ SoftwarePropert iesGtk. py", line 1159, in on_remove_clicked backend. RemoveSource( str(source_ entry)) python3/ dist-packages/ dbus/proxies. py", line 141, in __call__ n.call_ blocking( self._named_ service,
^^^ ^^^^^^^ ^^^^^^^ ^^^^^^^ ^^^^^^^ ^^^^^^^ ^^^^^^^ ^^^^^^ python3/ dist-packages/ dbus/connection .py", line 634, in call_blocking message_ with_reply_ and_block(
^ ^^^^^^^ ^^^^^^^ ^^^^^^^ ^^^^^^^ ^^^^^^^ ^^^ .DBusException: com.ubuntu. SoftwarePropert ies.PermissionD eniedByPolicy: com.ubuntu. softwarepropert ies.applychange s
Traceback (most recent call last):
File "/usr/lib/
self.
File "/usr/lib/
return self._connectio
File "/usr/lib/
reply_message = self.send_
dbus.exceptions
<---