1

I am experiencing a problem with one repository not having a release file. For that reason, I would like to remove it, but I can't find the Software and Updates app in the OS to select and remove the repo in the GUI. How can I remove it in Elementary OS 7?

1 Answer 1

2

The Software and Updates app does not (to the best of my knowledge) allow a person to work with the sources list directly in Horus. That said, you can take care of this via the Terminal. Here's how:

  1. Open the Terminal application
  2. Change to the directory containing apt's sources.list file:
    cd /etc/apt
    
  3. Edit the sources.list file to remove (or comment out) the repository that does not have a release file:
    sudo {editor of choice} sources.list 
    
    Note: Be sure to replace {editor of choice} with your preferred text editor.
  4. Find the repo that needs to be removed and add a # to the start of the line, or remove it completely.
  5. Save the file and exit
  6. Update apt:
    sudo apt update
    

If the repository that you need to remove is not found in sources.list, then it will be contained in a file within the /etc/apt/sources.list.d directory, possibly in its own definition file.

2
  • Thank you. The offending repo was for elementary-tweaks and the definition file was in the second location you referenced. I really appreciate your guidance on this.
    – Bob Reed
    Commented May 2, 2023 at 14:02
  • 1
    As a sidenote, you can use Pantheon Tweaks for elementary OS 7, github.com/pantheon-tweaks/pantheon-tweaks ; elementary-tweaks is no longer supported
    – Vlad
    Commented May 2, 2023 at 14:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.