ubuntu software centre is not opening

Asked by yuvan kiran

when i click on the ubuntu software centre, it shows the following error...plzz help...
E: Type 'usage:' is not known on line 58 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.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu software-center Edit question
Assignee:
No assignee Edit question
Solved by:
enubuntu
Solved:
Last query:
Last reply:
Revision history for this message
enubuntu (mr.tennents) said :
#1

Hi please open a terminal by hitting CTRL + ALT + T
enter and run this command:
cat /etc/apt/sources.list -n

then copy and paste here the result.

Revision history for this message
yuvan kiran (yuvan-kiran) said :
#2

1 # deb cdrom:[Ubuntu 10.04 LTS _Lucid Lynx_ - Release i386 (20100429)]/ lucid main restricted
     2 # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
     3 # newer versions of the distribution.
     4
     5 deb cdrom:[Ubuntu 10.10 _Maverick Meerkat_ - Release i386 (20101007)]/ maverick main restricted
     6 deb http://archive.ubuntu.com/ubuntu maverick main restricted
     7 deb-src http://archive.ubuntu.com/ubuntu maverick main restricted
     8
     9 ## Major bug fix updates produced after the final release of the
    10 ## distribution.
    11 deb http://archive.ubuntu.com/ubuntu maverick-updates main restricted
    12 deb-src http://archive.ubuntu.com/ubuntu maverick-updates main restricted
    13
    14 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
    15 ## team. Also, please note that software in universe WILL NOT receive any
    16 ## review or updates from the Ubuntu security team.
    17 deb http://archive.ubuntu.com/ubuntu maverick universe
    18 deb-src http://archive.ubuntu.com/ubuntu maverick universe
    19 deb http://archive.ubuntu.com/ubuntu maverick-updates universe
    20 deb-src http://archive.ubuntu.com/ubuntu maverick-updates universe
    21
    22 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
    23 ## team, and may not be under a free licence. Please satisfy yourself as to
    24 ## your rights to use the software. Also, please note that software in
    25 ## multiverse WILL NOT receive any review or updates from the Ubuntu
    26 ## security team.
    27 deb http://archive.ubuntu.com/ubuntu maverick multiverse
    28 deb-src http://archive.ubuntu.com/ubuntu maverick multiverse
    29 deb http://archive.ubuntu.com/ubuntu maverick-updates multiverse
    30 deb-src http://archive.ubuntu.com/ubuntu maverick-updates multiverse
    31
    32 ## Uncomment the following two lines to add software from the 'backports'
    33 ## repository.
    34 ## N.B. software from this repository may not have been tested as
    35 ## extensively as that contained in the main release, although it includes
    36 ## newer versions of some applications which may provide useful features.
    37 ## Also, please note that software in backports WILL NOT receive any review
    38 ## or updates from the Ubuntu security team.
    39 # deb http://in.archive.ubuntu.com/ubuntu/ lucid-backports main restricted universe multiverse
    40 # deb-src http://in.archive.ubuntu.com/ubuntu/ lucid-backports main restricted universe multiverse
    41
    42 ## Uncomment the following two lines to add software from Canonical's
    43 ## 'partner' repository.
    44 ## This software is not part of Ubuntu, but is offered by Canonical and the
    45 ## respective vendors as a service to Ubuntu users.
    46 deb http://archive.canonical.com/ubuntu maverick partner
    47 deb-src http://archive.canonical.com/ubuntu maverick partner
    48
    49 deb http://archive.ubuntu.com/ubuntu maverick-security main restricted
    50 deb-src http://archive.ubuntu.com/ubuntu maverick-security main restricted
    51 deb http://archive.ubuntu.com/ubuntu maverick-security universe
    52 deb-src http://archive.ubuntu.com/ubuntu maverick-security universe
    53 deb http://archive.ubuntu.com/ubuntu maverick-security multiverse
    54 deb-src http://archive.ubuntu.com/ubuntu maverick-security multiverse
    55 # deb http://www.geekconnection.org/remastersys/repository karmic/ # disabled on upgrade to maverick
    56
    57 deb http://extras.ubuntu.com/ubuntu maverick main #Third party developers repository
    58 usage: sudo -h | -K | -k | -L | -V
    59 usage: sudo -v [-AknS] [-p prompt]
    60 usage: sudo -l[l] [-AknS] [-g groupname|#gid] [-p prompt] [-U username] [-u
    61 username|#uid] [-g groupname|#gid] [command]
    62 usage: sudo [-AbEHknPS] [-C fd] [-g groupname|#gid] [-p prompt] [-u
    63 username|#uid] [-g groupname|#gid] [VAR=value] [-i|-s] [<command>]
    64 usage: sudo -e [-AknS] [-C fd] [-g groupname|#gid] [-p prompt] [-u
    65 username|#uid] file ...

Revision history for this message
Best enubuntu (mr.tennents) said :
#3

Ok so do this:
1. Open a terminal by hitting CTRL + ALT + T
2. Run this command for edit the file:
sudo gedit /etc/apt/sources.list

3. Now, in the Text Editor, you have to remove ONLY the bottom line of the file, exactly this:
usage: sudo -h | -K | -k | -L | -V
usage: sudo -v [-AknS] [-p prompt]
usage: sudo -l[l] [-AknS] [-g groupname|#gid] [-p prompt] [-U username] [-u
username|#uid] [-g groupname|#gid] [command]
usage: sudo [-AbEHknPS] [-C fd] [-g groupname|#gid] [-p prompt] [-u
username|#uid] [-g groupname|#gid] [VAR=value] [-i|-s] [<command>]
usage: sudo -e [-AknS] [-C fd] [-g groupname|#gid] [-p prompt] [-u
username|#uid] file ...

So select this lines and remove it from the file. Then save.

After you have saved, in the terminal run:
sudo apt-get update

Try to open now the Ubuntu Software Center

Revision history for this message
yuvan kiran (yuvan-kiran) said :
#4

Thanks Enrico "eNry" Carafa, that solved my question.

Revision history for this message
yuvan kiran (yuvan-kiran) said :
#5

thank u very much..... :)

Revision history for this message
enubuntu (mr.tennents) said :
#6

You're welcome.