Linux - remove repository

I did try to install openhab and by mistake I run a script that had added armf repositories to my Linux x86 machine.
Now every time I do apt update I have a bunch of errors plus I can see the Ign (ignored) for arm packages being listed.

Is there an easy way to remove them?

This is the output:

Should be a file you can delete in /etc/apt/sources.list.d

2 Likes

That eliminated some of those but I still see a lot of them:

Check /etc/apt/sources.list then, it’s a file.

Delete the lines you don’t want.

2 Likes

There are no lines there that specify arm packages. I don’t know where else they are hidden…

Did you by chance use PPA repositories?

If yes, maybe this helps:

Maybe this is an option : ```
sudo apt-get remove --purge dpkg --get-selections | grep armhf | awk '{print $1}'

followed by ```
sudo dpkg --remove-architecture armhf
2 Likes

Is not listed in the GUI at Software Sources.

E: Command line option --get-selections is not understood in combination with the other options

That worked by itself! Thanks!

2 Likes

 

For making things easy for users, I have taken care to clearly mention how to remove my PPA from their RPi’s sources, when I posted installation of packages from my PPA

 

1 Like

I think this thread from 8 months ago is not related to your repositories :wink:

The discussion here was “How to remove a PPA”, so even though this discussion is 8 months old, this how-to is still valid and relates to removal of any PPA, new or old. :wink:

1 Like

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.