9

Question

I have a repo that causes an error to appear whenever i update or install anything.

How can i remove it?

Error message

W: Failed to fetch http://repo.offensive-security.com/dist/bt4/binary/en_GB  Unable to connect to repo.offensive-security.com:http:
Dan Cundy
  • 195
  • 1
  • 1
  • 5

3 Answers3

21

What worked for me:

  1. Check your /etc/apt/sources.list and remove unwanted sources.

    sudo nano /etc/apt/sources.list
    
  2. If step 1 does not solve your problem, see what other sources are used:

    sudo ls -al /etc/apt/sources.list.d/
    
  3. If you have found a source-list causing the problem, remove it (in the example below, NodeJS source list is removed):

    sudo rm /etc/apt/sources.list.d/nodesource.list
    
Quintin B
  • 689
  • 1
  • 5
  • 20
5

To change the apt repository list you need to edit /etc/apt/sources.list.

If this answer does not solve your problem, please edit your question and paste the content of /etc/apt/sources.list.

Use sudo nano /etc/apt/sources.list in the terminal and then delete the lines corresponding to the unwanted repository.

RPiAwesomeness
  • 3,021
  • 4
  • 31
  • 52
Morgan Courbet
  • 3,703
  • 3
  • 23
  • 38
0

OK THis is major: If you are unable to download the Pi2 version, edit (Nano) the list file(s) in etc/apt/sources.list.d folder. THere will be an line YOU MUST CHANGE to get the files into your repository. "arch=amd64" MUST BE CHANGED TO "arch=armhf". THen check the repository list with "sudo apt-cache policy AppNameHere". If you dont have the names of the downloads, you've done it wrong.