# Linux - remove repository

**URL:** <https://discussions.flightaware.com/t/linux-remove-repository/76592>\
**Category:** General\
**Created:** [May 11, 2021, 10:01am UTC](https://discussions.flightaware.com/t/linux-remove-repository/76592 "2021-05-11T10:01:47Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![SoNic67](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/sonic67/32/119872_2.png) [@SoNic67](https://discussions.flightaware.com/u/SoNic67)\
**Post date:** [May 11, 2021, 10:01am UTC](https://discussions.flightaware.com/t/linux-remove-repository/76592/1 "2021-05-11T10:01:48Z")

</div>

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:

> **[Sources - Pastebin.com](https://pastebin.com/eZBuYHc0)**
>
> Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.

---

<div class="post-metadata">

**Author:** ![wiedehopf](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/wiedehopf/32/114045_2.png) [@wiedehopf](https://discussions.flightaware.com/u/wiedehopf)\
**Post date:** [May 11, 2021, 10:07am UTC](https://discussions.flightaware.com/t/linux-remove-repository/76592/2 "2021-05-11T10:07:11Z")

</div>

> [@SoNic67](#):
>
> 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.

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

---

<div class="post-metadata">

**Author:** ![SoNic67](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/sonic67/32/119872_2.png) [@SoNic67](https://discussions.flightaware.com/u/SoNic67)\
**Post date:** [May 11, 2021, 10:46am UTC](https://discussions.flightaware.com/t/linux-remove-repository/76592/3 "2021-05-11T10:46:33Z")

</div>

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

> **[Sources - Pastebin.com](https://pastebin.com/GEF2qPi3)**
>
> Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.

---

<div class="post-metadata">

**Author:** ![wiedehopf](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/wiedehopf/32/114045_2.png) [@wiedehopf](https://discussions.flightaware.com/u/wiedehopf)\
**Post date:** [May 11, 2021, 11:10am UTC](https://discussions.flightaware.com/t/linux-remove-repository/76592/4 "2021-05-11T11:10:59Z")

</div>

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

Delete the lines you don’t want.

---

<div class="post-metadata">

**Author:** ![SoNic67](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/sonic67/32/119872_2.png) [@SoNic67](https://discussions.flightaware.com/u/SoNic67)\
**Post date:** [May 11, 2021, 3:39pm UTC](https://discussions.flightaware.com/t/linux-remove-repository/76592/5 "2021-05-11T15:39:03Z")

</div>

> [@wiedehopf](#):
>
> /etc/apt/sources.list

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

---

<div class="post-metadata">

**Author:** ![foxhunter](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/foxhunter/32/113733_2.png) [@foxhunter](https://discussions.flightaware.com/u/foxhunter)\
**Post date:** [May 11, 2021, 8:42pm UTC](https://discussions.flightaware.com/t/linux-remove-repository/76592/7 "2021-05-11T20:42:07Z")

</div>

Did you by chance use PPA repositories?

If yes, maybe this helps:

> **[How to Remove or Delete a PPA in Ubuntu Linux](https://itsfoss.com/how-to-remove-or-delete-ppas-quick-tip/)**
>
> Learn to delete PPA and the software installed by it and get rid of unnecessary PPA added to your Ubuntu Linux.

---

<div class="post-metadata">

**Author:** ![tomvdhorst](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/tomvdhorst/32/137059_2.png) [@tomvdhorst](https://discussions.flightaware.com/u/tomvdhorst)\
**Post date:** [May 12, 2021, 7:39am UTC](https://discussions.flightaware.com/t/linux-remove-repository/76592/8 "2021-05-12T07:39:21Z")

</div>

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

````auto
followed by ```
sudo dpkg --remove-architecture armhf

````

---

<div class="post-metadata">

**Author:** ![SoNic67](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/sonic67/32/119872_2.png) [@SoNic67](https://discussions.flightaware.com/u/SoNic67)\
**Post date:** [May 12, 2021, 11:47am UTC](https://discussions.flightaware.com/t/linux-remove-repository/76592/9 "2021-05-12T11:47:17Z")

</div>

> [@foxhunter](#):
>
> Did you by chance use PPA repositories?

Is not listed in the GUI at Software Sources.

> [@tomvdhorst](#):
>
> sudo apt-get remove --purge `dpkg --get-selections | grep armhf | awk '{print $1}'`

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

> [@tomvdhorst](#):
>
> `sudo dpkg --remove-architecture armhf`

That worked by itself! Thanks!

---

<div class="post-metadata">

**Author:** ![abcd567](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/abcd567/32/113769_2.png) [@abcd567](https://discussions.flightaware.com/u/abcd567)\
**Post date:** [January 5, 2022, 5:34am UTC](https://discussions.flightaware.com/t/linux-remove-repository/76592/10 "2022-01-05T05:34:48Z")

</div>

> [@foxhunter](#):
>
> Did you by chance use PPA repositories?

&nbsp;

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

&nbsp;

> [@Repository https://abcd567a.github.io/ppa/piaware error 404 - Cannot update](https://discussions.flightaware.com/t/repository-https-abcd567a-github-io-ppa-piaware-error-404-cannot-update/80733/4):
>
> **NOTE:**  
> If you decide to install the unofficial version now, then please replace these by official packages when these are made available by Flightaware here:
> 
> [https://flightaware.com/adsb/piaware/install](https://flightaware.com/adsb/piaware/install)
> 
> When installing official version, dont forget to **first** delete my repository from your Pi’s apt sources list by following command:
> 
> `sudo rm /etc/apt/sources.list.d/abcd567a.list `
> 
> `sudo apt update`

---

<div class="post-metadata">

**Author:** ![foxhunter](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/foxhunter/32/113733_2.png) [@foxhunter](https://discussions.flightaware.com/u/foxhunter)\
**Post date:** [January 5, 2022, 5:58am UTC](https://discussions.flightaware.com/t/linux-remove-repository/76592/11 "2022-01-05T05:58:42Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![abcd567](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/abcd567/32/113769_2.png) [@abcd567](https://discussions.flightaware.com/u/abcd567)\
**Post date:** [January 5, 2022, 7:11am UTC](https://discussions.flightaware.com/t/linux-remove-repository/76592/12 "2022-01-05T07:11:52Z")

</div>

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. 😉

---

<div class="post-metadata">

**Author:** ![system](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/system/32/38558_2.png) [@system](https://discussions.flightaware.com/u/system)\
**Post date:** [January 5, 2023, 7:11am UTC](https://discussions.flightaware.com/t/linux-remove-repository/76592/13 "2023-01-05T07:11:54Z")

</div>

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