This is the error I'm getting from using sudo apt-get update

E:Type 'b-src' is not known on line 2 in source list /etc/apt/sources.list.d/tiheum-equinox-precise.list

How can I fix this?

  • 3
    Almost agree with @qbi. I assume it's supposed to be deb-src. – gertvdijk Jan 15 '13 at 17:24
  • Just edit that file using gedit: sudo gedit /etc/apt/sources.list.d/tiheum-equinox-precise.list. The line 2 should be something like deb-src http://ppa.launchpad.net/tiheum/equinox/ubuntu precise main – Salem Jan 15 '13 at 17:26
  • I can't seem to get access to gksu, Is there another workaround? – frqcuse Jan 15 '13 at 17:29
  • Enter in you terminal sudo gedit /etc/apt/sources.list.d/tiheum-equinox-precise.list then copy the content of the file and upload it here. – Lucio Jan 15 '13 at 17:31
  • 2
    The file should have deb-src at the begging of the second line. – Lucio Jan 15 '13 at 17:41

This error advertise is telling you that the concerned file (tiheum-equinox-precise.list in this case) have the b-src phrase, and that is wrong because it should be deb-src instead.

So you have tree options to solve the issue:

  1. Fix the line with the typing problem:
    Open the file, find the line with b-src and replace it with this one: deb-src
  2. Convert the line in a comment:
    Open the file, find the line with b-src and add the # character at the begging of this line
  3. Delete the file:
    Enter the next command in a terminal: sudo rm /etc/apt/sources.list.d/your_file

NOTE: To open the file, enter the following command in a terminal:
sudo gedit /etc/apt/sources.list.d/your_file

Now you will be able to update your system!


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