Find the answer to your Linux question:
Results 1 to 3 of 3
When I try to run package manager I get the error E: Type 'sudo' is not known on line 1 in source list /etc/apt/sources.list E: The list of sources could ...
  1. #1
    Just Joined!
    Join Date
    May 2010
    Posts
    11

    [SOLVED] Ubuntu - Synaptic Package Manager

    When I try to run package manager I get the error

    E: Type 'sudo' is not known on line 1 in source list /etc/apt/sources.list
    E: The list of sources could not be read.
    Go to the repository dialog to correct the problem.
    E: _cache->open() failed, please report.

    Any ideas how to correct it?
    Help would be appreciated

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Hi and Welcome !

    First line in /etc/apt/sources.list file is incorrect. Put # sign before it.
    Press Alt+F2 and type this
    Code:
    gksu gedit /etc/apt/sources.list
    It will open sources.list file in Gedit with root privileges.
    Put # sign in before first line and save file.
    Execute sudo apt-get update command.
    In case it doesn't work, post the contents of sources.list file here.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  3. #3
    Just Joined!
    Join Date
    May 2010
    Posts
    11
    Quote Originally Posted by devils casper View Post
    Hi and Welcome !

    First line in /etc/apt/sources.list file is incorrect. Put # sign before it.
    Press Alt+F2 and type this
    Code:
    gksu gedit /etc/apt/sources.list
    It will open sources.list file in Gedit with root privileges.
    Put # sign in before first line and save file.
    Execute sudo apt-get update command.
    In case it doesn't work, post the contents of sources.list file here.
    That corrected the problem thank you

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...