[Bug 2059796] Re: Other Software > Remove button doesn't work
Nathan Teodosio
2059796 at bugs.launchpad.net
Mon Apr 8 17:04:27 UTC 2024
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
--->
def on_remove_clicked(self, widget):
"""Remove the selected source"""
model = self.treeview_sources.get_model()
(path, column) = self.treeview_sources.get_cursor()
iter = model.get_iter(path)
if iter:
source_entry = model.get_value(iter, LIST_ENTRY_OBJ)
#try:
self.backend.RemoveSource(str(source_entry))
#except dbus.DBusException as e:
# maybe_log_authentication_canceled_error(e)
<---
reveals the issue:
--->
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/softwareproperties/gtk/SoftwarePropertiesGtk.py", line 1159, in on_remove_clicked
self.backend.RemoveSource(str(source_entry))
File "/usr/lib/python3/dist-packages/dbus/proxies.py", line 141, in __call__
return self._connection.call_blocking(self._named_service,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/dbus/connection.py", line 634, in call_blocking
reply_message = self.send_message_with_reply_and_block(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
dbus.exceptions.DBusException: com.ubuntu.SoftwareProperties.PermissionDeniedByPolicy: com.ubuntu.softwareproperties.applychanges
<---
--
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/2059796
Title:
Other Software > Remove button doesn't work
Status in software-properties package in Ubuntu:
Triaged
Bug description:
Test Case
---------
- Add a PPA
- 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/sources.list.d/
ProblemType: Bug
DistroRelease: Ubuntu 24.04
Package: software-properties-gtk 0.99.44
ProcVersionSignature: Ubuntu 6.8.0-20.20-generic 6.8.1
Uname: Linux 6.8.0-20-generic x86_64
NonfreeKernelModules: zfs
ApportVersion: 2.28.0-0ubuntu1
Architecture: amd64
CasperMD5CheckResult: pass
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)
PackageArchitecture: all
ProcEnviron:
LANG=en_US.UTF-8
PATH=(custom, no user)
SHELL=/bin/bash
TERM=xterm-256color
XDG_RUNTIME_DIR=<set>
SourcePackage: software-properties
UpgradeStatus: Upgraded to noble on 2023-12-09 (111 days ago)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/software-properties/+bug/2059796/+subscriptions
More information about the foundations-bugs
mailing list