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
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:
- Open the Terminal application
- Change to the directory containing
apt
'ssources.list
file:cd /etc/apt
- Edit the
sources.list
file to remove (or comment out) the repository that does not have a release file:
Note: Be sure to replacesudo {editor of choice} sources.list
{editor of choice}
with your preferred text editor. - Find the repo that needs to be removed and add a
#
to the start of the line, or remove it completely. - Save the file and exit
- 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.
-
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 ReedCommented May 2, 2023 at 14:02
-
1As a sidenote, you can use Pantheon Tweaks for elementary OS 7, github.com/pantheon-tweaks/pantheon-tweaks ; elementary-tweaks is no longer supported– VladCommented May 2, 2023 at 14:25