1

I have a problem.

Installing packages or updating the system is impossible.

Neither the Terminal nor the Software Manager are working (Software Manager dosn't start).

Terminal shows commands as follows:

sudo apt-get update
E: Type 'non-free' is not known on line 3 in source list /etc/apt/sources.list
E: The list of sources could not be read.

When I try to install a program:

sudo apt-get install exfat-utils exfat-fuse
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package exfat-utils is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'exfat-utils' has no installation candidate
E: Unable to locate package exfat-fuse

sudo apt-get update && sudo apt-get install autokey-gtk
E: Type 'non-free' is not known on line 3 in source list /etc/apt/sources.list
E: The list of sources could not be read.


sudo apt-get install autokey-gtk
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package autokey-gtk

The content of my sources list file is as follows:

#deb cdrom:[Linux Mint 17.3 _Rosa_ - Release amd64 20151128]/ trusty contrib 

main non-free

deb http://xnv4.xandros.com/xs2.0/upkg-srv2 etch main contrib
      non-free

deb http://xnv4.xandros.com/xs2.0/upkg-srv2 etch main contrib
      non-free

This problem has occurred on my previous Linux Mint (17.0) and reoccurred a few weeks after installing LM 17.3.

Thank you very much for your help, I appreciate!

migrated from askubuntu.com Mar 28 '16 at 20:12

This question came from our site for Ubuntu users and developers.

  • Have you updated or changed your package sources from the base install ones? – sysadmiral Mar 28 '16 at 23:15
  • 1
    please edit your question and add the contents of your /etc/apt/sources.list file. the error message is telling you where the problem is, in line 3. without seeing sources.list, my guess is that you've somehow added an extra line-feed to line 2 so the end of line 2 ("non-free") is now on line 3 by itself....or something very much like that. – cas Mar 29 '16 at 1:11
  • I didn't edit anything - knowingly. – Joe Mar 30 '16 at 1:36
  • When I try to change my package sources, I get an error as followed: – Joe Mar 30 '16 at 1:39
  • Could not download all repository indexes E: Type 'non-free' is not known on line 3 in source list /etc/apt/sources.list E: Unable to lock the list directory – Joe Mar 30 '16 at 1:39
3

Your sources.list is incorrectly formatted. 'non-free' should not appear on a separate line. That's the reason you are seeing:

E: Type 'non-free' is not known on line 3 in source list /etc/apt/sources.list

The sources.list should look as follows:

#deb cdrom:[Linux Mint 17.3 _Rosa_ - Release amd64 20151128]/ trusty main contrib non-free

deb http://xnv4.xandros.com/xs2.0/upkg-srv2 etch main contrib non-free

deb http://xnv4.xandros.com/xs2.0/upkg-srv2 etch main contrib non-free

Note also that your first line is commented out, so you effectively only have two lines, neither of which look like standard sources for Mint. You probably want to add more sources. Also consider whether you want to keep the xnv4.xandros.com sources.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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