GNOME 40 and newer doesn't use /usr/share/applications/defaults.list file, I think this is the main issue why deb files are opened by Archive Manager, for more info look at
https://help.gnome.org/admin/system-admin-guide/stable/mime-types- application.html.en Quick fix could be to change the name of /usr/share/applications/defaults.list symlink to mimeapps.list , but I'm not 100% sure, because there is a line in /usr/share/applications/gnome-mimeapps.list application/x-deb=org.gnome.FileRoller.desktop The /usr/share/applications/mimeapps.list and /usr/share/applications/gnome-mimeapps.list files specify which application is registered to open specific MIME types by default. These files are provided by the distribution. To override the system defaults for all users on the system, you need to create a /etc/xdg/mimeapps.list or /etc/xdg/gnome-mimeapps.list file with a list of MIME types for which you want to override the default registered application. Files located in /etc/xdg/ take precedence over files found in /usr/share/applications/. Additionally, /etc/xdg/gnome-mimeapps.list takes precedence over /etc/xdg/mimeapps.list Btw, there is a bug #1559129 (Replace defaults.list by mimeapps.list) already reported few years ago by Ubuntu developer, but it seems someone forgot to fix that :( ** Also affects: desktop-file-utils (Baltix) Importance: Undecided Status: New -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to desktop-file-utils in Ubuntu. https://bugs.launchpad.net/bugs/1970248 Title: .deb files open with Archive Manager by default Status in snap-store-desktop: Triaged Status in desktop-file-utils package in Ubuntu: Triaged Status in desktop-file-utils source package in Jammy: Triaged Status in desktop-file-utils package in Baltix: New Bug description: Impact ------ Someone who downloads a .deb file usually wants to install the .deb when they open it. Opening it with Archive Manager is really confusing. Test Case --------- Download a .deb Open your Downloads folder with the file manager. Double click on the .deb The Ubuntu Software app should open with a button that says Install. More Details ------------ desktop-file-utils provides /etc/gnome/defaults.list In that file, there is this line (and several other lines also referring to the same .desktop) application/vnd.debian.binary-package=snap-store_ubuntu-software- local-file.desktop But when I look at /snap/snap-store/575/usr/share/applications/ there is gnome-software-local-file.desktop which is a different file name. I believe this issue can be fixed in either snap-store or with desktop-file-utils. To manage notifications about this bug go to: https://bugs.launchpad.net/snap-store-desktop/+bug/1970248/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp