Michal, that's not how patching works, unfortunately. You can put all that in a file and use the `patch` command. The easy way is to go to the folder containing the file and run `sudo patch < /path/to/diff`.
Or you could simply edit the file (/usr/lib/python3/dist- packages/softwareproperties/qt/SoftwarePropertiesQt.py) according to the instructions given by the diff: 1. Starting at line 709, look at it and the following 7 lines for a total of eight lines (this is what "-709,8" refers to in the original) 2. Note, too, that after the change, the same hunk is referenced as "+709,7" meaning that the end result is one less line. 3. Remove the definition of the "url" variable in line 712. 4. In the next line (which is now 712) which defines the "filename" variable, change it from using the KFileDialog.getOpenFileName method to the QFileDialog.getOpenFileName method. Note that the arguments and their order are different. 5. Save it and try again. ** Tags added: groovy hirsute -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1795278 Title: software-properties-{qt,kde} attempts to use KUrl but it doesn't exist To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/software-properties/+bug/1795278/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs