how fix: E: Malformed line 46

Asked by francisco urbano

Every time I try to open the synaptic package manager gives me this error:

E: Malformed line 46 in source list / etc / apt / sources.list (dist parse)
E: The list of sources not could be read.
Go to the repository dialog to correct the problem.
E: _cache-> open () failed, please report.

Someone can help me with this problem

Paco

Question information

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

please open a terminal ( ALT CTRL T) and then type "cat /etc/apt/sources.list" and post the output here

Revision history for this message
francisco urbano (122paco) said :
#2

Im get all this hope so can help me thank Arjun

paco@paco-desktop:~$ cat /etc/apt/sources.list

deb cdrom:[Ubuntu 9.04 _Jaunty Jackalope_ - Release i386 (20090420.1)]/
jaunty main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

deb http://us.archive.ubuntu.com/ubuntu/ lucid main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu/ lucid-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://us.archive.ubuntu.com/ubuntu/ lucid universe
deb http://us.archive.ubuntu.com/ubuntu/ lucid-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://us.archive.ubuntu.com/ubuntu/ lucid multiverse
deb http://us.archive.ubuntu.com/ubuntu/ lucid-updates multiverse

## '
## 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://us.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 http://security.ubuntu.com/ubuntu lucid-security universe
deb http://us.archive.ubuntu.com/ubuntu/ lucid-proposed restricted main
multiverse universe
deb http://security.ubuntu.com/ubuntu lucid-security multiverse
deb http://ppa.launchpad.net/sevenmachines/flash/ubuntu lucid
## This sources.list was manually created as the old one was somehow deleted

deb http://archive.ubuntu.com/ubuntu/ karmic main restricted
deb-src http://archive.ubuntu.com/ubuntu/ karmic main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://archive.ubuntu.com/ubuntu/ karmic-updates main restricted
deb-src http://archive.ubuntu.com/ubuntu/ karmic-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://archive.ubuntu.com/ubuntu/ karmic universe
deb-src http://archive.ubuntu.com/ubuntu/ karmic universe
deb http://archive.ubuntu.com/ubuntu/ karmic-updates universe
deb-src http://archive.ubuntu.com/ubuntu/ karmic-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://archive.ubuntu.com/ubuntu/ karmic multiverse
deb-src http://archive.ubuntu.com/ubuntu/ karmic multiverse
deb http://archive.ubuntu.com/ubuntu/ karmic-updates multiverse
deb-src http://archive.ubuntu.com/ubuntu/ karmic-updates multiverse

## 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://us.archive.ubuntu.com/ubuntu/ jaunty-backports main restricted
universe multiverse
# deb-src http://us.archive.ubuntu.com/ubuntu/ jaunty-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 jaunty partner
# deb-src http://archive.canonical.com/ubuntu jaunty partner

deb http://archive.ubuntu.com/ubuntu/ karmic-security main restricted
deb-src http://archive.ubuntu.com/ubuntu/ karmic-security main restricted
deb http://archive.ubuntu.com/ubuntu/ karmic-security universe
deb-src http://archive.ubuntu.com/ubuntu/ karmic-security universe
deb http://archive.ubuntu.com/ubuntu/ karmic-security multiverse
deb-src http://archive.ubuntu.com/ubuntu/ karmic-security multiverse
deb http://download.tuxfamily.com/gericom/libreoffice
deb http://packages.medibuntu.org/ lucid free non-free
deb http://packages.medibuntu.org/ lucid free non-free
deb http://packages.medibuntu.org/ lucid free non-free

Revision history for this message
arjun (arjunak01) said :
#3

press ALT F2 and the type "nautilus /etc/apt" a window will open inside that you will find a file called sources.list, take a backup of the file by copying it to another safe location. now press ALT F2 again and type into it "gksudo gedit /etc/apt/sources.list" and enter your system password. we are opening the file with administrative(root) privileges. once gedit opens press CTRL F and copy and paste into it

"deb http://us.archive.ubuntu.com/ubuntu/ lucid-proposed restricted main
multiverse universe"

once you find the line remove the newline character after "main" so that now it becomes

"deb http://us.archive.ubuntu.com/ubuntu/ lucid-proposed restricted main multiverse universe "

save it and try again

Revision history for this message
Theodotos Andreou (theodotos) said :
#4

1) Launch the Run dialog: ALT-F2
2) Type "gksudo gedit /etc/apt/sources.list"
3) Under "Edit --> Preferences" click on "Display line numbers"
4) Go to the line 46 and cut the "multiverse universe" line and paste it at the end of line 45 (with space)
5) You may need to do the same on line 34

Save it and try again.

It is interesting how this thing happened though!

Revision history for this message
francisco urbano (122paco) said :
#5

Try both options and at first I said that "deb
http://us.archive.ubuntu.com/ubuntu/ lucid-proposed main restricted universe
multiverse" NOT FOUND so I can not make any changes.
  In another option, the line 46 says nothing about multiverse universe,
just says:
   deb http://ppa.launchpad.net/sevenmachines/flash/ubuntu lucid, by which I
could not make any changes to please can you give other option thank

Revision history for this message
Manfred Hampl (m-hampl) said :
#6

The line with the error is another one:
In line # 46
deb http://ppa.launchpad.net/sevenmachines/flash/ubuntu lucid
there are some unprintable characters between "deb" and "http://"

So the solution would be:
press ALT F2 and type into it "gksudo gedit /etc/apt/sources.list" and enter your password.
In the editor window that opens please locate the line with 'sevenmachines' and remove the whole line and insert (by copy and paste)

deb http://ppa.launchpad.net/sevenmachines/flash/ubuntu lucid

Save and close the changes.

Revision history for this message
francisco urbano (122paco) said :
#7

so Thank :
Manfred Hampl: but the line 46 is that some:deb
http://ppa.launchpad.net/sevenmachines/flash/ubuntu lucid and that line Im
have to be replace is some> so replace anyway and give some error E: line
46

Revision history for this message
Manfred Hampl (m-hampl) said :
#8

The problem is that there apparently are some strange characters in that line between the letters deb and the letters http: that are not displayed on the screen

My idea was that you edit your sources.list and remove that line completely, and then copy the line from this comment and paste it in again - even if it looks completely the same.

This text below should be ok:

deb http://ppa.launchpad.net/sevenmachines/flash/ubuntu lucid

You might also think of just removing the line from your sources.list - are you sure that you need it? Do you need flashplugin64-nonfree from this personal package archive at all?

Revision history for this message
Best arjun (arjunak01) said :
#9

i asked you to search for "deb http://us.archive.ubuntu.com/ubuntu/ lucid-proposed restricted main
multiverse universe" and not "deb
http://us.archive.ubuntu.com/ubuntu/ lucid-proposed main restricted universe
multiverse"

please use copy paste instead of typing the whole thing, could you upload the sources.list file

Revision history for this message
francisco urbano (122paco) said :
#10

Thanks arjun, that solved my question.

Revision history for this message
francisco urbano (122paco) said :
#11

Thanks to everyone for all the help.
In truth I am learning from you all

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#12

I also suggest you review your sources.list file. Its a complete mess. You have jauny, karmic and lucid all mentioned in the same file.

Can you give the output of:
lsb_release -a

Thanks