PDA

View Full Version : [ubuntu] Ajuda: not known on line 54 in source list /etc/apt/sources.list



Filipe85
January 23rd, 2012, 03:26 PM
i have had this error message every time i try to update, or install an aplication:


``Could not initialize the package information

An unresolvable problem occurred while initializing the package information.

Please report this bug against the 'update-manager' package and include the following error message:

'E:Type 'usage:' is not known on line 54 in source list /etc/apt/sources.list, E:The list of sources could not be read.'
``

the problem strated after i tried to install cairo from here:

http://www.beakkon.com/geek/10-best-applications-for-ubuntu-10.10


my source.list:


## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb http://br.archive.ubuntu.com/ubuntu/ lucid-backports main restricted universe multiverse
# deb-src http://br.archive.ubuntu.com/ubuntu/ lucid-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu lucid partner
# deb-src http://archive.canonical.com/ubuntu lucid partner

deb http://security.ubuntu.com/ubuntu lucid-security main restricted
deb-src http://security.ubuntu.com/ubuntu lucid-security main restricted
deb http://security.ubuntu.com/ubuntu lucid-security universe
deb-src http://security.ubuntu.com/ubuntu lucid-security universe
deb http://security.ubuntu.com/ubuntu lucid-security multiverse
deb-src http://security.ubuntu.com/ubuntu lucid-security multiverse
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 ...
deb http://ppa.launchpad.net/cairo-dock-team/ppa/ubuntu lucid main ## Cairo-Dock-PPA-Stable
deb http://ppa.launchpad.net/cairo-dock-team/ppa/ubuntu lucid main ## Cairo-Dock-PPA-Stable

thanks a lot for the help!

ajgreeny
January 23rd, 2012, 05:02 PM
You should remove these lines from your sources.list file, I think, the last of which is one of the two identical lines, or you will get an error about duplicate lines.

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 ...
deb http://ppa.launchpad.net/cairo-dock-team/ppa/ubuntu lucid main ## Cairo-Dock-PPA-Stable
I have no idea where all that rubbish came from, but it is certainly not needed in the sources.list file.
Use
gksudo gedit /etc/apt/sources.listto edit the file, but back it up first, just in case.
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak

snowpine
January 23rd, 2012, 05:03 PM
This entire section is garbage and does not belong in sources.list, you may safely delete it:


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 ...

/etc/apt/sources.list is an important system file! I do not recommend editing this file directly in the future; you can use the GUI Software Sources application to safely add PPA's.